Date: Sat, 12 Jan 2002 15:40:56 +0100 (CET) From: Kenny Jansson <kenson@sentor.se> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/33812: crontab segfaults when new entry contains a 0 i the monthfield Message-ID: <20020112144056.6D3C635492B@deliverator.sentor.se>
next in thread | raw e-mail | index | archive | help
>Number: 33812
>Category: bin
>Synopsis: crontab segfaults when new entry contains a 0 i the monthfield
>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: Sat Jan 12 06:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Kenny Jansson
>Release: FreeBSD 4.3-STABLE i386
>Organization:
Sentor AB
>Environment:
System: FreeBSD xx.xx.xx 4.3-STABLE FreeBSD 4.3-STABLE #1: Tue Jul 17 11:03:52 CEST 2001
>Description:
crontab segfaults when you try to add a new entry containing a '0' in the
monthfield. Here's a stacktrace from the dead process:
#0 0x804b9e9 in env_free ()
#1 0x804a8c4 in free_entry ()
#2 0x804b537 in load_entry ()
#3 0x804a6ca in replace_cmd () at /usr/src/usr.sbin/cron/crontab/crontab.c:551
#4 0x804a349 in edit_cmd () at /usr/src/usr.sbin/cron/crontab/crontab.c:454
#5 0x80497ad in main (argc=2, argv=0xbfbff7d8)
at /usr/src/usr.sbin/cron/crontab/crontab.c:117
#6 0x804960d in _start ()
>How-To-Repeat:
crontab -e
and add a line like so:
1 1 1 0 1 touch /tmp/blah
crontab will segfault and the new entry will not be added to the users crontab
>Fix:
>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?20020112144056.6D3C635492B>
