glib bug



  This program, however strange it may be, crashes due to some bug in
GLib. I'm using GLib 1.2.8.


#include <glib.h>

int main(void)
{
    char *str;
    str = g_strdup_printf(" dasd asd asas d %G sd asdas asdas",
                          3.141592654e-233);
    printf("%s\n", str);
    g_free(str);
    return 0;
}


-- 
Gustavo J. A. M. Carneiro
[http://linuxdeec.fe.up.pt/~ee96090]





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]