Staging
v0.8.1
https://github.com/python/cpython
Revision b5afbd027bffbaa998c0ea149fdeea75a6a41c2e authored by Guido van Rossum on 30 November 2003, 22:07:34 UTC, committed by Guido van Rossum on 30 November 2003, 22:07:34 UTC
Remove all uses of alloca() from this module.  The alloca() return value
isn't checked, and it *is* possible that a very large alloca() call is
made, e.g. when a large registry value is being read.  I don't know if
alloca() in that case returns NULL or returns a pointer pointing outside
the stack, and I don't want to know -- I've simply replaced all calls to
alloca() with either PyMem_Malloc() or PyString_FromStringAndSize(NULL,)
as appropriate, followed by a size check.  This addresses SF buf 851056.
1 parent dfea1bb
History
Tip revision: b5afbd027bffbaa998c0ea149fdeea75a6a41c2e authored by Guido van Rossum on 30 November 2003, 22:07:34 UTC
Backport:
Tip revision: b5afbd0
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
abstract.c -rw-r--r-- 45.8 KB
boolobject.c -rw-r--r-- 4.8 KB
bufferobject.c -rw-r--r-- 11.9 KB
cellobject.c -rw-r--r-- 2.3 KB
classobject.c -rw-r--r-- 59.8 KB
cobject.c -rw-r--r-- 3.6 KB
complexobject.c -rw-r--r-- 22.5 KB
descrobject.c -rw-r--r-- 30.1 KB
dictnotes.txt -rw-r--r-- 10.6 KB
dictobject.c -rw-r--r-- 52.0 KB
enumobject.c -rw-r--r-- 4.5 KB
fileobject.c -rw-r--r-- 58.8 KB
floatobject.c -rw-r--r-- 28.4 KB
frameobject.c -rw-r--r-- 21.8 KB
funcobject.c -rw-r--r-- 20.3 KB
intobject.c -rw-r--r-- 27.7 KB
iterobject.c -rw-r--r-- 5.2 KB
listobject.c -rw-r--r-- 56.8 KB
listsort.txt -rw-r--r-- 30.7 KB
longobject.c -rw-r--r-- 67.5 KB
methodobject.c -rw-r--r-- 8.1 KB
moduleobject.c -rw-r--r-- 6.2 KB
object.c -rw-r--r-- 51.7 KB
obmalloc.c -rw-r--r-- 43.1 KB
rangeobject.c -rw-r--r-- 7.5 KB
sliceobject.c -rw-r--r-- 7.5 KB
stringobject.c -rw-r--r-- 99.3 KB
structseq.c -rw-r--r-- 9.4 KB
tupleobject.c -rw-r--r-- 18.3 KB
typeobject.c -rw-r--r-- 145.3 KB
unicodectype.c -rw-r--r-- 8.4 KB
unicodeobject.c -rw-r--r-- 175.3 KB
unicodetype_db.h -rw-r--r-- 75.4 KB
weakrefobject.c -rw-r--r-- 23.0 KB

back to top