[tor-bugs] #18373 [Tor]: Trunnel can generate memcpy(p,NULL,0)
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Feb 22 19:18:26 UTC 2016
#18373: Trunnel can generate memcpy(p,NULL,0)
------------------------+--------------------------------
Reporter: nickm | Owner:
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.2.8.x-final
Component: Tor | Version:
Severity: Minor | Keywords:
Actual Points: | Parent ID:
Points: | Sponsor:
------------------------+--------------------------------
Passing a null pointer to memcpy is undefined behavior, even when the
length is zero. Trunnel could try to do this when serializing an empty
dynamic-length array. Still, undefined behavior is bad.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18373>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list