summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-11-30 22:07:34 (GMT)
committerGuido van Rossum <guido@python.org>2003-11-30 22:07:34 (GMT)
commitb5afbd027bffbaa998c0ea149fdeea75a6a41c2e (patch)
tree8c6d27ee9cca23e358c80569638ee2ddb636e7ec /Python/pythonrun.c
parentdfea1bb7edece3bfadb9ae700b4d08b2495769d8 (diff)
downloadcpython-b5afbd027bffbaa998c0ea149fdeea75a6a41c2e.zip
cpython-b5afbd027bffbaa998c0ea149fdeea75a6a41c2e.tar.gz
cpython-b5afbd027bffbaa998c0ea149fdeea75a6a41c2e.tar.bz2
Backport:
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.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions