Thread (4 messages) flat view 4 messages, 3 authors, 2023-08-28

Re: clang: net: qed_main.c:1227:3: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 18 [-Werror,-Wfortify-source]

From: Naresh Kamboju <hidden>
Date: 2023-08-28 17:31:07
Also in: llvm, stable

On Mon, 28 Aug 2023 at 20:22, Greg Kroah-Hartman
[off-list ref] wrote:
On Mon, Aug 28, 2023 at 05:57:38PM +0530, Naresh Kamboju wrote:
quoted
[My two cents]

stable-rc linux-6.1.y and linux-6.4.y x86 clang-nightly builds fail with
following warnings / errors.

Build errors:
--------------
drivers/net/ethernet/qlogic/qed/qed_main.c:1227:3: error: 'snprintf'
will always be truncated; specified size is 16, but format string
expands to at least 18 [-Werror,-Wfortify-source]
 1227 |                 snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x",
      |                 ^
1 error generated.

Reported-by: Linux Kernel Functional Testing <redacted>
Is this also an issue in 6.5?
I see it on 6.5, Linux next-20230828 tag, stable 6.4 and 6.1.

- Naresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help