Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RESEND v3 0/1] support: kconfig: Fix compiler warnings
@ 2026-05-12 10:56 Kanak Shilledar
  2026-05-12 10:56 ` [Buildroot] [RESEND v3 1/1] " Kanak Shilledar
  0 siblings, 1 reply; 4+ messages in thread
From: Kanak Shilledar @ 2026-05-12 10:56 UTC (permalink / raw)
  To: buildroot; +Cc: Kanak Shilledar

Hi,
While building the `master` branch on Ubuntu 24.04.4 I am getting the
warning of `-Wformat-overflow=`.

```
./util.c: In function ‘file_write_dep’:
./util.c:86:26: warning: ‘%s’ directive writing 10 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
   86 |         sprintf(buf2, "%s%s", dir, name);
      |                          ^~
./util.c:86:9: note: ‘sprintf’ output 11 or more bytes (assuming 4107) into a destination of size 4097
   86 |         sprintf(buf2, "%s%s", dir, name);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

I tried this on the release `2026.02.x` and this warning exists there as
well. I am running GCC version `(Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0`

Thanks and Regards,
Kanak Shilledar

Kanak Shilledar (1):
  support: kconfig: Fix compiler warnings

 ...upport-kconfig-Fix-compiler-warnings.patch | 45 +++++++++++++++++++
 support/kconfig/patches/series                |  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 support/kconfig/patches/24-support-kconfig-Fix-compiler-warnings.patch

-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-12 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 10:56 [Buildroot] [RESEND v3 0/1] support: kconfig: Fix compiler warnings Kanak Shilledar
2026-05-12 10:56 ` [Buildroot] [RESEND v3 1/1] " Kanak Shilledar
2026-05-12 13:36   ` Edgar Bonet via buildroot
2026-05-12 21:16     ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox