summaryrefslogtreecommitdiffstats
path: root/package/libgtk2/old_patches/002_xpmico.patch
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-06 18:15:42 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-06 18:15:42 +0000
commit5b5cf3bf3630352e8c24f9185d7795ec0f503cb4 (patch)
treedf423d8c652725990197e44b8266b6f0b10576f6 /package/libgtk2/old_patches/002_xpmico.patch
parent84c82f9fd5bb21ae9df4774adce2a7660c145003 (diff)
downloadbuildroot-novena-5b5cf3bf3630352e8c24f9185d7795ec0f503cb4.tar.gz
buildroot-novena-5b5cf3bf3630352e8c24f9185d7795ec0f503cb4.zip
updated libgtk2
Diffstat (limited to 'package/libgtk2/old_patches/002_xpmico.patch')
-rw-r--r--package/libgtk2/old_patches/002_xpmico.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/libgtk2/old_patches/002_xpmico.patch b/package/libgtk2/old_patches/002_xpmico.patch
new file mode 100644
index 000000000..21500db65
--- /dev/null
+++ b/package/libgtk2/old_patches/002_xpmico.patch
@@ -0,0 +1,18 @@
+diff -Nur gtk+-2.4.9.orig/gdk-pixbuf/io-ico.c gtk+-2.4.9/gdk-pixbuf/io-ico.c
+--- gtk+-2.4.9.orig/gdk-pixbuf/io-ico.c 2004-08-25 18:52:18.000000000 +0200
++++ gtk+-2.4.9/gdk-pixbuf/io-ico.c 2004-09-15 00:40:17.000000000 +0200
+@@ -210,6 +210,14 @@
+
+ State->HeaderSize = 6 + IconCount*16;
+
++ if (State->HeaderSize < 0) {
++ g_set_error (error,
++ GDK_PIXBUF_ERROR,
++ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
++ _("Invalid header in icon"));
++ return;
++ }
++
+ if (State->HeaderSize>State->BytesInHeaderBuf) {
+ guchar *tmp=g_try_realloc(State->HeaderBuf,State->HeaderSize);
+ if (!tmp) {