]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'en/diffstat-utf8-truncation-fix' into next
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2026 03:21:27 +0000 (12:21 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2026 03:21:27 +0000 (12:21 +0900)
The computation to shorten the filenames shown in diffstat measured
width of individual UTF-8 characters to add up, but forgot to take
into account error cases (e.g., an invalid UTF-8 sequence, or a
control character).

* en/diffstat-utf8-truncation-fix:
  diff: fix out-of-bounds reads and NULL deref in diffstat UTF-8 truncation


Trivial merge