Skip to content

fix!: hard crash on invalid command line switches (36-x-y) - #46446

Merged
ckerr merged 1 commit into
36-x-yfrom
switch-check--36-x-y
Apr 4, 2025
Merged

ckerr merged 1 commit into
36-x-yfrom
switch-check--36-x-y

Conversation

@ckerr

@ckerr ckerr commented Apr 2, 2025 •

Copy link
Copy Markdown
Member

BREAKING CHANGE

Manually backport #46004 to 36-x-y. See that PR for details.

Notes: Fixed an issue where badly formatted switches could cause crashes in app.commandLine functions.

@ckerr ckerr added backport This is a backport PR semver/patch backwards-compatible bug fixes 36-x-y labels Apr 2, 2025
@ckerr
ckerr requested a review from a team as a code owner April 2, 2025 17:18
@trop trop Bot mentioned this pull request Apr 2, 2025
4 tasks done
@ckerr

ckerr commented Apr 2, 2025 •

Copy link
Copy Markdown
Member Author

Oh hmm. Trop marked this as needing manual backporrt; but at the same time, Deepak and I suggested that 46004 be documented as a breaking change for 37. So I'm undecided on whether this should have been backported or not...

CC @codebytere for opinion

@ckerr
ckerr requested a review from codebytere April 2, 2025 17:33
* fix: hard crash on invalid command line switch

* Update docs/api/command-line.md

Co-authored-by: Niklas Wenzel <[email protected]>

* chore: feedback from review

* docs: Add breaking change note

---------

Co-authored-by: Niklas Wenzel <[email protected]>
@ckerr
ckerr force-pushed the switch-check--36-x-y branch from 9548b59 to 5ede027 Compare April 3, 2025 20:14

@VerteDinde VerteDinde left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my two cents, but we just cut 36's beta on Monday - given that this fixes a hard crash, and that we have a lot of time before 36 goes stable, I think this would be fine to backport as long as we made the breaking change clear in the blog post, release notes and documentation

@ckerr ckerr changed the title fix: hard crash on invalid command line switches (36-x-y) fix!: hard crash on invalid command line switches (36-x-y) Apr 4, 2025
@trop
trop Bot requested a review from a team April 4, 2025 13:01
@ckerr
ckerr merged commit 4e3baa4 into 36-x-y Apr 4, 2025
@release-clerk

release-clerk Bot commented Apr 4, 2025

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where badly formatted switches could cause crashes in app.commandLine functions.

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

Labels

36-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.

3 participants