Skip to content

Conversation

ZeroIntensity
Copy link
Member

FWIW, this is actually a bug upstream in GNU's append_history function, but this is the best that Python can do in the meantime to prevent accessing out of bounds memory.

@ZeroIntensity ZeroIntensity changed the title gh-122431: Disallow negative values in readline.append_history_file. gh-122431: Disallow negative values in readline.append_history_file Jul 30, 2024
Really, this is just a commit to retrigger CI.
@ZeroIntensity
Copy link
Member Author

I'm quite confused on how the documentation tests could be related.

@vstinner vstinner enabled auto-merge (squash) December 5, 2024 15:47
@vstinner vstinner added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Dec 5, 2024
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the update.

@vstinner vstinner merged commit 208b0fb into python:main Dec 5, 2024
49 checks passed
@miss-islington-app
Copy link

Thanks @ZeroIntensity for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2024
…_file` (pythonGH-122469)

(cherry picked from commit 208b0fb)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 5, 2024
…_file` (pythonGH-122469)

(cherry picked from commit 208b0fb)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Dec 5, 2024

GH-127641 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Dec 5, 2024
@bedevere-app
Copy link

bedevere-app bot commented Dec 5, 2024

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Dec 5, 2024
vstinner added a commit that referenced this pull request Dec 5, 2024
…y_file` (GH-122469) (#127642)

gh-122431: Disallow negative values in `readline.append_history_file` (GH-122469)
(cherry picked from commit 208b0fb)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this pull request Dec 5, 2024
…y_file` (GH-122469) (#127641)

gh-122431: Disallow negative values in `readline.append_history_file` (GH-122469)
(cherry picked from commit 208b0fb)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
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.

2 participants