Staging
v0.5.1
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
Tip revision: b5afbd027bffbaa998c0ea149fdeea75a6a41c2e authored by Guido van Rossum on 30 November 2003, 22:07:34 UTC
Backport:
Backport:
Tip revision: b5afbd0
File | Mode | Size |
---|---|---|
bdist_wininst | ||
example_nt | ||
os2emx | ||
os2vacpp | ||
.cvsignore | -rw-r--r-- | 30 bytes |
WinMain.c | -rw-r--r-- | 447 bytes |
_winreg.c | -rw-r--r-- | 42.7 KB |
config.c | -rw-r--r-- | 3.0 KB |
dl_nt.c | -rw-r--r-- | 908 bytes |
dllbase_nt.txt | -rw-r--r-- | 3.3 KB |
frozen_dllmain.c | -rw-r--r-- | 3.6 KB |
getpathp.c | -rw-r--r-- | 17.5 KB |
import_nt.c | -rw-r--r-- | 2.4 KB |
make_versioninfo.c | -rw-r--r-- | 1.0 KB |
msvcrtmodule.c | -rwxr-xr-x | 4.9 KB |
py.ico | -rw-r--r-- | 766 bytes |
pyc.ico | -rw-r--r-- | 766 bytes |
pycon.ico | -rw-r--r-- | 766 bytes |
pyconfig.h | -rw-r--r-- | 16.4 KB |
python.mk | -rw-r--r-- | 234 bytes |
python_exe.rc | -rw-r--r-- | 49 bytes |
python_nt.rc | -rw-r--r-- | 1.8 KB |
readme.txt | -rw-r--r-- | 4.1 KB |
testpy.py | -rw-r--r-- | 850 bytes |
w9xpopen.c | -rw-r--r-- | 3.6 KB |
winsound.c | -rw-r--r-- | 7.1 KB |
Computing file changes ...