http://d.puremagic.com/issues/show_bug.cgi?id=5176
Summary: Limit static object sizes
Product: D
Version: unspecified
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrei Alexandrescu <[email protected]> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------