[Buildroot] [PATCH v1 1/3] package/liboping: add patch to fix gcc-8/gcc-9 snprintf truncation compile failure
thomas.petazzoni at bootlin.com
Sat Mar 7 22:08:52 UTC 2020
On Fri, 6 Mar 2020 21:10:20 +0100
Peter Seiderer <ps.report at gmx.net> wrote:
> Add patch from upstream merge request () to fix fix gcc-8/gcc-9 snprintf
> truncation related compile failure (-Wall/-Werror), reported on the
> mailing list ().
> liboping.c: In function ‘ping_set_ttl’:
> liboping.c:207:9: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 242 [-Werror=format-truncation=]
> 207 | "%s: %s", function, message);
> | ^~
>  https://github.com/octo/liboping/pull/50
>  http://lists.busybox.net/pipermail/buildroot/2020-March/275861.html
> Reported-by: Maik Brenke <Maik.Brenke at continental-corporation.com>
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
This build issue has happened once in the autobuilders:
But liboping has been built successfully zillions of times:
Why is it that we don't see this build failure ?
Also, this build failure was reported at
https://github.com/octo/liboping/issues/38, and the upstream developer
says it has been fixed by
which is different from your patch.
Could you clarify this ?
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
More information about the buildroot