Skip to content

artec backend produces compiler warnings on Debian 10

The artec backend generates the following compiler warnings:

artec.c: In function ‘attach’:
artec.c:2002:7: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
       strncpy (result + 8, "ULTIMA", 6);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
artec.c:2003:7: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
       strncpy (result + 16, "AT3             ", 16);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
artec.c:2016:7: warning: ‘strncpy’ output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation]
       strncpy (result + 8, "ULTIMA", 6);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
artec.c:2017:7: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
       strncpy (result + 16, "AM12S           ", 16);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The warnings should be suppressed with appropriate mitigations.

Referencing issue #120 (closed)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information