Re: Running bash under valgrind gives "invalid free()"

2017-04-12 Thread Hanno Böck
to valgrind. Just add -fsanitize=address to the CFLAGS. If you can't reproduce the bug with asan I'd bet on a valgrind bug. -- Hanno Böck https://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: FE73757FA60E4E21B937579FA5880072BBB51E42

Another heap out of bounds read in bash

2016-07-09 Thread Hanno Böck
ack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user:f7 Contiguous container OOB:fc AS

Re: Out of bounds heap read in function rl_tilde_expand

2015-12-14 Thread Hanno Böck
AN enabled - for that these kind of issues need to be resolved.) -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgpWUzLxhgpyE.pgp Description: OpenPGP digital signature

Re: Out of bounds heap read in function rl_tilde_expand

2015-12-05 Thread Hanno Böck
On Mon, 9 Nov 2015 09:57:22 -0500 Chet Ramey wrote: > On 11/6/15 9:46 AM, Hanno Böck wrote: > > While testing bash with address sanitizer I discovered a heap out of > > bounds read. This affects bash 4.3 with the latest patchlevel 42. > > Thanks for the report. This will

Out of bounds heap read in function rl_tilde_expand

2015-11-06 Thread Hanno Böck
Poisoned by user:f7 Contiguous container OOB:fc ASan internal: fe ==28349==ABORTING -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgpwCZyTys7PN.pgp Description: OpenPGP digital signature

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 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 */ tem

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
p' are > when it crashes. Thanks. I was unable to get this working in gdb, but I added some printf: pathname 11728 x 11727 temp 11728 -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgpK9QbB0nAxO.pgp Description: OpenPGP digital signature

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"

Re: Another out of bounds heap read in bash completion

2015-07-10 Thread Hanno Böck
k right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user:f7 Contiguous container OOB:fc ASan internal: fe ==5999==ABORTING -- Hanno Böck

Another out of bounds heap read in bash completion

2015-07-06 Thread Hanno Böck
f8 Global redzone: f9 Global init order: f6 Poisoned by user:f7 Contiguous container OOB:fc ASan internal: fe ==28776==ABORTING -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 pgpSN2bDnjEmD.pgp Description: OpenPGP digital signature

Re: Out of bounds heap read in completion code detected when compiling bash with address sanitizer

2015-06-23 Thread Hanno Böck
ease drop me a note when you publish it as an "official" patch level for bash. Btw, address sanitizer is just a compile feature of gcc and clang activated by a cflag, you usually don't need anything special to have it. Makes sense to test from time to time with it. -- Hanno Böck

Out of bounds heap read in completion code detected when compiling bash with address sanitizer

2015-06-23 Thread Hanno Böck
ght redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user:f7 Contiguous container OOB:fc ASan internal: fe ==5029==ABORTING -- Hanno Böc

behaviour change between 4.2/4.3 with tilde

2014-10-22 Thread Hanno Böck
; char there seems no easy portable way to do so. Using escaping with \~ works in 4.3, but not in 4.2. I wanted to ask if this is an expected feature/behaviour change in 4.3 or some kind of bug? cu, -- Hanno Böck http://hboeck.de/ mail/jabber: ha...@hboeck.de GPG: BBB51E42 signature.asc Description: PGP signature