[tor-bugs] #2352 [Tor Client]: more size_t_ceiling fun
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Jan 12 19:39:08 UTC 2011
#2352: more size_t_ceiling fun
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Client | Version:
Keywords: | Parent:
------------------------+---------------------------------------------------
Comment(by nickm):
Replying to [comment:7 cypherpunks]:
> Another thing:
> {{{
> (int)len
> }}}
> sszite_t truncates to small int for 64bit vs 32 bit.
> Is it safe for non 2's complement 64bit platform (lets assume it exist)?
I'm not sure, but Tor requires two's complement arithmetic. We check for
it in autoconf, and fail to build with an error in torint.h if arithmetic
is not two's complement.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2352#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list