bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [Bulk] wget/Chrome bug?


From: Tim Rühsen
Subject: Re: [Bug-wget] [Bulk] wget/Chrome bug?
Date: Fri, 10 Apr 2015 18:10:19 +0200
User-agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )

Am Freitag, 10. April 2015, 11:57:21 schrieb Hubert Tarasiuk:
> 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

I pushed the commit (mentioning Gisle as the reporter).

Thanks for fixing the issue.

Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]