cpython/Include
Gregory P. Smith 27cbcd6241 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.
2012-12-10 18:15:46 -08:00
..
Python-ast.h
Python.h Issue #14387: Do not include accu.h from Python.h. 2012-03-22 14:38:16 +01:00
abstract.h #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
accu.h Issue #14387 : undefine 'small' so that it doesn't clash with Windows headers. 2012-03-22 23:10:37 +00:00
asdl.h
ast.h
bitset.h
bltinmodule.h
boolobject.h
bytearrayobject.h
bytes_methods.h
bytesobject.h
cellobject.h
ceval.h
classobject.h
code.h
codecs.h
compile.h
complexobject.h
datetime.h
descrobject.h make sure to initialize the method wrapper type 2011-09-01 16:32:31 -04:00
dictobject.h
dtoa.h
dynamic_annotations.h Closes issue #13488: Some old preprocessors have problem with #define not in the first column 2011-11-27 05:16:22 +01:00
enumobject.h
errcode.h
eval.h
fileobject.h Issue #12287: Fix a stack corruption in ossaudiodev module when the FD is 2011-08-28 17:51:43 +02:00
fileutils.h
floatobject.h
frameobject.h
funcobject.h
genobject.h
graminit.h
grammar.h
import.h
intrcheck.h
iterobject.h
listobject.h
longintrepr.h
longobject.h
marshal.h
memoryobject.h
metagrammar.h
methodobject.h
modsupport.h
moduleobject.h
node.h Closes #15512: Correct __sizeof__ support for parser 2012-08-03 14:28:37 +02:00
object.h Issue #13992: The trashcan mechanism is now thread-safe. This eliminates 2012-09-06 00:59:49 +02:00
objimpl.h
opcode.h
osdefs.h
parsetok.h
patchlevel.h Merge 3.2.3 release clone. 2012-04-11 12:46:24 +02:00
pgen.h
pgenheaders.h
py_curses.h
pyarena.h
pyatomic.h - Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix 2011-12-05 16:45:02 -05:00
pycapsule.h
pyctype.h Try to fix linking failures under Windows 2011-10-04 14:43:47 +02:00
pydebug.h Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) 2012-02-20 21:31:46 +01:00
pyerrors.h
pyexpat.h
pyfpe.h Remove trailing whitespace in order to silence warnings on HP-UX. 2012-08-31 17:11:39 -04:00
pygetopt.h Fix test failure in test_cmd_line by initializing the hash secret at the earliest point. 2012-02-21 19:03:47 +01:00
pymacconfig.h #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
pymath.h
pymem.h
pyport.h Fix the internals of our hash functions to used unsigned values during hash 2012-12-10 18:15:46 -08:00
pystate.h Issue #13992: The trashcan mechanism is now thread-safe. This eliminates 2012-09-06 00:59:49 +02:00
pystrcmp.h
pystrtod.h
pythonrun.h Fix test failure in test_cmd_line by initializing the hash secret at the earliest point. 2012-02-21 19:03:47 +01:00
pythread.h
pytime.h
rangeobject.h
setobject.h
sliceobject.h
structmember.h
structseq.h
symtable.h
sysmodule.h
timefuncs.h
token.h Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. 2012-01-15 19:15:36 -06:00
traceback.h
tupleobject.h
typeslots.h
ucnhash.h
unicodeobject.h Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name. 2012-01-29 18:36:34 +01:00
warnings.h
weakrefobject.h Issue #16602: When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero. 2012-12-08 21:15:26 +01:00