[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #23291 [Core Tor/Tor]: unintentional undefined behaviore in test-memwipe.c
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs