cpython/Objects
Armin Rigo 4b63c21d6f Forward-port of r52136: a review of overflow-detecting code.
* unified the way intobject, longobject and mystrtoul handle
  values around -sys.maxint-1.

* in general, trying to entierely avoid overflows in any computation
  involving signed ints or longs is extremely involved.  Fixed a few
  simple cases where a compiler might be too clever (but that's all
  guesswork).

* more overflow checks against bad data in marshal.c.

* 2.5 specific: fixed a number of places that were still confusing int
  and Py_ssize_t.  Some of them could potentially have caused
  "real-world" breakage.

* list.pop(x): fixing overflow issues on x was messy.  I just reverted
  to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
  test was trying to give a Decimal to list.pop()... doesn't make
  sense any more IMHO)

* trying to write a few tests...
2006-10-04 11:44:06 +00:00
..
stringlib Fix str.rpartition(sep) when sep is not found in str. 2006-09-05 02:21:38 +00:00
abstract.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
boolobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
bufferobject.c memcmp() can return values other than -1, 0, and +1 but tp_compare 2006-08-08 17:37:00 +00:00
cellobject.c Another problem reported by Coverity. Backport candidate. 2006-06-30 07:32:46 +00:00
classobject.c Patch #1567691: super() and new.instancemethod() now don't accept 2006-09-30 08:43:50 +00:00
cobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
codeobject.c Fix uninitialized memory read reported by Valgrind when running doctest. 2006-07-12 05:27:46 +00:00
complexobject.c Use sizeof(buffer) instead of duplicating the constants to ensure they won't 2006-07-16 02:22:30 +00:00
descrobject.c Change fix for segfaulting property(), add a NEWS entry and a test. 2006-08-04 18:03:37 +00:00
dictnotes.txt Typo fixes 2006-08-04 20:37:43 +00:00
dictobject.c Fix SF bug #1546288, crash in dict_equal 2006-09-05 01:54:06 +00:00
enumobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
exceptions.c Bug #1566800: make sure that EnvironmentError can be called with any 2006-09-30 09:03:45 +00:00
fileobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
floatobject.c Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms 2006-05-25 15:53:30 +00:00
frameobject.c Move the initialization of some pointers earlier. The problem is 2006-07-21 05:31:02 +00:00
funcobject.c Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed 2006-08-12 02:12:30 +00:00
genobject.c Make use of METH_O and METH_NOARGS where possible. 2006-05-29 21:04:52 +00:00
intobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
iterobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
listobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
methodobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
moduleobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
object.c Slightly revised version of patch #1538956: 2006-08-14 10:55:19 +00:00
obmalloc.c _PyObject_DebugMalloc(): The return value should add 2006-06-04 03:38:04 +00:00
rangeobject.c Remove "static forward" declaration. Move constructors 2006-04-11 09:04:12 +00:00
setobject.c Backport rev. 51798 from trunk: 2006-09-08 06:02:26 +00:00
sliceobject.c Patch #1538606, Patch to fix __index__() clipping. 2006-08-12 17:03:09 +00:00
stringobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
structseq.c Klocwork made another run and found a bunch more problems. 2006-08-12 01:43:40 +00:00
tupleobject.c Patch #1538606, Patch to fix __index__() clipping. 2006-08-12 17:03:09 +00:00
typeobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Forward-port of r52136: a review of overflow-detecting code. 2006-10-04 11:44:06 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. 2006-08-02 06:14:22 +00:00