Re: [elinks-dev] [PATCH] Fix double-free crash if EOF immediately follows .

2008-12-30 Thread Kalle Olavi Niemitalo
Witold Filipczyk quotes: > Memory leak by 1 bytes > List of blocks: > 0xa287e58:1 @ alloc'd at link.c:973 That is bug 762, already present in ELinks 0.10.6. If there are no other objections, I'll push the patch tomorrow. pgpkV6wJEqGbB.pgp Description: PGP signature

Re: [elinks-dev] [PATCH] Fix double-free crash if EOF immediately follows .

2008-12-30 Thread Witold Filipczyk
On Mon, Dec 29, 2008 at 09:49:52PM +0200, Kalle Olavi Niemitalo wrote: > look_for_link() used to return 0 both when it found the closing > tag, and when it hit the end of the file. In the first case, it also > added *menu to the memory_list; in the second case, it did not. The > caller get_image

[elinks-dev] [PATCH] Fix double-free crash if EOF immediately follows .

2008-12-29 Thread Kalle Olavi Niemitalo
look_for_link() used to return 0 both when it found the closing tag, and when it hit the end of the file. In the first case, it also added *menu to the memory_list; in the second case, it did not. The caller get_image_map() supposedly distinguished between these cases by checking whether pos >=