delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/11/15:18:00

From: newsham AT aloha DOT net (Tim Newsham)
Subject: malloc bug?
11 Sep 1997 15:18:00 -0700 :
Message-ID: <199709111843.IAA21012cygnus.gnu-win32@haleakala.aloha.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019