There is some new strncpy() checking in gcc 8.1 that is enabled when configuring with --picky-developer and compiling with -O3. For example: ../common/system_socket.c: In function ‘parse_ip_mask’: ../common/system_socket.c:229:2: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(s, str, len+1); ^~~~~~~~~~~~~~~~~~~~~~ ../common/system_socket.c:223:8: note: length computed here len = strlen(str); ^~~~~~~~~~~
Created attachment 14366 [details] Patches for 4.9.x
Hi Karolin, This is ready for 4.9. Thanks...
Pushed to autobuild-v4-9-test.
(In reply to Karolin Seeger from comment #3) Pushed to v4-9-test. Closing out bug report. Thanks!