Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision ca9ae94a2aba35d94ac1ec081f9bcac3a13aebd3 authored by Victor Stinner on 23 August 2019, 11:22:14 UTC, committed by GitHub on 23 August 2019, 11:22:14 UTC
empty_argv is no longer static in Python 3.8, but it is declared in a temporary scope, whereas argv keeps a reference to it. empty_argv memory (allocated on the stack) is reused by make_sys_argv() code which is inlined when using gcc -O3. Define empty_argv in PySys_SetArgvEx() body, to ensure that it remains valid for the whole lifetime of the PySys_SetArgvEx() call. (cherry picked from commit c48682509dc49b43fe914fe6c502bc390345d1c2)
1 parent 994925b
Tip revision: ca9ae94a2aba35d94ac1ec081f9bcac3a13aebd3 authored by Victor Stinner on 23 August 2019, 11:22:14 UTC
bpo-37926: Fix PySys_SetArgvEx(0, NULL, 0) crash (GH-15415) (GH-15420)
bpo-37926: Fix PySys_SetArgvEx(0, NULL, 0) crash (GH-15415) (GH-15420)
Tip revision: ca9ae94
File | Mode | Size |
---|---|---|
cpython | ||
internal | ||
Python-ast.h | -rw-r--r-- | 25.9 KB |
Python.h | -rw-r--r-- | 3.5 KB |
abstract.h | -rw-r--r-- | 29.6 KB |
asdl.h | -rw-r--r-- | 1.2 KB |
ast.h | -rw-r--r-- | 948 bytes |
bitset.h | -rw-r--r-- | 468 bytes |
bltinmodule.h | -rw-r--r-- | 264 bytes |
boolobject.h | -rw-r--r-- | 886 bytes |
bytearrayobject.h | -rw-r--r-- | 2.1 KB |
bytes_methods.h | -rw-r--r-- | 3.2 KB |
bytesobject.h | -rw-r--r-- | 8.3 KB |
cellobject.h | -rw-r--r-- | 713 bytes |
ceval.h | -rw-r--r-- | 8.2 KB |
classobject.h | -rw-r--r-- | 1.7 KB |
code.h | -rw-r--r-- | 6.8 KB |
codecs.h | -rw-r--r-- | 6.6 KB |
compile.h | -rw-r--r-- | 3.2 KB |
complexobject.h | -rw-r--r-- | 1.8 KB |
context.h | -rw-r--r-- | 2.0 KB |
datetime.h | -rw-r--r-- | 9.0 KB |
descrobject.h | -rw-r--r-- | 2.9 KB |
dictobject.h | -rw-r--r-- | 3.6 KB |
dtoa.h | -rw-r--r-- | 458 bytes |
dynamic_annotations.h | -rw-r--r-- | 21.9 KB |
enumobject.h | -rw-r--r-- | 253 bytes |
errcode.h | -rw-r--r-- | 1.7 KB |
eval.h | -rw-r--r-- | 1.2 KB |
fileobject.h | -rw-r--r-- | 1.3 KB |
fileutils.h | -rw-r--r-- | 4.2 KB |
floatobject.h | -rw-r--r-- | 4.7 KB |
frameobject.h | -rw-r--r-- | 3.2 KB |
funcobject.h | -rw-r--r-- | 4.1 KB |
genobject.h | -rw-r--r-- | 3.6 KB |
graminit.h | -rw-r--r-- | 2.1 KB |
grammar.h | -rw-r--r-- | 1.8 KB |
import.h | -rw-r--r-- | 4.8 KB |
interpreteridobject.h | -rw-r--r-- | 334 bytes |
intrcheck.h | -rw-r--r-- | 861 bytes |
iterobject.h | -rw-r--r-- | 567 bytes |
listobject.h | -rw-r--r-- | 2.9 KB |
longintrepr.h | -rw-r--r-- | 3.7 KB |
longobject.h | -rw-r--r-- | 9.3 KB |
marshal.h | -rw-r--r-- | 803 bytes |
memoryobject.h | -rw-r--r-- | 2.7 KB |
methodobject.h | -rw-r--r-- | 4.3 KB |
modsupport.h | -rw-r--r-- | 9.4 KB |
moduleobject.h | -rw-r--r-- | 2.3 KB |
namespaceobject.h | -rw-r--r-- | 349 bytes |
node.h | -rw-r--r-- | 1.3 KB |
object.h | -rw-r--r-- | 28.9 KB |
objimpl.h | -rw-r--r-- | 10.3 KB |
odictobject.h | -rw-r--r-- | 1.3 KB |
opcode.h | -rw-r--r-- | 5.0 KB |
osdefs.h | -rw-r--r-- | 737 bytes |
osmodule.h | -rw-r--r-- | 291 bytes |
parsetok.h | -rw-r--r-- | 2.9 KB |
patchlevel.h | -rw-r--r-- | 1.3 KB |
picklebufobject.h | -rw-r--r-- | 847 bytes |
py_curses.h | -rw-r--r-- | 2.4 KB |
pyarena.h | -rw-r--r-- | 2.7 KB |
pycapsule.h | -rw-r--r-- | 1.7 KB |
pyctype.h | -rw-r--r-- | 1.3 KB |
pydebug.h | -rw-r--r-- | 1.2 KB |
pydtrace.d | -rw-r--r-- | 1008 bytes |
pydtrace.h | -rw-r--r-- | 2.4 KB |
pyerrors.h | -rw-r--r-- | 12.5 KB |
pyexpat.h | -rw-r--r-- | 2.4 KB |
pyfpe.h | -rw-r--r-- | 341 bytes |
pyhash.h | -rw-r--r-- | 4.0 KB |
pylifecycle.h | -rw-r--r-- | 2.0 KB |
pymacconfig.h | -rw-r--r-- | 2.9 KB |
pymacro.h | -rw-r--r-- | 3.6 KB |
pymath.h | -rw-r--r-- | 8.1 KB |
pymem.h | -rw-r--r-- | 5.3 KB |
pyport.h | -rw-r--r-- | 29.5 KB |
pystate.h | -rw-r--r-- | 4.6 KB |
pystrcmp.h | -rw-r--r-- | 436 bytes |
pystrhex.h | -rw-r--r-- | 849 bytes |
pystrtod.h | -rw-r--r-- | 1.4 KB |
pythonrun.h | -rw-r--r-- | 7.5 KB |
pythread.h | -rw-r--r-- | 5.5 KB |
pytime.h | -rw-r--r-- | 8.7 KB |
rangeobject.h | -rw-r--r-- | 629 bytes |
setobject.h | -rw-r--r-- | 3.3 KB |
sliceobject.h | -rw-r--r-- | 2.5 KB |
structmember.h | -rw-r--r-- | 2.0 KB |
structseq.h | -rw-r--r-- | 1.3 KB |
symtable.h | -rw-r--r-- | 4.9 KB |
sysmodule.h | -rw-r--r-- | 1.2 KB |
token.h | -rw-r--r-- | 2.4 KB |
traceback.h | -rw-r--r-- | 601 bytes |
tracemalloc.h | -rw-r--r-- | 1.1 KB |
tupleobject.h | -rw-r--r-- | 1.6 KB |
typeslots.h | -rw-r--r-- | 2.2 KB |
ucnhash.h | -rw-r--r-- | 1.0 KB |
unicodeobject.h | -rw-r--r-- | 35.3 KB |
warnings.h | -rw-r--r-- | 1.7 KB |
weakrefobject.h | -rw-r--r-- | 2.8 KB |
Computing file changes ...