summaryrefslogtreecommitdiff
path: root/git-gui/lib/sshkey.tcl
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2021-11-10 15:40:33 -0800
committerJunio C Hamano <gitster@pobox.com>2021-11-11 10:06:37 -0800
commit34de5b8eac2743497bc1785f661b4184adce21f3 (patch)
tree944d93d85a85c58141420663a68d91d95eeac0b5 /git-gui/lib/sshkey.tcl
parent5fbd2fc5997dfa4d4593a862fe729b1e7a89bcf8 (diff)
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 'git-gui/lib/sshkey.tcl')
0 files changed, 0 insertions, 0 deletions