NetBSD-Bugs archive

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

bin/48448: awk dumps core in strftime



>Number:         48448
>Category:       bin
>Synopsis:       awk dumps core in strftime
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 15 06:30:00 +0000 2013
>Originator:     David A. Holland
>Release:        NetBSD 6.99.23 (20130911)
>Organization:
>Environment:
System: NetBSD macaran 6.99.23 NetBSD 6.99.23 (MACARAN) #19: Wed Sep 11 
20:37:54 EDT 2013 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:

macaran% awk < /dev/null 'END { print strftime("%c", 18446744073709551615); }'
Segmentation fault

>How-To-Repeat:

>Fix:

Check for null when calling localtime() would be my guess.



Home | Main Index | Thread Index | Old Index