summaryrefslogtreecommitdiff
path: root/git-gui/lib/commit.tcl
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-02-18 14:07:37 +0000
committerJunio C Hamano <gitster@pobox.com>2021-02-18 13:38:16 -0800
commit329fac3a366244ceac599ab63cd338bcc6a1dcb4 (patch)
treeeca1be7031b7eafb708a0823fee635448bac2fb3 /git-gui/lib/commit.tcl
parent6ab3b8b8b8dc94c8e4caefb1d368cc704e70d38b (diff)
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 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions