[Issue 5176] Limit static object sizes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 20 05:34:05 PDT 2013


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



--- Comment #33 from Andrei Alexandrescu <andrei at erdani.com> 2013-05-20 05:34:03 PDT ---
(In reply to comment #32)
> Buzz* b;
> 
> auto deref1 = &(b.qux[7]); // take address below 4kb.
> deref1.bar[300] = 0; // offset is bellow 4kb, but the address is above 4kb.

This is a red herring. The null check is inserted not if the address of the
field falls above the limit, but if the address of the field PLUS the size of
the field does.

-- 
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