http://d.puremagic.com/issues/show_bug.cgi?id=4885
Summary: Uninitialize Pointers Allowed in @safe code
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from David Simcha <[email protected]> 2010-09-17 18:51:42 PDT ---
The following code compiles even though it allows overwriting arbitrary memory
regions:
void main() @safe {
uint* ptr = void;
*ptr = 42;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------