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

[Bug c/81117] Improve buffer overflow checking in strncpy


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81117

--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 16:58:44 2017
New Revision: 252431

URL: https://gcc.gnu.org/viewcvs?rev=252431&root=gcc&view=rev
Log:
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.

Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/c-family/ChangeLog
    branches/range-gen2/gcc/c-family/c-attribs.c
    branches/range-gen2/gcc/doc/extend.texi
    branches/range-gen2/gcc/testsuite/ChangeLog

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