[tor-bugs] #2475 [Tor Client]: Split SIZE_T_CEILING, SSIZE_T_CEILING
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Feb 2 17:07:31 UTC 2011
#2475: Split SIZE_T_CEILING, SSIZE_T_CEILING
------------------------+---------------------------------------------------
Reporter: nickm | Owner:
Type: defect | Status: new
Priority: major | Milestone: Tor: 0.2.1.x-final
Component: Tor Client | Version:
Keywords: easy | Points:
Parent: |
------------------------+---------------------------------------------------
For good C practice, we should have separate signed and unsigned values
for the ssize_t and size_t ceilings, and avoid signed-to-unsigned
comparisons. See comments in bug #2337 for background.
(We don't want to just make SIZE_T_CEILING unsigned and use it everwhere,
since comparing a ssize_t to an unsigned SIZE_T_CEILING is just as broken
as comparing a size_t to a signed SIZE_T_CEILING.)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2475>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list