NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/37657: cal does not check validity of command line input for option -A and -B



>Number:         37657
>Category:       bin
>Synopsis:       cal does not check validity of command line input for option 
>-A and -B
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 01 16:25:00 +0000 2008
>Originator:     Jeffrey E. Bedard
>Release:        -current
>Organization:
University of Rhode Island
>Environment:
NetBSD mobile 4.99.44 NetBSD 4.99.44 (GENERIC) #0: Sun Dec 23 13:08:31 PST 2007 
 
builds@wb37:/home/builds/ab/HEAD/i386/200712230002Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
Passing invalid option data causes a memory fault.  
This occurs with the -A and -B options, when passed
a negative value.  Though the options are invalid,
the invalidity should be sanitized by means of either taking
the absolute value of the passed value, or by exiting
more gracefully with an error message.  
>How-To-Repeat:
$ cal -A -1
Memory fault (core dumped) 
$ cal -B -1
Memory fault (core dumped) 
$ 
>Fix:




Home | Main Index | Thread Index | Old Index