[tor-bugs] #27740 [Core Tor/Tor]: rust protover_all_supported() returns rust-allocated string in *missing_out
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Sep 21 00:26:13 UTC 2018
#27740: rust protover_all_supported() returns rust-allocated string in *missing_out
-------------------------------------------------+-------------------------
Reporter: cyberpunks | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor:
| 0.3.5.x-final
Component: Core Tor/Tor | Version: Tor:
| 0.3.3.1-alpha
Severity: Normal | Resolution:
Keywords: rust, protover, memory-safety, | Actual Points:
035-must, fast-fix, 033-backport, |
034-backport |
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by teor):
Replying to [comment:6 cyberpunks]:
> Rust uses jemalloc to allocate memory by default. No CI has been failing
even though `test_protover_all_supported` calls `tor_free()` on this
jemalloc-allocated pointer though. Is it missing hardening that could
catch similar issues in the future?
ASAN would probably help, but it doesn't work with jemalloc, see #27272.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27740#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list