[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #18373 [Tor]: Trunnel can generate memcpy(p,NULL,0)
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs