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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |88443
      Known to fail|                            |7.3.0, 8.2.0, 9.2.0
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot 
gnu.org
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |10.1.0
          Component|tree-optimization           |middle-end
   Target Milestone|---                         |10.0
         Resolution|---                         |FIXED

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Done in GCC 10:

$ gcc -O2 -S -Wall -Wextra pr86349.c
pr86349.c: In function ‘f’:
pr86349.c:5:3: warning: ‘__builtin_strcpy’ writing one too many bytes into a
region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
    5 |   __builtin_strcpy (p, s);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
pr86349.c:4:13: note: at offset 0 to an object allocated by ‘__builtin_malloc’
here
    4 |   char *p = __builtin_malloc (n);
      |             ^~~~~~~~~~~~~~~~~~~~


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
[Bug 88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

Reply via email to