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

clyon at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 17 14:16:00 GMT 2017


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

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #18 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Hi,

I'm seeing random results on:
c-c++-common/Wstringop-truncation.c  -Wc++-compat   (test for warnings, line
210)
c-c++-common/Wstringop-truncation.c  -Wc++-compat   (test for warnings, line
211)

on aarch64/arm targets if that matters.

By random, I mean sometimes these two tests pass, sometimes they fail.

May it mean that the patch (r254630) has an undefined behavior code path?


More information about the Gcc-bugs mailing list