summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2010-07-18 21:18:15 +0000
committerSteve Arnold <nerdboy@gentoo.org>2010-07-18 21:18:15 +0000
commit3883a76e756acfb63654f97788b84f132269008d (patch)
tree9f613dcc44373cab40fbba6e2fd6f914476b4c51 /media-libs/tiff/files
parentFix from upstream for hang with symlinks/-k #327641. Fix from upstream for s... (diff)
downloadhistorical-3883a76e756acfb63654f97788b84f132269008d.tar.gz
historical-3883a76e756acfb63654f97788b84f132269008d.tar.bz2
historical-3883a76e756acfb63654f97788b84f132269008d.zip
Updated oldest version for CVE-2010-1411.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'media-libs/tiff/files')
-rw-r--r--media-libs/tiff/files/tiff-3.9.2-CVE-2010-1411.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/media-libs/tiff/files/tiff-3.9.2-CVE-2010-1411.patch b/media-libs/tiff/files/tiff-3.9.2-CVE-2010-1411.patch
new file mode 100644
index 000000000000..7de456578c76
--- /dev/null
+++ b/media-libs/tiff/files/tiff-3.9.2-CVE-2010-1411.patch
@@ -0,0 +1,35 @@
+--- libtiff/tif_fax3.c.orig 2010-05-13 19:36:08.995479161 +0200
++++ libtiff/tif_fax3.c 2010-05-13 19:48:04.215467428 +0200
+@@ -42,6 +42,7 @@
+ #define G3CODES
+ #include "t4.h"
+ #include <stdio.h>
++#include <stdint.h>
+
+ /*
+ * Compression+decompression state blocks are
+@@ -493,9 +494,21 @@
+ td->td_compression == COMPRESSION_CCITTFAX4
+ );
+
+- nruns = needsRefLine ? 2*TIFFroundup(rowpixels,32) : rowpixels;
++ uint64_t val64 = rowpixels;
++ if (needsRefLine)
++ {
++ val64 = 2*TIFFroundup(rowpixels,32);
++ if (val64 > 0xffffffff)
++ return (0);
++ }
++ nruns = (val64 &0xffffffff);
+ nruns += 3;
+- dsp->runs = (uint32*) _TIFFCheckMalloc(tif, 2*nruns, sizeof (uint32),
++
++ val64 = 2*nruns+3;
++ if (val64 > 0xffffffff)
++ return (0);
++
++ dsp->runs = (uint32*) _TIFFCheckMalloc(tif, (val64 & 0xffffffff), sizeof (uint32),
+ "for Group 3/4 run arrays");
+ if (dsp->runs == NULL)
+ return (0);
+