]> Kevux Git Server - rit/commit
Merge branch 'en/diffstat-utf8-truncation-fix'
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2026 01:30:56 +0000 (10:30 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2026 01:30:56 +0000 (10:30 +0900)
commit3b3a3ef06624db3937a1e38d5d1f365cfdef1b69
tree1e69c05b72fb8559da24cf5c20e4ba593689b0b7
parent91ddfe3d5cf2a3003f5055c1d8a24df0c0601911
parent09d86a3b98573cba6d7c813ec97eadb69e3e2dfd
Merge branch 'en/diffstat-utf8-truncation-fix'

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