NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/44220: Huge value crashes ``date -r''
>Number: 44220
>Category: bin
>Synopsis: Huge value crashes ``date -r''
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 11 16:20:06 +0000 2010
>Originator: NAKAJIMA Yoshihiro
>Release: NetBSD-current/20101210
>Organization:
>Environment:
System: NetBSD asura 5.99.41 NetBSD 5.99.41 (ASURA) #4: Fri Dec 10 22:46:15 JST
2010 nakayosh@asura:/usr/src/sys/arch/amd64/compile/ASURA amd64
Architecture: x86_64
Machine: amd64
>Description:
Huge value crashes ``date -r'', because 64bit time_t makes
tm_year overflow.
>How-To-Repeat:
: % date -r 0x00f0c29d868c0000
: Segmentation fault (core dumped)
>Fix:
Check the return value of localtime().
In addtion, an error hander after strtoll() is expected.
Home |
Main Index |
Thread Index |
Old Index