-
Integer overflow in audioop module (corruption not really controllable by
attacker):
import audioop
s = ''
audioop.ratecv(s, 1, 1073741824, 1, 1, None)
-
Integer / buffer overflow in imageop module:
import imageop
s = ''
imageop.crop(s, 1, 65536, 65536, 0, 0, 65536, 65536)
-
Integer overflow in string expandtabs operation:
s = 't\tt\t'
str.expandtabs(s, 2147483647)
-
Integer overflow in rgbimagemodule.c (example bad code):
tablen = ysize * zsize * sizeof(Py_Int32);
starttab = (Py_Int32 *)malloc(tablen);
...
rv = PyString_FromStringAndSize((char *) 0,
(xsize*ysize+TAGLEN)*sizeof(Py_Int32)
Integer overflow in string concatenation (only affecting pre-2.5 versions of
Python):