diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-02-18 14:07:37 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-18 13:38:16 -0800 |
commit | 329fac3a366244ceac599ab63cd338bcc6a1dcb4 (patch) | |
tree | eca1be7031b7eafb708a0823fee635448bac2fb3 /Documentation/cat-texi.perl | |
parent | midx: use chunk-format read API (diff) | |
download | tgif-329fac3a366244ceac599ab63cd338bcc6a1dcb4.tar.xz |
midx: use 64-bit multiplication for chunk sizes
When calculating the sizes of certain chunks, we should use 64-bit
multiplication always. This allows us to properly predict the chunk
sizes without risk of overflow.
Other possible overflows were discovered by evaluating each
multiplication in midx.c and ensuring that at least one side of the
operator was of type size_t or off_t.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/cat-texi.perl')
0 files changed, 0 insertions, 0 deletions