[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #2475 [Tor Client]: Split SIZE_T_CEILING, SSIZE_T_CEILING
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs