Staging
v0.5.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
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.3 KB
LICENSE -rw-r--r-- 12.7 KB
Makefile.pre.in -rw-r--r-- 31.1 KB
README -rw-r--r-- 48.2 KB
aclocal.m4 -rw-r--r-- 2.1 KB
configure -rwxr-xr-x 522.9 KB
configure.in -rw-r--r-- 83.4 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 24.5 KB
setup.py -rw-r--r-- 50.7 KB

README

back to top