[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [Bulk] wget/Chrome bug?
From: |
Hubert Tarasiuk |
Subject: |
Re: [Bug-wget] [Bulk] wget/Chrome bug? |
Date: |
Fri, 10 Apr 2015 11:57:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
W dniu 09.04.2015 o 22:58, Tim Rühsen pisze:
> Am Donnerstag, 9. April 2015, 15:32:47 schrieb Gisle Vanem:
> To show on Linux:
> $ valgrind src/wget -Ahtml http://example.com
>
> ==15287== Invalid read of size 8
> ==15287== at 0x42F4C9: free_vec (utils.c:1286)
> ==15287== by 0x421B04: cleanup (init.c:1797)
> ==15287== by 0x4062FE: main (main.c:1771)
> ==15287== Address 0x95cfa00 is 0 bytes after a block of size 16 alloc'd
> ==15287== at 0x4C28C20: malloc (vg_replace_malloc.c:296)
> ==15287== by 0x4C2AFCF: realloc (vg_replace_malloc.c:692)
> ==15287== by 0x439685: xrealloc (xmalloc.c:61)
> ==15287== by 0x42E6D3: sepstring (utils.c:268)
> ==15287== by 0x4210A7: cmd_vector (init.c:1079)
> ==15287== by 0x42196B: setoptval (init.c:876)
> ==15287== by 0x405255: main (main.c:1153)
>
> I didn't have the time to track it further down, not sure if I have tomorrow.
> So, anybody feel free to fix the issue.
>
> To compile and run Wget:
> export CFLAGS="... -DDEBUG_MALLOC"
> ./configure
> valgrind src/wget -Ahtml http://example.com
>
I might be wrong, but it look to me like a nasty pointer mistake in
free_vec. The proposed fix is in the patch attached.
Hubert
0004-Fix-error-in-free_vec.patch
Description: Text Data
signature.asc
Description: OpenPGP digital signature