lftp-devel  

[patch] Segmentation fault when using lftp on web pages

Martin Nagy
Thu, 24 Jan 2008 06:32:39 -0800

Hi. lftp 3.6.1 will core dump when used on a page that uses empty arguments for tags, eg. '<meta content="">'. To reproduce, put attached index.html on a web server, then:
$ lftp http://localhost/
cd ok, cwd=/
lftp localhost:/> ls
Segmentation fault
Exit 139

The attached patch fixes the problem, but maybe you'll be able to come up with a better one.

Regards,
Martin Nagy