diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:44 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:44 -0700 |
| commit | 8777ec119e94782e7e5e49367cd40e0ee412bcb3 (patch) | |
| tree | ec9a50102c031d45fdd19366afbb183b31ace958 /builtin/commit-graph.c | |
| parent | Merge branch 'dl/test-must-fail-fixes-3' (diff) | |
| parent | midx.c: fix an integer underflow (diff) | |
| download | git-8777ec119e94782e7e5e49367cd40e0ee412bcb3.tar.gz git-8777ec119e94782e7e5e49367cd40e0ee412bcb3.zip | |
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
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
