Source: fcoe-utils
Severity: important

With the most recent upload, the auto-builders detected a build failure
on 32-bit architectures that appears to be a regression between gcc-12
and gcc-13.  I'm starting the bug report here but will reassign or merge
and add an affects once I am able to pin down the root cause or a case
that reproduces it outside of fcoe-utils.

Builds on i386, armhf, and armel fail with:

> fcoemon.c:1347:9: error: ‘__builtin_strncpy’ output may be truncated copying 
> between 0 and 15 bytes from a string of length 15 
> [-Werror=stringop-truncation]
>  1347 |         strncpy(msg.ifname, ff->ifname, iflen);
>       |         ^ 
> cc1: all warnings being treated as errors

The same build succeeds on 64-bit architectures, and on 32-bit
architectures if you set CC=gcc-12.

The only current bug against gcc-13 that looks plausibly related is
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050589, but it's not
clear to me that they are the same.

Reply via email to