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-92888: memory_ass_sub() calls CHECK_RELEASED_INT() twice#93127

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

Closed
vstinner wants to merge1 commit intopython:mainfromvstinner:release_view
Closed

gh-92888: memory_ass_sub() calls CHECK_RELEASED_INT() twice#93127

vstinner wants to merge1 commit intopython:mainfromvstinner:release_view

Conversation

@vstinner
Copy link
Member

If a memoryview is released while setting an item, raise an
exception. For example, converting an object to an index in C can
execute arbitrary Python code which can indirectly release the
memoryview.

If a memoryview is released while setting an item, raise anexception. For example, converting an object to an index in C canexecute arbitrary Python code which can indirectly release thememoryview.
@vstinner
Copy link
MemberAuthor

I chose to keep the CHECK_RELEASED_INT() call at memory_ass_sub() entry.

I guess that memory_subscript() suffers from the same issue: I would prefer to fix it in a separated PR, but maybe then we can combine the two changes when backporting to stable branches.

@vstinner
Copy link
MemberAuthor

PR#92946 seems more complete, I close my issue.

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp