diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-10-31 18:31:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 18:31:41 (GMT) |
commit | 02cdfc93f82fecdb7eae97a868d4ee222b9875d9 (patch) | |
tree | 85ec4c7f233e9bff63b0e6af21049ec00d7e0af9 /Misc | |
parent | d21cb2d5ee56b8975d92e2ee094aba81f0801be5 (diff) | |
download | cpython-02cdfc93f82fecdb7eae97a868d4ee222b9875d9.zip cpython-02cdfc93f82fecdb7eae97a868d4ee222b9875d9.tar.gz cpython-02cdfc93f82fecdb7eae97a868d4ee222b9875d9.tar.bz2 |
bpo-42218: Correctly handle errors in left-recursive rules (GH-23065)
Left-recursive rules need to check for errors explicitly, since
even if the rule returns NULL, the parsing might continue and lead
to long-distance failures.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-10-31-17-50-23.bpo-42218.Dp_Z3v.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-10-31-17-50-23.bpo-42218.Dp_Z3v.rst b/Misc/NEWS.d/next/Core and Builtins/2020-10-31-17-50-23.bpo-42218.Dp_Z3v.rst new file mode 100644 index 0000000..a38a310 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-10-31-17-50-23.bpo-42218.Dp_Z3v.rst @@ -0,0 +1,3 @@ +Fixed a bug in the PEG parser that was causing crashes in debug mode. Now errors are checked
+in left-recursive rules to avoid cases where such errors do not get handled in time and appear
+as long-distance crashes in other places.
|