[Issue 8301] New: Exception not caught when a big array is allocated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 26 07:06:30 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8301

           Summary: Exception not caught when a big array is allocated
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mp81ss at rambler.ru


--- Comment #0 from Michele Pes <mp81ss at rambler.ru> 2012-06-26 07:08:59 PDT ---
import std.stdio;

void main()
{
    try {
        byte[] big_buf = new byte[4294967295];
        writeln("Allocated");
    }
    catch(Exception) {
        writeln("never displayed");
    }
}


The string "never displayed" is never displayed and the client crushes with
object.Error: Access Violation.

Same if instead of (2^32 -1) you put -1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list