FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-101006: Improve error handling when read marshal data by serhiy-storchaka · Pull Request #101007 · python/cpython · GitHub

Repository navigation

gh-101006: Improve error handling when read marshal data - #101007

Merged
serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:marshal-load-error-handling
Jun 29, 2023
Merged

serhiy-storchaka merged 4 commits into
python:mainfrom
serhiy-storchaka:marshal-load-error-handling

Conversation

serhiy-storchaka commented Jan 13, 2023 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member
  • 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().

* 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().

erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

After a quick review, this looks good to me. I'd like to take a closer look if you can wait for a day or two.

Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
Comment thread Python/marshal.c Outdated
serhiy-storchaka and others added 2 commits May 21, 2023 23:23
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
serhiy-storchaka added the needs backport to 3.12 only security fixes label Jun 29, 2023
serhiy-storchaka merged commit 8bf6904 into python:main Jun 29, 2023

Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

serhiy-storchaka deleted the marshal-load-error-handling branch June 29, 2023 09:22

Copy link
Copy Markdown

GH-106226 is a backport of this pull request to the 3.12 branch.

bedevere-bot removed the needs backport to 3.12 only security fixes label Jun 29, 2023

Copy link
Copy Markdown

GH-106227 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 29, 2023
…nGH-101007)

* 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 8bf6904)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
bedevere-bot removed the needs backport to 3.11 only security fixes label Jun 29, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 29, 2023
…nGH-101007)

* 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 8bf6904)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Jun 29, 2023
…01007) (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 8bf6904)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Jun 29, 2023
…01007) (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 8bf6904)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL