
June 15, 2012
11:31 p.m.
In function Cache_client_enqueue variable ClientKey is incremented and checked for negative values after that (in case of overflow). Even though overflow is unlikely, signed integer overflow results in wraparound on most systems and gcc don't seem to optimize away overflow check even with -O3 (it only inlines Cache_client_enqueue in my case) it is better to avoid overflow completely as there are other compilers and compiler versions.

June 2012
11:34 p.m.
And in case someone thinks it is non-issue: http://thiemonagel.de/2010/01/signed-integer-overflow/
4670
Age (days ago)
4673
Last active (days ago)
2 comments
2 participants
participants (2)
-
jcid@dillo.org
-
p37sitdu@lavabit.com