From b85436c5961d1b2168c3954a7e718e03a121473f Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Tue, 6 Feb 2018 14:15:33 +0000 Subject: 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. --- src/rust/tor_util/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rust/tor_util/lib.rs') diff --git a/src/rust/tor_util/lib.rs b/src/rust/tor_util/lib.rs index 42fa9d5ad0..12cb3896b6 100644 --- a/src/rust/tor_util/lib.rs +++ b/src/rust/tor_util/lib.rs @@ -3,9 +3,9 @@ //! Small module to announce Rust support during startup for demonstration //! purposes. -//! extern crate libc; extern crate tor_allocate; pub mod ffi; +pub mod strings; -- cgit v1.2.3-54-g00ecf