Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 19 Apr 2014 18:16:28 -0400
From: John Mudd <johnbmudd@...il.com>
To: musl <musl@...ts.openwall.com>
Subject: asctime(0) Segmentation fault

I found this by running "make test" on musl build of Python.

$ cat test_asctime.c
#include <time.h>
#include <stdio.h>

int main()
{
    char *c = asctime(0);
    printf("After asctime\n");
    if (c) printf("c=%s", c);
}
$ gcc test_asctime.c   -o test_asctime
$ test_asctime
After asctime
$ musl-gcc test_asctime.c   -o test_asctime
$ test_asctime
Segmentation fault (core dumped)
$

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.