]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-101006: Improve error handling when read marshal data (GH-101007) (GH-106226)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Jun 2023 10:46:51 +0000 (03:46 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 10:46:51 +0000 (13:46 +0300)
commitc9b9555650fee56a2fcb66c1db25e2b57f71a5d9
tree4f34185f5a4c56174df488001ba5bc835d23acd9
parente0fa531d7aa2f1e809dc77c222538620b2cf24b9
[3.12] gh-101006: Improve error handling when read marshal data (GH-101007) (GH-106226)

* 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