[tor-bugs] #23291 [Core Tor/Tor]: unintentional undefined behaviore in test-memwipe.c
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Aug 21 19:00:16 UTC 2017
#23291: unintentional undefined behaviore in test-memwipe.c
------------------------------+--------------------------------
Reporter: nickm | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.2.9.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+--------------------------------
While working on #22839, snoek found a bug in test-memwipe.c:
>The last test, test_memwipe, segfaulted. This only happened with Rust
built in. It turns out this was caused by the uninitialized buf in
check_heap_buffer being smaller than the mem addresses being scanned. I
know we're doing some dirty stuff there, but I don't think trying to read
past the length of the buffer was intended. At least to me it seems fair
enough for the program to segfault. I put in the obvious fix, which might
be horribly wrong.
It looks fine to me, so I'm going to give it a bug number and backport it.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23291>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list