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

[3.13] gh-142560: prevent use-after-free in search-like methods by exporting buffer in bytearray (GH-142938)#142986

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

Open
cmaloney wants to merge1 commit intopython:3.13
base:3.13
Choose a base branch
Loading
fromcmaloney:backport-220f0b1-3.13

Conversation

@cmaloney
Copy link
Contributor

@cmaloneycmaloney commentedDec 19, 2025
edited
Loading

This backport is more intricate as free threading / locking / critical sections was only added tobytearray in 3.14; this makesbytearray safer in 3.13 (The methods that use_bytearray_with_buffer should now be thread safe as it does the critical section), but I did not make all the methods thread safe that are thread safe in 3.14 (Without the clinic annotation doing so well is a lot more difficult)

(cherry picked from commit220f0b1)

… by exporting buffer in bytearray (pythonGH-142938)(cherry picked from commit220f0b1)Co-authored-by: wangxiaolei <fatelei@gmail.com>
@vstinner
Copy link
Member

Sadly, the build fails :-(

cmaloney reacted with confused emoji

@cmaloney
Copy link
ContributorAuthor

Will work on resolving in a bit; free threaded build worked for me... i need to improve my local tools for doing multiple builde

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnerAwaiting requested review from vstinner

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cmaloney@vstinner@fatelei

[8]ページ先頭

©2009-2025 Movatter.jp