Summary: Limit static object sizes
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrei Alexandrescu <> 2010-11-05 
17:38:13 PDT ---
Objects of very large size can corrupt memory when used via null pointers:

struct S {
    char raw[100_000];

S * s = null;

To avoid this, static object sizes should be limited to a value that guarantees
hardware memory protection (e.g. 64KB).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to