Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2012 17:48:47 GMT
From:      Daniel Tso <dantso@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/170930: calendar(1) core dumps with minor input format deviations
Message-ID:  <201208231748.q7NHmlm2097173@red.freebsd.org>
Resent-Message-ID: <201208231750.q7NHo71u041564@freefall.freebsd.org>

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

>Number:         170930
>Category:       misc
>Synopsis:       calendar(1) core dumps with minor input format deviations
>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:   Thu Aug 23 17:50:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Tso
>Release:        8.3
>Organization:
SUNY Upstate Medical University
>Environment:
FreeBSD tsolab.org 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr  9 21:47:23 UTC 2
012     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Calendar(1) takes as input a file "calendar" in the current directory, of the form:

01/23     Event text

meaning the date, 01 (January), day of month (23rd).

If instead one puts extraneous text in the date field, calendar core dumps, e.g.

01/23/2012 Event text for the year 2012

Previous versions of calendar(1) did not have this behavior (I don't know the exact version of the change, but definitely calendar(1) from FreeBSD 5.1 did not have this problem -- it just ignores text after the day subfield.
>How-To-Repeat:
$ cat > calendar
8/23     hello there
^D
$ calendar
Aug 23  hello there
$ cat > calendar
8/23/2012  hello there core file
^D
$ calendar
Segmentation fault (core dumped)
$

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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