]> git.ipfire.org Git - thirdparty/git.git/commit
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)
commitadf801eb1dd79c20bb3de9ee05ad7d495dd4b8e7
treec82470ee4928c56d2350a33b2d90d2ec863a7569
parent2116a6bcc9c608f2116355acc4937f362e1f0712
parent09d86a3b98573cba6d7c813ec97eadb69e3e2dfd
Merge branch 'en/diffstat-utf8-truncation-fix' into next

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