https://github.com/python/cpython
Revision a106343f632a99c8ebb0136fa140cf189b4a6a57 authored by Pablo Galindo Salgado on 19 October 2021, 19:24:12 UTC, committed by GitHub on 19 October 2021, 19:24:12 UTC
There are two errors that this commit fixes: * The parser was not correctly computing the offset and the string source for E_LINECONT errors due to the incorrect usage of strtok(). * The parser was not correctly unwinding the call stack when a tokenizer exception happened in rules involving optionals ('?', [...]) as we always make them return valid results by using the comma operator. We need to check first if we don't have an error before continuing.
1 parent bda69ab
Tip revision: a106343f632a99c8ebb0136fa140cf189b4a6a57 authored by Pablo Galindo Salgado on 19 October 2021, 19:24:12 UTC
bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993)
bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993)
Tip revision: a106343
File | Mode | Size |
---|---|---|
.azure-pipelines | ||
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
.editorconfig | -rw-r--r-- | 181 bytes |
.gitattributes | -rw-r--r-- | 2.1 KB |
.gitignore | -rw-r--r-- | 2.1 KB |
.travis.yml | -rw-r--r-- | 6.5 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 630 bytes |
LICENSE | -rw-r--r-- | 13.6 KB |
Makefile.pre.in | -rw-r--r-- | 76.0 KB |
README.rst | -rw-r--r-- | 9.9 KB |
aclocal.m4 | -rw-r--r-- | 22.3 KB |
config.guess | -rwxr-xr-x | 48.3 KB |
config.sub | -rwxr-xr-x | 33.6 KB |
configure | -rwxr-xr-x | 513.4 KB |
configure.ac | -rw-r--r-- | 174.6 KB |
install-sh | -rwxr-xr-x | 15.0 KB |
netlify.toml | -rw-r--r-- | 82 bytes |
pyconfig.h.in | -rw-r--r-- | 45.0 KB |
setup.py | -rw-r--r-- | 114.7 KB |
Computing file changes ...