Date: Sun, 12 Nov 2000 12:40:35 +0100 (CET) From: mavetju@chello.nl To: FreeBSD-gnats-submit@freebsd.org Subject: bin/22787: [PATCH] telnet dumps core after connecting to host with long name Message-ID: <20001112114035.605C337A@d9168.dtk.chello.nl>
next in thread | raw e-mail | index | archive | help
>Number: 22787 >Category: bin >Synopsis: telnet dumps core after connecting to a host with a long name >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 12 03:50:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.0-RELEASE i386 >Organization: - >Environment: standard freebsd system >Description: As described in freebsd-questions last week: telnet dumps core when trying to connect to www.llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk >How-To-Repeat: [~] edwin@p6>telnet www.llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk 80 Trying 194.42.244.17... Illegal instruction (core dumped) >Fix: Note: it will *still* crash now on systems which don't have MAXHOSTNAMELEN defined in sys/params.h. --- /usr/src/usr.bin/telnet/commands.c Fri Mar 3 12:13:09 2000 +++ commands.c Sun Nov 12 12:35:13 2000 @@ -2723,7 +2723,7 @@ int gotmachine = 0; int l1 = strlen(m1); int l2 = strlen(m2); - char m1save[64]; + char m1save[MAXHOSTNAMELEN]; if (skiprc) return; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001112114035.605C337A>