Date: Thu, 25 May 2000 10:54:29 +0200 (CEST) From: tludwig@urbanet.ch To: FreeBSD-gnats-submit@freebsd.org Subject: bin/18804: error in usr.bin/ftp/main.c ? Message-ID: <200005250854.KAA00691@sie-home-2-12.urbanet.ch>
next in thread | raw e-mail | index | archive | help
>Number: 18804
>Category: bin
>Synopsis: error in usr.bin/ftp/main.c ?
>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: Thu May 25 02:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Thomas Ludwig
>Release: FreeBSD 4.0-STABLE i386
>Organization:
>Environment:
FreeBSD sie-home-2-12.urbanet.ch 4.0-STABLE FreeBSD 4.0-STABLE #0: Wed May 3 18:01:35 CEST 2000 root@sie-home-2-12.urbanet.ch:/usr/obj/usr/src/sys/BOLZA i386
>Description:
in usr.bin/ftp/main.c at line 407, there is a test
for a newline character in a string pointed to by
the variable 'line'.
if (line[--num] == '\n') {
Unfortunately the string that should be checked is
pointed to by 'line', not 'buf'.
>How-To-Repeat:
>Fix:
replace line 407 in usr.bin/ftp/main.c by
if (buf[--num] == '\n') {
>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?200005250854.KAA00691>
