Skip to content

stash: fix 'show -p' with unknown options #1973

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamchainz
Copy link
Contributor

No description provided.

Copy link

There are issues in commit 957a688:
stash: fix 'show -p' with unknown options
Commit not signed off

@adamchainz adamchainz force-pushed the aj/stash-p-unknown-options branch 2 times, most recently from 491c049 to 01e5980 Compare May 22, 2025 16:04
"git stash show -p" with unknown options would fail with a use-after-free
error. This commit fixes that error by ensuring that revision_args has its
argument count updated correctly.

Signed-off-by: Adam Johnson <[email protected]>
@adamchainz adamchainz force-pushed the aj/stash-p-unknown-options branch from 01e5980 to 2bd8bbf Compare May 26, 2025 14:36
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