summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-07-03 14:58:47 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-03 11:08:02 -0700
commited103ab7f89075c8cb98196b4a2577611f009def (patch)
tree08f6c9657109ee6304cc163ec3a7470178d5c628 /git-commit-script
parent657654b1aa0c4a101a55c46ab14c96bdf95dc3b7 (diff)
reftable/record: don't abort when decoding invalid ref value type
When decoding a ref record we read its value type from the block. In case the type itself is invalid we call `abort()`. This is rather heavy-handed though: the data we're reading is untrusted, so we should treat the issue as a normal and not as a programming error. Fix this by handling the error gracefully. Note that this also requires us to set the value type later, as otherwise we might store an invalid type in the record. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions