Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-118561: Fix crash involving list.extend in free-threaded build#118723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
colesbury merged 2 commits intopython:mainfromcolesbury:gh-118561-list-extend
May 9, 2024

Conversation

colesbury
Copy link
Contributor

@colesburycolesbury commentedMay 7, 2024
edited by bedevere-appbot
Loading

Thelist_preallocate_exact function did not zero initialize array contents. In the free-threaded build, this could expose uninitialized memory to concurrent readers between the call tolist_preallocate_exact and the filling of the array contents with items.

The `list_preallocate_exact` function did not zero initialize arraycontents. In the free-threaded build, this could expose uninitializedmemory to concurrent readers between the call to`list_preallocate_exact` and the filling of the array contents withitems.
Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

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

lgtm

…e-118561.wNMKVd.rstCo-authored-by: Donghee Na <donghee.na92@gmail.com>
@colesburycolesbury added the needs backport to 3.13bugs and security fixes labelMay 9, 2024
@colesburycolesburyenabled auto-merge (squash)May 9, 2024 18:31
@colesburycolesbury merged commit2402715 intopython:mainMay 9, 2024
@miss-islington-app
Copy link

Thanks@colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 9, 2024
…ld (pythonGH-118723)The `list_preallocate_exact` function did not zero initialize arraycontents. In the free-threaded build, this could expose uninitializedmemory to concurrent readers between the call to`list_preallocate_exact` and the filling of the array contents withitems.(cherry picked from commit2402715)Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app
Copy link

GH-118863 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 9, 2024
colesbury added a commit that referenced this pull requestMay 9, 2024
…ild (GH-118723) (#118863)The `list_preallocate_exact` function did not zero initialize arraycontents. In the free-threaded build, this could expose uninitializedmemory to concurrent readers between the call to`list_preallocate_exact` and the filling of the array contents withitems.(cherry picked from commit2402715)Co-authored-by: Sam Gross <colesbury@gmail.com>
SonicField pushed a commit to SonicField/cpython that referenced this pull requestMay 10, 2024
…ld (python#118723)The `list_preallocate_exact` function did not zero initialize arraycontents. In the free-threaded build, this could expose uninitializedmemory to concurrent readers between the call to`list_preallocate_exact` and the filling of the array contents withitems.
@colesburycolesbury deleted the gh-118561-list-extend branchMay 20, 2024 15:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@corona10corona10corona10 approved these changes

@DinoVDinoVAwaiting requested review from DinoV

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@colesbury@corona10

[8]ページ先頭

©2009-2025 Movatter.jp