Re: [patch] sed: segfault due to use of initialized variable

2014-12-10 Thread Sébastien Marie
On Wed, Dec 10, 2014 at 10:05:49PM +1100, Jonathan Gray wrote: > On Wed, Dec 10, 2014 at 10:39:37AM +0100, Sébastien Marie wrote: > > > > Hi, > > > > Fuzzing sed with afl, I found a crash due to use of uninitialized > > variable. > > > > In process.c oldpsl variable need to be initialized: > >

Re: [patch] sed: segfault due to use of initialized variable

2014-12-10 Thread Jonathan Gray
On Wed, Dec 10, 2014 at 10:39:37AM +0100, Sébastien Marie wrote: > > Hi, > > Fuzzing sed with afl, I found a crash due to use of uninitialized > variable. > > In process.c oldpsl variable need to be initialized: > > $ echo | sed -e 'g;P' > Segmentation fault (core dumped) > > The following pat

[patch] sed: segfault due to use of initialized variable

2014-12-10 Thread Sébastien Marie
Hi, Fuzzing sed with afl, I found a crash due to use of uninitialized variable. In process.c oldpsl variable need to be initialized: $ echo | sed -e 'g;P' Segmentation fault (core dumped) The following patch correct this. I also include the initialization of p, as it is reported by compiler w