public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* malloc bug?
@ 1997-09-11 11:43 Tim Newsham
  0 siblings, 0 replies; only message in thread
From: Tim Newsham @ 1997-09-11 11:43 UTC (permalink / raw)
  To: gnu-win32

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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-11 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-11 11:43 malloc bug? Tim Newsham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).