Bug#587330: [lynx-cur] lynx-cur doesn’t handle IPv6 addresses correctly in the finger protocol (and possibly others).

2010-06-27 Thread Elliot Thomas

Package: lynx-cur
Version: 2.8.8dev.4-1
Severity: normal

When an IPv6 address is given to lynx in the finger protocol, lynx
will misinterpret the address.
Example:
lynx finger://[::1]

outputs:
Alert!: Invalid port number - will only use port 79!

While:
lynx finger://ip6-localhost

will give the desired output.

It seems as if lynx interprets the :1 in [::1] as a port number, and
refuses to even attempt to complete the operation. Looking at the
source, it looks like lynx will do this with all other protocols it
supports, such as news:// and gopher://, although these are quite
difficult to test. (No IPv6 gopher servers yet, no clue about news).

However, as the HTTP Parser handles the []'s separately (see line 232
to 237 of WWW/Library/implementation/HTParse.c), it doesn't share this
problem, and interprets the address correctly.

Architecture: amd64
Kernel:   Linux 2.6.32-5-amd64

Debian Release: squeeze/sid




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#587330: [lynx-cur] lynx-cur doesn’t handle IPv6 addresses correctly in the finger protocol (and possibly others).

2010-06-27 Thread Thomas Dickey

On Sun, 27 Jun 2010, Elliot Thomas wrote:



Package: lynx-cur
Version: 2.8.8dev.4-1
Severity: normal

When an IPv6 address is given to lynx in the finger protocol, lynx
will misinterpret the address.
Example:
lynx finger://[::1]

outputs:
Alert!: Invalid port number - will only use port 79!


thanks (I can reproduce this).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org