This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

malloc bug?



Hi,

    I'm using a "CoolView" cygwin.dll from about a month ago
with slight modifications (in areas unrelated to this problem).
The following program crashes:

    main()
    {
        char *x;

        x = (char *)malloc(1948280173);
        printf("allocated: %x\n", x);
    }

The proper behavior would be a return value of "0" being
printed (assuming you dont have 1948280173 bytes free :)

                                Tim N.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]