Re: [patch, libgfortran] Bug 81937 - stack-buffer-overflow on memcpy

2017-12-16 Thread Janne Blomqvist
On Sat, Dec 16, 2017 at 6:26 PM, Jerry DeLisle wrote: > Hi all, > > This problem was found with -fsanitize=address. > > Turns out we are not correctly tracking the bytes left in the internal unit > string and we were reading memory past the end. I am sure the problem exists > in > gcc 7 and I wil

[patch, libgfortran] Bug 81937 - stack-buffer-overflow on memcpy

2017-12-16 Thread Jerry DeLisle
Hi all, This problem was found with -fsanitize=address. Turns out we are not correctly tracking the bytes left in the internal unit string and we were reading memory past the end. I am sure the problem exists in gcc 7 and I will examine gcc 6 as well and fix this in all cases I see. The function