Skip to content

gh-148850: Fix memory sanitizer false positive in os.getrandom#148851

Open
petervanvugt wants to merge 2 commits intopython:mainfrom
petervanvugt:fix-issue-148850
Open

gh-148850: Fix memory sanitizer false positive in os.getrandom#148851
petervanvugt wants to merge 2 commits intopython:mainfrom
petervanvugt:fix-issue-148850

Conversation

@petervanvugt
Copy link
Copy Markdown

@petervanvugt petervanvugt commented Apr 21, 2026

This marks the memory filled by the getrandom syscall as having been initialized when os.getrandom() is called. Without this, accessing this memory will cause a false positive when the memory sanitizer is enabled.

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 21, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Apr 21, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant