File: invalid-icon-size-fix

package info (click to toggle)
matchbox-panel 0.9.3%2Bgit20100816-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 976 kB
  • sloc: ansic: 6,332; makefile: 164; sh: 11
file content (14 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix crash with invalid panel app icon size (#337632)
Author: Moray Allan <moray@debian.org>
Last-Update: 2006-04-22
--- a/src/panel_app.c
+++ b/src/panel_app.c
@@ -167,7 +167,7 @@
 				&type, &format, &n_items,
 				&bytes_after, (unsigned char **)&data);
 
-  if (result != Success || data == NULL)
+  if (result != Success || data == NULL || data[0] == 0 || data[1] == 0)
     {
       if (data) XFree (data);
       DBG("%s() failed for %s (XID: %li)\n", __func__, papp->name, papp->win);