Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 16:33:34 -0400 Chet Ramey wrote: > Perfect, thanks. Try the attached patch. Yep, fixes the bug. Thanks! -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgp7AW88NhmiX.pgp Description: OpenPGP digital signature

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 4:15 PM, Hanno Böck wrote: > On Fri, 10 Jul 2015 16:00:25 -0400 > Chet Ramey wrote: > >> That helps, but they are strings, so can you print the string >> values? I'm interested in reproducing this instead of just guessing >> and not being

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 16:00:25 -0400 Chet Ramey wrote: > That helps, but they are strings, so can you print the string > values? I'm interested in reproducing this instead of just guessing > and not being able to fix it at an appropriately high level. Thanks. pathname / x */ temp / -- Hanno Bö

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 3:42 PM, Hanno Böck wrote: > On Fri, 10 Jul 2015 15:34:02 -0400 > Chet Ramey wrote: > >>> Here's the asan message on 4.4 alpha: >>> ==5999==ERROR: AddressSanitizer: heap-buffer-overflow on address >>> 0x602000 >> 002d6f at pc 0x5ca2b8 bp 0

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 15:34:02 -0400 Chet Ramey wrote: > > Here's the asan message on 4.4 alpha: > > ==5999==ERROR: AddressSanitizer: heap-buffer-overflow on address > > 0x602000 > 002d6f at pc 0x5ca2b8 bp 0x7fffc9d75240 sp 0x7fffc9d75230 > > READ of size 1 at 0x60202d6f thread T0 > > #0 0x

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 2:38 PM, Hanno Böck wrote: > Hi Chet, > > On Fri, 10 Jul 2015 14:23:25 -0400 > Chet Ramey wrote: > >>> To reproduce: >>> a) compile bash with CFLAGS="-fsanitize=address -g" >>> b) type in a=/ a >>> c) go back with the cursor behind the ba

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
On Fri, 10 Jul 2015 14:41:04 -0400 Chet Ramey wrote: > On 7/10/15 2:38 PM, Hanno Böck wrote: > > On Fri, 10 Jul 2015 14:23:25 -0400 > > Chet Ramey wrote: > > > >>> To reproduce: > >>> a) compile bash with CFLAGS="-fsanitize=address -g" > >>> b) type in a=/ a > >>> c) go back with the cursor beh

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/10/15 2:38 PM, Hanno Böck wrote: > Hi Chet, > > On Fri, 10 Jul 2015 14:23:25 -0400 > Chet Ramey wrote: > >>> To reproduce: >>> a) compile bash with CFLAGS="-fsanitize=address -g" >>> b) type in a=/ a >>> c) go back with the cursor behind the ba

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
Hi Chet, On Fri, 10 Jul 2015 14:23:25 -0400 Chet Ramey wrote: > > To reproduce: > > a) compile bash with CFLAGS="-fsanitize=address -g" > > b) type in a=/ a > > c) go back with the cursor behind the backslash and press tab > > Thanks for the report. I've attached a patch that should address th

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/6/15 6:46 PM, Hanno Böck wrote: > Hi, > > With Address Sanitizer I discovered another out of bounds read issue in > bash. This is different from the issue I recently reported here and > for which Chet already provided a patch: > https://lists.gnu

Another out of bounds heap read in bash completion

2015-07-06 Thread Hanno Böck
Hi, With Address Sanitizer I discovered another out of bounds read issue in bash. This is different from the issue I recently reported here and for which Chet already provided a patch: https://lists.gnu.org/archive/html/bug-bash/2015-06/msg00089.html To reproduce: a) compile bash with CFLAGS="-fs