summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2005-04-18 16:54:00 +0000
committerdrochner <drochner@pkgsrc.org>2005-04-18 16:54:00 +0000
commit19c00732d1fe072b4a0bf6e27ddb6bc7bf864325 (patch)
treed4d4c852870411ccfdbf4412f0b1fe33b7837998 /x11/kdelibs3/patches
parenta40d5a8502d598b9f5aec426ef2cca21986c8004 (diff)
downloadpkgsrc-19c00732d1fe072b4a0bf6e27ddb6bc7bf864325.tar.gz
Add an explicite check to a QImage construction. There is an inplicite
check, but it is not obvious whether it will catch all cases, in particular with corrupted TIFF files. Was the last occurence of an not-explicitely-checked QImage construction, so things are consistent now.
Diffstat (limited to 'x11/kdelibs3/patches')
-rw-r--r--x11/kdelibs3/patches/patch-dh13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/kdelibs3/patches/patch-dh b/x11/kdelibs3/patches/patch-dh
new file mode 100644
index 00000000000..60031b2b2de
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-dh
@@ -0,0 +1,13 @@
+$NetBSD: patch-dh,v 1.1 2005/04/18 16:54:00 drochner Exp $
+
+--- kimgio/g3r.cpp.orig 2005-04-16 23:06:10.000000000 +0200
++++ kimgio/g3r.cpp
+@@ -28,7 +28,7 @@ KDE_EXPORT void kimgio_g3_read( QImageIO
+
+ QImage image(width, height, 1, 0, QImage::BigEndian);
+
+- if (scanlength != image.bytesPerLine())
++ if (image.isNull() || scanlength != image.bytesPerLine())
+ {
+ TIFFClose(tiff);
+ return;