NetBSD Problem Report #56918
From www@netbsd.org Fri Jul 8 19:24:34 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id CCBC41A921F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 8 Jul 2022 19:24:33 +0000 (UTC)
Message-Id: <20220708192432.92CDF1A9239@mollari.NetBSD.org>
Date: Fri, 8 Jul 2022 19:24:32 +0000 (UTC)
From: simon@josefsson.org
Reply-To: simon@josefsson.org
To: gnats-bugs@NetBSD.org
Subject: telnet crash on 1) set ' ' crash 2) unset ' ' 3) help help
X-Send-Pr-Version: www-1.0
>Number: 56918
>Category: bin
>Synopsis: telnet crash on 1) set ' ' crash 2) unset ' ' 3) help help
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 08 19:25:00 +0000 2022
>Last-Modified: Fri Jul 08 21:55:01 +0000 2022
>Originator: Simon Josefsson
>Release: 9.2
>Organization:
>Environment:
NetBSD gcc300 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Hi. I maintain GNU InetUtils which contains a telnet implementation that share origins with BSD code, and I can reproduce the bug reports we got on NetBSD 9.2 as follows. See discussions in https://lists.gnu.org/archive/html/bug-inetutils/2022-07/ with the fixes we adopted for these problems.
It would be nice to coordinate patches and code syncs, if there is anyone in the NetBSD community that is interested in working with us in the GNU InetUtils community!
Reported to FreeBSD as well here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265097
/Simon
>How-To-Repeat:
gcc300$ telnet
telnet> set ' ' crash
[1] Segmentation fault (core dumped) telnet
gcc300$ telnet
telnet> unset ' '
[1] Segmentation fault (core dumped) telnet
gcc300$ telnet
telnet> help help
[1] Segmentation fault (core dumped) telnet
gcc300$
>Fix:
See posts to https://lists.gnu.org/archive/html/bug-inetutils/2022-07/ with the fixes we used.
>Audit-Trail:
From: "Michael van Elst" <mlelstv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/56918 CVS commit: src/usr.bin/telnet
Date: Fri, 8 Jul 2022 21:51:24 +0000
Module Name: src
Committed By: mlelstv
Date: Fri Jul 8 21:51:24 UTC 2022
Modified Files:
src/usr.bin/telnet: commands.c
Log Message:
Prevent crashes as shown in PR 56918.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/telnet/commands.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.