aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2023-07-12 19:37:49 -0400
committerJunio C Hamano <gitster@pobox.com>2023-07-14 09:32:03 -0700
commitd67609bdded151d78522911629c9e7da7fd06640 (patch)
treedd8789ffb281f83b3625b78dc7835740b9bb506a /commit-graph.c
parentmidx.c: prevent overflow in `write_midx_internal()` (diff)
downloadgit-d67609bdded151d78522911629c9e7da7fd06640.tar.gz
git-d67609bdded151d78522911629c9e7da7fd06640.zip
midx.c: prevent overflow in `fill_included_packs_batch()`
In a similar spirit as in previous commits, avoid an integer overflow when computing the expected size of a MIDX. (Note that this is also OK as-is, since `p->pack_size` is an `off_t`, so this computation should already be done as 64-bit integers. But again, let's use `st_mult()` to make this fact clear). Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions