This is the mail archive of the gcc-patches@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]

Re: gcc stack-smashing protector (for gcc-ss-20001101)


Hiroaki Etoh <etoh@trl.ibm.co.jp> writes:

> This patch introduces -fstack-protector option, which is a stack-smashing 
> protection mechanism to the latest snapshot (gcc-ss-20001101).
> This patch and new files (protector.h and protector.c) are bootstraped
> and tested on i686-pc-linux-gnu and powerpc-ibm-aix4.4.0.

This seems to be a large and complex patch for a feature of limited
usefulness which is already implemented by gcc in a more general form
(using the full bounds-checking implementation).

Could you describe in more detail how this was designed, in particular
what alternatives were considered?

It might also be helpful if you could submit a patch that just
implements the basic canary-word part of the patch, so that we can get
an idea of how much of the changes are basic features and how much are
additional refinement.

-- 
- Geoffrey Keating <geoffk@geoffk.org>

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