GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-113626: Add allow_code parameter in marshal functions by serhiy-storchaka · Pull Request #113648 · python/cpython

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jan 2, 2024 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Passing allow_code=False prevents serialization and de-serialization of code objects which is incompatible between Python versions.

  • Issue: Safer data serialization with marshal module #113626

📚 Documentation preview 📚: https://cpython-previews--113648.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@serhiy-storchaka
pythongh-113626: Add allow_code parameter in marshal functions
56f9616
Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
@serhiy-storchaka
serhiy-storchaka requested a review from tiran as a code owner January 2, 2024 10:44
@bedevere-app bedevere-app Bot added the awaiting core review label Jan 2, 2024
@bedevere-app bedevere-app Bot mentioned this pull request Jan 2, 2024
Safer data serialization with marshal module #113626
Closed
eendebakpt
eendebakpt reviewed Jan 2, 2024
View reviewed changes
Comment thread Doc/library/marshal.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@serhiy-storchaka @eendebakpt
Update Doc/library/marshal.rst
e42b62d
Co-authored-by: Pieter Eendebak <[email protected]>
vstinner
vstinner reviewed Jan 10, 2024
View reviewed changes
Comment thread Lib/test/test_marshal.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Python/marshal.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Python/marshal.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Doc/whatsnew/3.13.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

serhiy-storchaka and others added 4 commits January 12, 2024 22:17
@serhiy-storchaka @vstinner
Apply suggestions from code review
7061e51
Co-authored-by: Victor Stinner <[email protected]>
@serhiy-storchaka @vstinner
Update Python/marshal.c
57334cd
Co-authored-by: Victor Stinner <[email protected]>
@serhiy-storchaka
Merge branch 'main' into marshal-allow_code
1f5f14a
@serhiy-storchaka
Address review comments.
7c6c2b6
vstinner
vstinner approved these changes Jan 16, 2024
View reviewed changes

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM. The error message is better thanks to the new WFERR_CODE_NOT_ALLOWED error code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Jan 16, 2024
@serhiy-storchaka
serhiy-storchaka merged commit d2d8332 into python:main Jan 16, 2024
@bedevere-app bedevere-app Bot removed the awaiting merge label Jan 16, 2024
@serhiy-storchaka
serhiy-storchaka deleted the marshal-allow_code branch January 16, 2024 16:05
@serhiy-storchaka

serhiy-storchaka commented Jan 16, 2024

Copy link
Copy Markdown
Member Author

Thank you for your review Victor!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
@serhiy-storchaka @kulikjak
pythongh-113626: Add allow_code parameter in marshal functions (pytho…
645eb95
…nGH-113648)

Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
@serhiy-storchaka @aisk
pythongh-113626: Add allow_code parameter in marshal functions (pytho…
a8e86ef
…nGH-113648)

Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
@serhiy-storchaka @Glyphack
pythongh-113626: Add allow_code parameter in marshal functions (pytho…
339cee2
…nGH-113648)

Passing allow_code=False prevents serialization and de-serialization of
code objects which is incompatible between Python versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@eendebakpt eendebakpt eendebakpt left review comments
@vstinner vstinner vstinner approved these changes
@tiran tiran Awaiting requested review from tiran

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@serhiy-storchaka @vstinner @eendebakpt
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.