Skip to content

fix: use proper quoting for exe paths and args on Windows - #50146

Merged
jkleinsc merged 1 commit into
38-x-yfrom
trop/38-x-y-bp-fix-use-proper-quoting-for-exe-paths-and-args-on-windows-1773073142719
Mar 9, 2026
Merged

jkleinsc merged 1 commit into
38-x-yfrom
trop/38-x-y-bp-fix-use-proper-quoting-for-exe-paths-and-args-on-windows-1773073142719

Conversation

@trop

@trop trop Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Backport of #50016

See that PR for details.

Notes: none

Previously, GetProtocolLaunchPath and FormatCommandLineString in
browser_win.cc used naive quoting which could break when paths or
arguments contained backslashes, spaces, or embedded quotes.

Fix by extracting the CommandLineToArgvW-compatible quoting logic from
relauncher_win.cc into a shared utility and use it in both browser_win.cc
and relauncher_win.cc to properly quote the exe path and each argument
individually.

Co-authored-by: Shelley Vohr <[email protected]>
@trop
trop Bot requested review from a team and codebytere March 9, 2026 16:19
@trop trop Bot added 38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Mar 9, 2026
@jkleinsc jkleinsc added semver/patch backwards-compatible bug fixes and removed semver/patch backwards-compatible bug fixes labels Mar 9, 2026
@jkleinsc
jkleinsc merged commit 5ee5ace into 38-x-y Mar 9, 2026
107 of 110 checks passed
@jkleinsc
jkleinsc deleted the trop/38-x-y-bp-fix-use-proper-quoting-for-exe-paths-and-args-on-windows-1773073142719 branch March 9, 2026 21:24
@release-clerk

release-clerk Bot commented Mar 9, 2026

Copy link
Copy Markdown

No Release Notes

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

Labels

38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants