]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'en/diffstat-utf8-truncation-fix' into seen
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:22:03 +0000 (10:22 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2026 01:22:03 +0000 (10:22 +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

1  2 
diff.c

diff --cc diff.c
Simple merge