[Issue 5176] Limit static object sizes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 10 12:03:57 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #26 from Walter Bright <bugzilla at digitalmars.com> 2013-01-10 12:03:50 PST ---
(In reply to comment #22)
> How large are the guard pages on each OS?
Usually 4k. But the function prologs, when creating a stack frame larger than
4k, will do "probes" for each 4k page. So, no, you can't corrupt memory with an
overflow.
> We should either restrict object size to a reasonable maximum, or insert
> runtime checks at least in @safe mode when accessing fields through pointers
> that may be null.
There's a separate set of guard pages at address 0, to cause a seg fault if 1,
2, 3, etc. is accessed. I don't know how big they are.
--
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