Re: [PATCH 2/5] diff --color-moved-ws: fix out of bounds string access

2018-10-03 Thread Phillip Wood
On 02/10/2018 19:58, Stefan Beller wrote: > On Tue, Oct 2, 2018 at 10:55 AM Phillip Wood > wrote: >> >> From: Phillip Wood >> >> 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

Re: [PATCH 2/5] diff --color-moved-ws: fix out of bounds string access

2018-10-02 Thread Stefan Beller
On Tue, Oct 2, 2018 at 10:55 AM Phillip Wood wrote: > > From: Phillip Wood > > 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

[PATCH 2/5] diff --color-moved-ws: fix out of bounds string access

2018-10-02 Thread Phillip Wood
From: Phillip Wood 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 --- diff.c | 2 +- 1 file