[Issue 5176] Limit static object sizes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 20 06:03:12 PDT 2013


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



--- Comment #34 from 9999 <sibaqexozequgaba at tempomail.fr> 2013-05-20 06:03:10 PDT ---
(In reply to comment #33)
> (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.

That's what I meant by saying "The referenced object's last available byte".

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