From owner-freebsd-bugs Wed Jul 18 20:10: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 33C3F37B409 for ; Wed, 18 Jul 2001 20:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6J3A1295157; Wed, 18 Jul 2001 20:10:01 -0700 (PDT) (envelope-from gnats) Received: from colnta.acns.ab.ca (h24-68-206-125.sbm.shawcable.net [24.68.206.125]) by hub.freebsd.org (Postfix) with ESMTP id 867B437B405 for ; Wed, 18 Jul 2001 20:04:00 -0700 (PDT) (envelope-from davidc@colnta.acns.ab.ca) Received: (from davidc@localhost) by colnta.acns.ab.ca (8.11.4/8.11.3) id f6J33uY71742; Wed, 18 Jul 2001 21:03:56 -0600 (MDT) (envelope-from davidc) Message-Id: <200107190303.f6J33uY71742@colnta.acns.ab.ca> Date: Wed, 18 Jul 2001 21:03:56 -0600 (MDT) From: Chad David Reply-To: Chad David To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/29074: banner seg faults on Ctrl-D Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29074 >Category: bin >Synopsis: banner seg faults on Ctrl-D >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 18 20:10:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Chad David >Release: FreeBSD 5.0-CURRENT i386 >Organization: ACNS Inc. >Environment: System: FreeBSD snoop.acns.ab.ca 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Jun 18 19:28:31 MDT 2001 root@snoop.acns.ab.ca:/usr/src/sys/i386/compile/GENERIC i386 >Description: When banner is run without any arguments it displays a Message: prompt. If Ctrl-D is entered at that point the program core dumps. >How-To-Repeat: Run banner without any arguments and press Ctrl-D at the Message: prompt. >Fix: Zero the buffer prior to calling fgets() or check the return value of fgets(), the later is probably more correct. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message