]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'dr/midx-avoid-int-underflow'
authorJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2020 20:42:44 +0000 (13:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2020 20:42:44 +0000 (13:42 -0700)
commit8777ec119e94782e7e5e49367cd40e0ee412bcb3
treeec9a50102c031d45fdd19366afbb183b31ace958
parent7a8e6305d8d76df7551de8be2d5732c2ac3248b9
parent796d61cdc09c8f3068403965531f27fd11c739e9
Merge branch 'dr/midx-avoid-int-underflow'

When fed a midx that records no objects, some codepaths tried to
loop from 0 through (num_objects-1), which, due to integer
arithmetic wrapping around, made it nonsense operation with out of
bounds array accesses.  The code has been corrected to reject such
an midx file.

* dr/midx-avoid-int-underflow:
  midx.c: fix an integer underflow