diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-29 10:47:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 10:47:30 (GMT) |
commit | b937ca0a5afc5158dee1a503ec0e9f6e2726c867 (patch) | |
tree | 04ba22736b8ea1f17e42c28bc620b6401544f0d4 /Misc | |
parent | ce091c96cfb9a5cd6c7120dc077606da993680b4 (diff) | |
download | cpython-b937ca0a5afc5158dee1a503ec0e9f6e2726c867.zip cpython-b937ca0a5afc5158dee1a503ec0e9f6e2726c867.tar.gz cpython-b937ca0a5afc5158dee1a503ec0e9f6e2726c867.tar.bz2 |
[3.11] gh-101006: Improve error handling when read marshal data (GH-101007) (GH-106227)
* EOFError no longer overrides other errors such as MemoryError or OSError at
the start of the object.
* Raise more relevant error when the NULL object occurs as a code object
component.
* Minimize an overhead of calling PyErr_Occurred().
(cherry picked from commit 8bf6904b229583033035d91a3800da5604dcaad4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst b/Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst new file mode 100644 index 0000000..c98670d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst @@ -0,0 +1 @@ +Improve error handling when read :mod:`marshal` data. |