mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-40334: Improvements to error-handling code in the PEG parser (GH-20003)
The following improvements are implemented in this commit: - `p->error_indicator` is set, in case malloc or realloc fail. - Avoid memory leaks in the case that realloc fails. - Call `PyErr_NoMemory()` instead of `PyErr_Format()`, because it requires no memory. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
6341fc7257
commit
2c8cd06afe
2 changed files with 669 additions and 386 deletions
1022
Parser/pegen/parse.c
1022
Parser/pegen/parse.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue