Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 21:03:56 -0600 (MDT)
From:      Chad David <davidc@acns.ab.ca>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/29074: banner seg faults on Ctrl-D
Message-ID:  <200107190303.f6J33uY71742@colnta.acns.ab.ca>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107190303.f6J33uY71742>