This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: suggestion for projects page: sort frame vars


> This seems related to one of the techniques ProPolice uses, in that
> it places pointers before buffers to keep buffer overruns from
> overwriting pointers in the same stack frame (in addition to the
> protections that detect overrunning the stack frame itself).

Once the infrastructure is in place to rearrange the local frame,
there's lots of things you can do with it.

At one point I found myself adding random small amounts to every fixed
buffer size in a program, to harden it against rootkits.  To bad
random variations in frame size can't be done at runtime.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]