summaryrefslogtreecommitdiffstats
path: root/mozilla-709732-gfx-icc-profile-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mozilla-709732-gfx-icc-profile-fix.patch')
-rw-r--r--mozilla-709732-gfx-icc-profile-fix.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/mozilla-709732-gfx-icc-profile-fix.patch b/mozilla-709732-gfx-icc-profile-fix.patch
new file mode 100644
index 0000000..7e268d0
--- /dev/null
+++ b/mozilla-709732-gfx-icc-profile-fix.patch
@@ -0,0 +1,21 @@
+diff -r dd29535bac5f gfx/thebes/gfxPlatformGtk.cpp
+--- a/gfx/thebes/gfxPlatformGtk.cpp Sat May 05 20:22:53 2012 -0700
++++ b/gfx/thebes/gfxPlatformGtk.cpp Wed May 09 11:42:21 2012 +0200
+@@ -538,16 +538,10 @@
+ if (iccAtom) {
+ // read once to get size, once for the data
+ if (Success == XGetWindowProperty(dpy, root, iccAtom,
+- 0, 0 /* length */,
++ 0, INT_MAX /* length */,
+ False, AnyPropertyType,
+ &retAtom, &retFormat, &retLength,
+ &retAfter, &retProperty)) {
+- XGetWindowProperty(dpy, root, iccAtom,
+- 0, retLength,
+- False, AnyPropertyType,
+- &retAtom, &retFormat, &retLength,
+- &retAfter, &retProperty);
+-
+ qcms_profile* profile = NULL;
+
+ if (retLength > 0)