diff options
| author | Taylor Blau <me@ttaylorr.com> | 2023-07-12 19:38:11 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-14 09:32:03 -0700 |
| commit | 19565d093d248ba4c2330d96314a547feed41112 (patch) | |
| tree | ce0b225223beedb53dc6243b72a636bd0b8b9185 /builtin/count-objects.c | |
| parent | commit-graph.c: prevent overflow in `load_tree_for_commit()` (diff) | |
| download | git-19565d093d248ba4c2330d96314a547feed41112.tar.gz git-19565d093d248ba4c2330d96314a547feed41112.zip | |
commit-graph.c: prevent overflow in `split_graph_merge_strategy()`
In a similar spirit as previous commits, ensure that we don't overflow
when choosing how to split and merge different layers of the
commit-graph.
In particular, avoid a potential overflow between `size_mult` and
`num_commits`, as well as a potential overflow between the number of
commits currently in the merged graph, and the number of commits in the
graph about to be merged.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/count-objects.c')
0 files changed, 0 insertions, 0 deletions
