I’m noticing that when I try to demonstrate the strncpy bug that it simply trunicates the string down to the max size. I didn’t see any sign of issues or unusual behavior. Is it possible this bug is fixed now?
bruda@cyborg ~/C (git)-[master] % gcc --version
gcc (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bruda@cyborg ~/C (git)-[master] % ldd --version :(
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.