diff options
| author | Taylor Blau <me@ttaylorr.com> | 2023-07-12 19:38:00 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-14 09:32:03 -0700 |
| commit | 0bd8f30a0e4e474163eb2d8dc3020d51ec3c8a35 (patch) | |
| tree | 5b414b493a1945ecf99cd5602a28763668078a3b /builtin/commit-tree.c | |
| parent | commit-graph.c: prevent overflow in add_graph_to_chain() (diff) | |
| download | git-0bd8f30a0e4e474163eb2d8dc3020d51ec3c8a35.tar.gz git-0bd8f30a0e4e474163eb2d8dc3020d51ec3c8a35.zip | |
commit-graph.c: prevent overflow in `load_oid_from_graph()`
In a similar spirit as previous commits, ensure that we don't overflow
when trying to compute an offset into the `chunk_oid_lookup` table when
the `lex_index` of the item we're trying to look up exceeds
`2^32-1/g->hash_len`.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions
