diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2018-10-04 11:07:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-04 22:48:07 -0700 |
commit | cf074a9b0e589bad8e6b210ac1e3a4714463f7db (patch) | |
tree | 3e82fe484e9cad95389df5ec3b688ddb1aa50038 /t/t4013/diff.show_initial | |
parent | diff --color-moved-ws: fix double free crash (diff) | |
download | tgif-cf074a9b0e589bad8e6b210ac1e3a4714463f7db.tar.xz |
diff --color-moved-ws: fix out of bounds string access
When adjusting the start of the string to take account of the change
in indentation the code was not checking that the string being
adjusted was in fact longer than the indentation change. This was
detected by asan.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.show_initial')
0 files changed, 0 insertions, 0 deletions