You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In function ‘strncpy’,
inlined from ‘ini_parse_stream’ at /myMPD/dist/src/inih/ini.c:77:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output may be truncated copying 49 bytes from a string of length 199 [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I am compiling with -Wall -Werror
The text was updated successfully, but these errors were encountered:
Thanks for the report @jcorporation. However, I'm using the correct size here, so I think this is a false positive and not a bug in inih. What version of gcc is this? This SO answer seems to indicate it's a false positive / bug in GCC 9.
I am compiling with -Wall -Werror
The text was updated successfully, but these errors were encountered: