Skip to contentSkip to conversation

matchbox-panel-0.9.3: fix uninitialised variable causing SIGBUS

PATCH In review Graham Gower 3 participants 3 messages Oct 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 matchbox-panel-0.9.3: fix uninitialised variable causing SIGBUS

As reported here:
http://lists.o-hand.com/matchbox/0289.html

I've not experienced the bug for over a month since applying this change.

---
.../matchbox-panel-uninitialised-crash.patch | 10 ++++++++++
recipes/matchbox-panel/matchbox-panel_0.9.3.bb | 5 +++--

2 files changed, 13 insertions(+), 2 deletions(-)

create mode 100644 recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised-crash.patch

recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised-crash.patch new file +8 -0
new file mode 100644
index 0000000..6177501
@@ -0,0 +1,10 @@
+--- matchbox-panel-0.9.3/src/panel_app.c.orig
++++ matchbox-panel-0.9.3/src/panel_app.c
+@@ -249,6 +249,7 @@
+ +   papp = NEW(MBPanelApp);
+   ++  papp->name   = NULL;
+   papp->next   = NULL;
+   papp->win    = win;
+   papp->panel  = panel;
recipes/matchbox-panel/matchbox-panel_0.9.3.bb +0 -0
index 5559122..3d50f5f 100644
@@ -1,5 +1,6 @@

require matchbox-panel.inc
-PR ="r4"
+PR ="r5"

SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
	   file://mb-applet-battery-repaint-093.patch;patch=1 \
-	   file://mb-applet-system-monitor-crash.patch;patch=1"
+	   file://mb-applet-system-monitor-crash.patch;patch=1 \
+	   file://matchbox-panel-uninitialised-crash.patch;patch=1"
Signature · 1 line
1.6.0.3
#1 lore raw
Quoted 7 lines · On Friday 09 October 2009 05:16:41 Graham Gower wrote:

As reported here:
http://lists.o-hand.com/matchbox/0289.html

I've not experienced the bug for over a month since applying this change.

Quoted 44 lines
---
 .../matchbox-panel-uninitialised-crash.patch       |   10 ++++++++++
 recipes/matchbox-panel/matchbox-panel_0.9.3.bb     |    5 +++--
 2 files changed, 13 insertions(+), 2 deletions(-)
 create mode 100644

recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised-c
rash.patch

diff --git
a/recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised

(quoted diff) +0 -2
-crash.patch
 b/recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised
-crash.patch new file mode 100644

index 0000000..6177501
--- /dev/null
+++
b/recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised

recipes/matchbox-panel/matchbox-panel-0.9.3/matchbox-panel-uninitialised-crash.patch new file +10 -1
-crash.patch @@ -0,0 +1,10 @@
+--- matchbox-panel-0.9.3/src/panel_app.c.orig
++++ matchbox-panel-0.9.3/src/panel_app.c
+@@ -249,6 +249,7 @@
+
+   papp = NEW(MBPanelApp);
+
++  papp->name   = NULL;
+   papp->next   = NULL;
+   papp->win    = win;
+   papp->panel  = panel;
(quoted diff) +0 -0
 b/recipes/matchbox-panel/matchbox-panel_0.9.3.bb index 5559122..3d50f5f
 100644
recipes/matchbox-panel/matchbox-panel_0.9.3.bb +3 -2
@@ -1,5 +1,6 @@
 require matchbox-panel.inc
-PR ="r4"
+PR ="r5"
 SRC_URI =
 "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz
 \ file://mb-applet-battery-repaint-093.patch;patch=1 \
-	   file://mb-applet-system-monitor-crash.patch;patch=1"
+	   file://mb-applet-system-monitor-crash.patch;patch=1 \
+	   file://matchbox-panel-uninitialised-crash.patch;patch=1"