cpython/Python
Batuhan Taskaya de58b319af
[3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) (GH-26522)
When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError..
(cherry picked from commit f3491242e4)

Co-authored-by: Batuhan Taskaya <batuhan@python.org>
2021-06-03 22:22:34 +01:00
..
clinic
_warnings.c [3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369) 2020-11-18 09:45:29 -08:00
asdl.c
ast.c [3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21022) 2020-06-27 17:34:30 -07:00
ast_opt.c
ast_unparse.c bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156) 2020-05-18 19:23:48 +01:00
bltinmodule.c bpo-42536: GC track recycled tuples (GH-23623) (GH-23651) 2020-12-07 20:07:48 +00:00
bootstrap_hash.c [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295) 2020-11-22 11:18:40 +01:00
ceval.c [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) 2021-04-04 13:02:29 +02:00
ceval_gil.h [3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228) 2020-05-20 00:27:46 +02:00
codecs.c
compile.c [3.9] bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395) (GH-23303) 2020-11-17 19:31:55 +00:00
condvar.h
context.c
dtoa.c bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) (GH-20514) 2020-05-29 14:46:54 +01:00
dup2.c
dynamic_annotations.c
dynload_aix.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:25:45 -07:00
dynload_dl.c
dynload_hpux.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:25:45 -07:00
dynload_shlib.c bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466) 2020-10-14 19:25:45 -07:00
dynload_stub.c
dynload_win.c bpo-43499: Silence compiler warnings about using legacy C API on Windows (GH-24873) 2021-03-16 08:03:37 +02:00
errors.c [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) 2021-04-04 13:02:29 +02:00
fileutils.c [3.9] bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096) (GH-25847) 2021-05-21 16:59:39 +02:00
formatter_unicode.c bpo-28146: Fix a confusing error message in str.format() (GH-24213) 2021-05-13 14:35:30 -07:00
frozen.c
frozenmain.c
future.c
getargs.c bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878) 2020-06-18 17:30:53 +09:00
getcompiler.c
getcopyright.c Bring Python into the new year. (GH-24036) 2021-01-01 09:27:48 -08:00
getopt.c
getplatform.c
getversion.c
graminit.c
hamt.c
hashtable.c bpo-41061: Fix incorrect expressions in hashtable (GH-21028) 2020-06-22 01:01:48 -07:00
import.c [3.9] bpo-43517: Fix false positive in detection of circular imports (GH-24895) (GH-24948) 2021-03-20 12:40:18 -07:00
importdl.c
importdl.h
importlib.h [3.9] bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054) (GH-21190) 2020-06-28 01:15:28 +01:00
importlib_external.h bpo-44070: No longer eagerly makes import filenames absolute, except for extension modules (GH-26025) 2021-05-10 23:45:50 +01:00
importlib_zipimport.h [3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)" (#20760) 2020-06-09 19:50:01 +02:00
initconfig.c bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607) 2020-12-02 14:01:23 -08:00
makeopcodetargets.py
marshal.c bpo-41180: Audit code.__new__ when unmarshalling (GH-21271) 2020-07-03 14:16:23 -07:00
modsupport.c closes bpo-41533: Fix a potential memory leak when allocating a stack (GH-21847) 2020-09-04 15:56:04 -07:00
mysnprintf.c bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889) 2020-06-15 13:20:10 -07:00
mystrtoul.c
opcode_targets.h
pathconfig.c bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297) 2020-07-06 09:52:13 -07:00
peephole.c bpo-42057: Fix peephole optimizer (GH-22802) 2020-10-22 11:06:07 +09:00
preconfig.c [3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228) 2020-05-20 00:27:46 +02:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c bpo-40998: Address compiler warnings found by ubsan (GH-20929) 2020-11-18 08:01:48 -08:00
pymath.c
pystate.c [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) 2021-04-04 13:02:29 +02:00
pystrcmp.c bpo-41524: fix pointer bug in PyOS_mystr{n}icmp (GH-21845) (GH-21978) 2020-08-30 15:53:09 +09:00
pystrhex.c
pystrtod.c
Python-ast.c [3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) (GH-26522) 2021-06-03 22:22:34 +01:00
pythonrun.c bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083) 2021-03-30 00:24:33 +01:00
pytime.c [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295) 2020-11-22 11:18:40 +01:00
README
strdup.c
structmember.c
symtable.c
sysmodule.c [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) 2021-04-04 13:02:29 +02:00
thread.c
thread_nt.h
thread_pthread.h Fix -Wstrict-prototypes warning in thread_pthread.h. (GH-21477) 2020-07-15 06:30:26 -07:00
traceback.c bpo-42800: Add audit events for f_code and tb_frame (GH-24182) 2021-05-03 14:06:36 +01:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library