{"thread":{"id":"61582","subject":"builtin/stash - segmentation fault","startedAt":"2024-06-04T07:12:21Z","lastAt":"2024-06-04T07:12:21Z","messageCount":1,"participants":["Fadhil Mandaga"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"496202","messageId":"CADV-Dy+dU+t=MCy5mwrMZ7LBvOh0T1zKos=-YpNk0EzXZN78tw@mail.gmail.com","threadId":"61582","inReplyTo":null,"subject":"builtin/stash - segmentation fault","fromName":"Fadhil Mandaga","fromEmail":"firodj@gmail.com","sentAt":"2024-06-04T07:12:08Z","receivedAt":"2024-06-04T07:12:21Z","isPatch":false,"sender":{"key":"firodj@gmail.com","avatar":null},"body":"Hi,\n\nWhen `git  stash` on detached HEAD I  got a segmentation fault. I am\nusing git 2.45.2 on OSX/Darwin. Furthermore the culprit is\nEXC_BAD_ACCESS on `repo_find_unique_abbrev_r` because `oid` is\ninvalid. The `oid` was obtained from NULL `lookup_commit` in\n`do_create_stash`. The result from `lookup_commit` should be checked\nfor validation to avoid null access.\n\nhttps://github.com/git/git/blob/7b0defb3915eaa0bd118f0996e8c00b4eb2dc1ca/builtin/stash.c#L1380\n\nThanks.\n"}]}