diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-12-10 18:15:46 -0800 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-12-10 18:15:46 -0800 |
commit | 2d67fb897d9266c7ea698a620a2c2a7d6ffb1eb0 (patch) | |
tree | 14817adc28a979e307f091aecb33b92bdbb8f4c6 /pyconfig.h.in | |
parent | 3a61aecd2a93b9cb5618b2a58883dbccfce19113 (diff) | |
download | cpython-2d67fb897d9266c7ea698a620a2c2a7d6ffb1eb0.tar.gz |
Fix the internals of our hash functions to used unsigned values during hash
computation as the overflow behavior of signed integers is undefined.
In practice we require compiling everything with -fwrapv which forces overflow
to be defined as twos compliment but this keeps the code cleaner for checkers
or in the case where someone has compiled it without -fwrapv or their
compiler's equivalent.
Found by Clang trunk's Undefined Behavior Sanitizer (UBSan).
Cleanup only - no functionality or hash values change.
Diffstat (limited to 'pyconfig.h.in')
0 files changed, 0 insertions, 0 deletions