PR c/81117 - Improve buffer overflow checking in strncpy - part 2
authorMartin Sebor <msebor@redhat.com>
Mon, 14 Aug 2017 20:21:44 +0000 (20:21 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 14 Aug 2017 20:21:44 +0000 (14:21 -0600)
commit27be025d191e308b706cdd7f1f90f0fe490f9a2c
treea055a2735dded9ec61ad2030b010e8a12e6dbd78
parentda67acb9b37cf139da014f5bc11e2dbf25a7d597
PR c/81117 - Improve buffer overflow checking in strncpy - part 2

gcc/ChangeLog:

PR c/81117
* doc/extend.texi (attribute nonstring): Document new attribute.

gcc/c-family/ChangeLog:

PR c/81117
* c-attribs.c (c_common_attribute_table): Add nonstring entry.
(handle_nonstring_attribute): New function.

gcc/testsuite/ChangeLog:

PR c/81117
* c-c++-common/attr-nonstring-1.c: New test.

From-SVN: r251100
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog