cpython/Objects
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
..
stringlib Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 2012-10-28 10:18:03 +00:00
abstract.c Issue #15736: Fix overflow in _PySequence_BytesToCharpArray(). 2012-08-21 08:16:09 +02:00
accu.c Issue #14387: Do not include accu.h from Python.h. 2012-03-22 14:38:16 +01:00
boolobject.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
bytearrayobject.c Fix compilation on Windows 2012-11-03 23:07:59 +01:00
bytes_methods.c Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object. 2011-06-27 09:06:45 -07:00
bytesobject.c Fix the internals of our hash functions to used unsigned values during hash 2012-12-10 18:15:46 -08:00
capsule.c Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 2010-08-11 17:31:17 +00:00
cellobject.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
classobject.c Py_TYPE() has already dereferenced self before the NULL check. Moved Py_TYPE() after the check for self == NULL 2012-09-10 02:45:31 +02:00
codeobject.c Remove arbitrary string length limits 2011-01-05 03:33:26 +00:00
complexobject.c Port 5b607cd8c71b (closes #11892) 2011-04-20 22:26:57 +02:00
descrobject.c fix calling the classmethod descriptor directly (closes #14699) 2012-05-01 09:51:09 -04:00
dictnotes.txt
dictobject.c avoid a function call with redundant checks for dict size 2012-10-31 14:22:12 -04:00
enumobject.c Merged revisions 81465-81466,81468,81679,81735,81760,81868,82183 via svnmerge from 2010-06-27 21:45:24 +00:00
exceptions.c this is only a borrowed ref in Brett's branch 2012-02-10 08:46:54 -05:00
fileobject.c Issue #9015, #9611: stdprinter.write() clamps the length to 2^31-1 on Windows 2011-01-04 13:15:39 +00:00
floatobject.c Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of dtoa.c functions in float round. 2012-01-27 21:16:01 +00:00
frameobject.c SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) 2012-04-18 11:14:31 -04:00
funcobject.c use Py_CLEAR 2012-02-19 01:11:56 -05:00
genobject.c close() doesn't take any args (closes #14717) 2012-05-03 18:44:09 -04:00
iterobject.c Fix nit (sentinel on lhs of comparison). 2010-08-07 05:54:08 +00:00
listobject.c Issue #14387: Do not include accu.h from Python.h. 2012-03-22 14:38:16 +01:00
listsort.txt Merged revisions 74613,74615,74619-74620,74622 via svnmerge from 2009-09-01 08:13:16 +00:00
lnotab_notes.txt Merged revisions 72487-72488,72879 via svnmerge from 2009-07-21 04:30:03 +00:00
longobject.c Issue #16277: in PyLong_FromVoidPtr, add missing branch for sizeof(void*) <= sizeof(long). 2012-10-18 19:21:43 +01:00
memoryobject.c Issue #15855: added docstrings for memoryview methods and data descriptors. 2012-09-03 16:29:11 -04:00
methodobject.c make hashes always the size of pointers; introduce Py_hash_t #9778 2010-10-17 20:54:53 +00:00
moduleobject.c Issue #15394: Fix ref leaks in PyModule_Create. 2012-07-19 13:45:43 -05:00
object.c initialize more global type objects (closes #16369) 2012-10-30 23:21:10 -04:00
obmalloc.c Merged revisions 87834 via svnmerge from 2011-01-07 21:49:25 +00:00
rangeobject.c Issue #16402: In range slicing, fix shadowing of exceptions from __index__ method. 2012-11-04 11:46:17 +00:00
setobject.c Fix the internals of our hash functions to used unsigned values during hash 2012-12-10 18:15:46 -08:00
sliceobject.c Issue #14783: Improve int() docstring and also str(), range(), and slice(). 2012-10-07 14:48:36 -07:00
structseq.c Check for NULL return value in PyStructSequence_NewType(). Found by Coverity. 2012-08-19 11:20:41 +02:00
tupleobject.c Fix the internals of our hash functions to used unsigned values during hash 2012-12-10 18:15:46 -08:00
typeobject.c Silence compiler warnings on Solaris 10 via explicit (void *) casts. 2012-09-18 21:58:03 -04:00
typeslots.inc Merge with 3.1 2011-04-05 15:48:47 +02:00
typeslots.py Support comment lines and missing indices in typeslots.h. 2011-01-06 19:26:21 +00:00
unicodectype.c Remove redundant includes of headers that are already included by Python.h. 2010-11-30 09:41:01 +00:00
unicodeobject.c Fix the internals of our hash functions to used unsigned values during hash 2012-12-10 18:15:46 -08:00
unicodetype_db.h Upgrade to Unicode 6.0.0. 2010-10-11 22:42:28 +00:00
weakrefobject.c 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