diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-03 14:58:52 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-03 11:08:03 -0700 |
| commit | 986590f1f7e9aa2771175e01cba5e2680ff62c1f (patch) | |
| tree | 03657301aa766ebed3c82ff361c6285cad9b255b /git-commit-script | |
| parent | 0d77a818546c2120c4bd8b29fc16908038b78f89 (diff) | |
reftable/block: fix use of uninitialized memory when binsearch fails
When doing the binary search through our restart offsets we may hit an
error in case `restart_needle_less()` fails to decode the record at the
given offset. While we correctly detect this case and error out, it will
cause us to call `reftable_record_release()` on the yet-uninitialized
record.
Fix this by initializing the record earlier.
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
