]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-101006: Improve error handling when read marshal data (GH-101007) (GH-106227)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Jun 2023 10:47:30 +0000 (03:47 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 10:47:30 +0000 (13:47 +0300)
commitb937ca0a5afc5158dee1a503ec0e9f6e2726c867
tree04ba22736b8ea1f17e42c28bc620b6401544f0d4
parentce091c96cfb9a5cd6c7120dc077606da993680b4
[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>
Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst [new file with mode: 0644]
Python/marshal.c