x86_64-w64-mingw32-gcc -m64 -o build/threading.o -g -O2 -Werror -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DF2C_AUTODETECTION -DCBLAS_DIVERGENCE_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -c threading.c
threading.c: In function 'lbt_register_thread_interface':
threading.c:44:5: error: 'strcpy' writing one too many bytes into a region of a size that depends on 'strlen' [-Werror=stringop-overflow=]
44 | strcpy(getter_names[idx], getter);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
threading.c:43:34: note: destination object of size [0, 9223372036854775805] allocated by 'malloc'
43 | getter_names[idx] = (char *) malloc(strlen(getter));
| ^~~~~~~~~~~~~~~~~~~~~~
threading.c:46:5: error: 'strcpy' writing one too many bytes into a region of a size that depends on 'strlen' [-Werror=stringop-overflow=]
46 | strcpy(setter_names[idx], setter);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
threading.c:45:34: note: destination object of size [0, 9223372036854775805] allocated by 'malloc'
45 | setter_names[idx] = (char *) malloc(strlen(setter));
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Error on x86_64-w64-mingw32-gcc 12.1.0
gcc version: