summaryrefslogtreecommitdiff
path: root/src/rust/protover/lib.rs
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-02-06 14:15:33 +0000
committerIsis Lovecruft <isis@torproject.org>2018-02-07 22:51:58 +0000
commitb85436c5961d1b2168c3954a7e718e03a121473f (patch)
tree6b03f9cc9384c31cb17bf4c92bf67c1259e6141d /src/rust/protover/lib.rs
parent7ea9e080c58f16fecefa5a0a20406635a2034366 (diff)
downloadtor-b85436c5961d1b2168c3954a7e718e03a121473f.tar.gz
tor-b85436c5961d1b2168c3954a7e718e03a121473f.zip
protover: Fix memleak in Rust impl of protover_compute_for_old_tor.
* FIXES #25127: https://bugs.torproject.org/25127 * ADDS a new module to the Rust tor_util crate for small utilities for working with static strings between languages. * CHANGES the return type of protover_compute_for_old_tor to point to immutable data. * CHANGES the code from the previous commit to use the new static string utilities.
Diffstat (limited to 'src/rust/protover/lib.rs')
-rw-r--r--src/rust/protover/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rust/protover/lib.rs b/src/rust/protover/lib.rs
index 5a5dea4408..fe8c0f9bb2 100644
--- a/src/rust/protover/lib.rs
+++ b/src/rust/protover/lib.rs
@@ -26,6 +26,7 @@ extern crate libc;
extern crate smartlist;
extern crate external;
extern crate tor_allocate;
+extern crate tor_util;
mod protover;
pub mod ffi;