Skip to content

Fix Windows launcher shebang bounds - #5291

Open
stanbot8 wants to merge 1 commit into
pypa:mainfrom
stanbot8:fix/windows-launcher-shebang-bounds
Open

Fix Windows launcher shebang bounds#5291
stanbot8 wants to merge 1 commit into
pypa:mainfrom
stanbot8:fix/windows-launcher-shebang-bounds

Conversation

@stanbot8

@stanbot8 stanbot8 commented Aug 6, 2026

Copy link
Copy Markdown

The Windows launcher parser could write one byte past its fixed shebang buffer and form a pointer before that buffer. A maximal launcher shebang without a newline could corrupt adjacent process memory while parsing a generated executable.

Keep Windows launcher shebang reads and parser pointers within the fixed buffer.

I did not include the 8 launcher binaries because they are not reviewable from the diff. A maintainer must regenerate them in the project's trusted Windows build environment by running python tools/build_launchers.py.

@mergify

mergify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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.

1 participant