> The patch changes stdio.h so that even in C11 gets() is defined, but
> adds __attribute__ ((error("gets() is dangerous. Don't use it."))) to
> both gets() in stdio.h and bits/stdio2.h.

__gets_chk() in bits/stdio2.h


> The advantage from my point of view is that there is no "not defined"
> error in the various packages trying to throw a usage warning but the
> build errors out when gets() is actually used, with or without FORTIFY.

And with any C standard.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to