Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v13] tsh: fix panic when loading profile #38303

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Feb 15, 2024

Backport #38197 to branch/v13

changelog: Fixed a potential panic in the tsh status command.

When unmarshaling the profile YAML, it's possible for the unmarshal
to complete without error while not populating the profile struct,
which leads to a panic.

Fix the nil pointer dereference by unmarshaling into a Profile
instead of a *Profile, and further improve the error message
when this happens.

Fixes #38188
@zmb3 zmb3 enabled auto-merge February 15, 2024 23:27
@zmb3 zmb3 added this pull request to the merge queue Feb 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 16, 2024
@zmb3 zmb3 added this pull request to the merge queue Feb 16, 2024
Merged via the queue into branch/v13 with commit dbdb966 Feb 16, 2024
23 checks passed
@zmb3 zmb3 deleted the bot/backport-38197-branch/v13 branch February 16, 2024 03:24
@camscale camscale mentioned this pull request Feb 29, 2024
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.

None yet

3 participants