* [Buildroot] [PATCH 1/1] package/liblo: add upstream patch to fix build error
@ 2023-08-02 18:12 Bernd Kuhls
2023-08-06 12:11 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2023-08-02 18:12 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/c98/c98c21093714542d4c0546a742fdcc48f3f07d04/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
...x-use-after-free-warning-in-server.c.patch | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 package/liblo/0001-Fix-use-after-free-warning-in-server.c.patch
diff --git a/package/liblo/0001-Fix-use-after-free-warning-in-server.c.patch b/package/liblo/0001-Fix-use-after-free-warning-in-server.c.patch
new file mode 100644
index 0000000000..be815a0a61
--- /dev/null
+++ b/package/liblo/0001-Fix-use-after-free-warning-in-server.c.patch
@@ -0,0 +1,29 @@
+From 8187a8456c14eeb3af08c86ffa1228823c9ef1c5 Mon Sep 17 00:00:00 2001
+From: Guido Aulisi <guido.aulisi@gmail.com>
+Date: Sun, 25 Jun 2023 15:58:30 +0200
+Subject: [PATCH] Fix use-after-free warning in server.c
+
+That assignment is not necessary before returning
+
+Upstream: https://sourceforge.net/p/liblo/git/ci/8187a8456c14eeb3af08c86ffa1228823c9ef1c5/
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/server.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/server.c b/src/server.c
+index ba02d8e..35c9ba5 100644
+--- a/src/server.c
++++ b/src/server.c
+@@ -2289,7 +2289,6 @@ int lo_server_del_lo_method(lo_server s, lo_method m)
+ free((void *) it->path);
+ free((void *) it->typespec);
+ free(it);
+- it = prev;
+ return 0;
+ }
+ prev = it;
+--
+2.39.2
+
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/liblo: add upstream patch to fix build error
2023-08-02 18:12 [Buildroot] [PATCH 1/1] package/liblo: add upstream patch to fix build error Bernd Kuhls
@ 2023-08-06 12:11 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-06 12:11 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
Hello Bernd,
On Wed, 2 Aug 2023 20:12:15 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Fixes:
> http://autobuild.buildroot.net/results/c98/c98c21093714542d4c0546a742fdcc48f3f07d04/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> ...x-use-after-free-warning-in-server.c.patch | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 package/liblo/0001-Fix-use-after-free-warning-in-server.c.patch
You forgot to explain in the commit log when this build error started
occurring and for what reason, so I updated the commit log with that
information: it started to fail building since the merge of GCC 13.x.
Applied with this change.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-06 12:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02 18:12 [Buildroot] [PATCH 1/1] package/liblo: add upstream patch to fix build error Bernd Kuhls
2023-08-06 12:11 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox