[tor-bugs] #4229 [Tor Client]: smartlist_len returns a (signed) int
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Thu Oct 20 04:46:26 UTC 2011
#4229: smartlist_len returns a (signed) int
------------------------+---------------------------------------------------
Reporter: rransom | Owner:
Type: defect | Status: new
Priority: major | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by nickm):
If we're going to change the return type of smartlist_len() {or even if
we're not}, we need to be prepared to audit all 448 places that uses it,
to make sure it behaves right given an unsigned or a size_t or whatever.
As a stopgap, perhaps we should just ensure that a smartlist's size can't
grow larger than INT_MAX ?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4229#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list