|
|||||||||||
|
Re: vulndev-1 and a suggestion about the ensuing discussion
From: xenophi1e <oliver.lavery(at)sympatico.ca>
Date: Fri May 16 2003 - 12:46:57 EDT ('binary' encoding is not supported, stored as-is) In-Reply-To: <75C025AE395F374B81F6416B1D4BDEFB01009380@mtv-corpmail.microfocus.com> >AS/400, where C programs in essence run under a virtual machine, and most
>With help from mprotect or equivalent these areas could further be
Storing things differently would be smart. Would guard pages actually be useful, tho'? mprotect() and VirtualProtectEx() type functions only work with the granularity of memory pages. So to effectively prevent this exploit all your malloc()s would have to allocate at least an entire page plus a second guard page which wouldn't need any physical storage. That's not very practical; at this point there wouldn't really be any need to use an allocator at all since all allocated objects that were protected would already consume an entire page. Yeah, there would definitely be quite a performance penalty for such a scheme...
Cheers,
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:39 EDT |
||||||||||
|
|||||||||||