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]
Other format: [Raw text]

Re: [PATCH] Compile time buffer overflow checks for strncat


Jakub Jelinek <jakub@redhat.com> writes:

> 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
> 	needed.

This is OK.

> 	* builtins.c (expand_builtin, maybe_emit_chk_warning): Handle
> 	BUILT_IN_STRNCAT_CHK.

Don't you need to change fold_builtin_1 too?

> 	* gcc.dg/builtin-strncat-chk-1.c: New test.

This part is fine.


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