Re: NULL pointer dereference in tai64nlocal

Emilio Perea <[email protected]> Thu, 12 Sep 2013 12:09:53 -0700
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Wed, Sep 11, 2013 at 05:41:19PM -0600, Andy Bradford wrote:
> Thus said [email protected] on Tue, 10 Sep 2013 18:56:58 +1000:
> 
> > # echo @ | tai64nlocal
> > Segmentation fault
> 
> Seems this is a problem that only happens on Linux:
> 
> OpenBSD:
> $ echo @ | tai64nlocal
> 1969-12-31 16:59:50.000000000

Actually, the problem also hapens in OpenBSD -current:

*----------------------------------------------------------------------*
hermes:~
{1} % echo @ | tai64nlocal
1969-12-31 15:59:50.000000000
hermes:~
{2} % uname -a
OpenBSD hermes.walkereng.com 5.4 GENERIC#37 i386
hermes:~
{3} %

charon:~
{1} % echo @ | tai64nlocal
Segmentation fault (core dumped)
charon:~
{2} % uname -a
OpenBSD charon.walkereng.com 5.4 GENERIC#50 i386
charon:~
{3} %
*----------------------------------------------------------------------*

Same thing happens on amd64 as on i386.