From: Junio C Hamano Date: Wed, 22 Apr 2020 20:42:44 +0000 (-0700) Subject: Merge branch 'dr/midx-avoid-int-underflow' X-Git-Tag: v2.27.0-rc0~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8777ec119e94782e7e5e49367cd40e0ee412bcb3;p=thirdparty%2Fgit.git 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 --- 8777ec119e94782e7e5e49367cd40e0ee412bcb3