diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2021-11-10 15:40:33 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-11 10:06:37 -0800 |
commit | 34de5b8eac2743497bc1785f661b4184adce21f3 (patch) | |
tree | 944d93d85a85c58141420663a68d91d95eeac0b5 /trace2/tr2_tgt_normal.c | |
parent | Merge branch 'vd/pthread-setspecific-g11-fix' into maint (diff) | |
download | tgif-34de5b8eac2743497bc1785f661b4184adce21f3.tar.xz |
packfile: avoid overflowing shift during decode
unpack_object_header_buffer() attempts to protect against overflowing
left shifts, but the limit of the shift amount should not be the size of
the variable being shifted. It should be the size minus the size of its
contents. Fix that accordingly.
This was noticed at $DAYJOB by a fuzzer running internally.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tgt_normal.c')
0 files changed, 0 insertions, 0 deletions