cpython/Parser
Pablo Galindo Salgado a106343f63
bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993)
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.
2021-10-19 21:24:12 +02:00
..
Python.asdl bpo-43892: Make match patterns explicit in the AST (GH-25585) 2021-04-28 22:58:44 -07:00
asdl.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
asdl_c.py Fixed typo in "decclarations" (GH-28578) 2021-09-28 13:56:41 +03:00
myreadline.c bpo-45434: Move _Py_BEGIN_SUPPRESS_IPH to pycore_fileutils.h (GH-28922) 2021-10-13 15:03:35 +02:00
parser.c bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) 2021-10-19 21:24:12 +02:00
peg_api.c bpo-43244: Remove parser_interface.h header file (GH-25001) 2021-03-24 01:29:09 +01:00
pegen.c bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) 2021-10-19 21:24:12 +02:00
pegen.h bpo-43914: Correctly highlight SyntaxError exceptions for invalid generator expression in function calls (GH-28576) 2021-09-27 14:37:43 +01:00
string_parser.c bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) 2021-10-14 13:17:00 +03:00
string_parser.h bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933) 2021-03-23 20:47:40 +01:00
token.c bpo-43822: Improve syntax errors for missing commas (GH-25377) 2021-04-15 21:38:45 +01:00
tokenizer.c bpo-45434: Mark the PyTokenizer C API as private (GH-28924) 2021-10-13 17:22:14 +02:00
tokenizer.h bpo-45434: Mark the PyTokenizer C API as private (GH-28924) 2021-10-13 17:22:14 +02:00