summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.cgi
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2026-08-13 14:55:47 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-13 09:42:02 -0700
commit1f324b91f7f943740843995455a5a6f049b5f293 (patch)
tree3d48e4d08ddce826de7634d2df6f7cdd335f07e3 /gitweb/gitweb.cgi
parent335f9960052634dcdf584eefac565affb49ef2ff (diff)
diff: widen `deflate_it()`'s bound local from int to `size_t`
Fixes a pre-existing silent narrowing from `git_deflate_bound()`'s `unsigned long` return into an `int` local: anything past 2 GiB has always wrapped negative here and then been re-extended to `size_t` inside `xmalloc()`. Also prep for the upcoming `git_deflate_bound()` widening to `size_t`, which would extend the narrowing further if `bound` stayed `int`. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.cgi')
0 files changed, 0 insertions, 0 deletions