* [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8
@ 2018-12-15 22:00 Fabrice Fontaine
2018-12-16 20:52 ` Thomas Petazzoni
2018-12-17 8:32 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2018-12-15 22:00 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...rc-server.c-fix-stringop-truncation-error.patch | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
diff --git a/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
new file mode 100644
index 0000000000..3f3bf86cc3
--- /dev/null
+++ b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
@@ -0,0 +1,30 @@
+From c1b2fbd8d96d9b668a0b5e3c49c75c13cfe7d4ba Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 15 Dec 2018 21:55:08 +0100
+Subject: [PATCH] src/server.c: fix stringop-truncation error
+
+Fixes:
+ - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/radarsat1/liblo/pull/70]
+---
+ src/server.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/server.c b/src/server.c
+index 6d1a9de..72aecc9 100644
+--- a/src/server.c
++++ b/src/server.c
+@@ -377,7 +377,7 @@ void lo_server_resolve_hostname(lo_server s)
+ gethostname(hostname, sizeof(hostname));
+ he = gethostbyname(hostname);
+ if (he) {
+- strncpy(hostname, he->h_name, sizeof(hostname));
++ strncpy(hostname, he->h_name, sizeof(hostname) - 1);
+ }
+ }
+
+--
+2.14.1
+
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8
2018-12-15 22:00 [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8 Fabrice Fontaine
@ 2018-12-16 20:52 ` Thomas Petazzoni
2018-12-17 8:32 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 20:52 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 15 Dec 2018 23:00:50 +0100, Fabrice Fontaine wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...rc-server.c-fix-stringop-truncation-error.patch | 30 ++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8
2018-12-15 22:00 [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8 Fabrice Fontaine
2018-12-16 20:52 ` Thomas Petazzoni
@ 2018-12-17 8:32 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-12-17 8:32 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fixes:
> - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2018.11.x, thanks.
> ---
> ...rc-server.c-fix-stringop-truncation-error.patch | 30 ++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
> diff --git
> a/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
> b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
> new file mode 100644
> index 0000000000..3f3bf86cc3
> --- /dev/null
> +++ b/package/liblo/0002-src-server.c-fix-stringop-truncation-error.patch
> @@ -0,0 +1,30 @@
> +From c1b2fbd8d96d9b668a0b5e3c49c75c13cfe7d4ba Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 15 Dec 2018 21:55:08 +0100
> +Subject: [PATCH] src/server.c: fix stringop-truncation error
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/62896bd6a1a30facaffd07a7a763831996dc8ea0
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://github.com/radarsat1/liblo/pull/70]
> +---
> + src/server.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/server.c b/src/server.c
> +index 6d1a9de..72aecc9 100644
> +--- a/src/server.c
> ++++ b/src/server.c
> +@@ -377,7 +377,7 @@ void lo_server_resolve_hostname(lo_server s)
> + gethostname(hostname, sizeof(hostname));
> + he = gethostbyname(hostname);
> + if (he) {
> +- strncpy(hostname, he->h_name, sizeof(hostname));
> ++ strncpy(hostname, he->h_name, sizeof(hostname) - 1);
> + }
> + }
> +
> +--
> +2.14.1
> +
> --
> 2.14.1
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-17 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-15 22:00 [Buildroot] [PATCH 1/1] liblo: fix stringop-truncation error with gcc 8 Fabrice Fontaine
2018-12-16 20:52 ` Thomas Petazzoni
2018-12-17 8:32 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox