[Issue 5176] New: Limit static object sizes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 17:39:12 PDT 2010
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: nobody at puremagic.com
ReportedBy: andrei at metalanguage.com
--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list