summaryrefslogtreecommitdiffstats
path: root/abs/core/libtiff/libtiff-CVE-2013-4244.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-12-04 19:05:33 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-12-04 19:05:33 (GMT)
commit4d48241fa4faab8ec716b4b995ba8a054859f729 (patch)
tree3e0c6a7a6099f2a5fef871a7ed440afb1a28d9b4 /abs/core/libtiff/libtiff-CVE-2013-4244.patch
parent6a0a936185ae1a13338927589cde5f2c91f408d0 (diff)
downloadlinhes_pkgbuild-4d48241fa4faab8ec716b4b995ba8a054859f729.zip
linhes_pkgbuild-4d48241fa4faab8ec716b4b995ba8a054859f729.tar.gz
linhes_pkgbuild-4d48241fa4faab8ec716b4b995ba8a054859f729.tar.bz2
libtiff: update to 4.0.3
Diffstat (limited to 'abs/core/libtiff/libtiff-CVE-2013-4244.patch')
-rw-r--r--abs/core/libtiff/libtiff-CVE-2013-4244.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core/libtiff/libtiff-CVE-2013-4244.patch b/abs/core/libtiff/libtiff-CVE-2013-4244.patch
new file mode 100644
index 0000000..792e076
--- /dev/null
+++ b/abs/core/libtiff/libtiff-CVE-2013-4244.patch
@@ -0,0 +1,15 @@
+diff --git a/tools/gif2tiff.c b/tools/gif2tiff.c
+index 375b152..2731273 100644
+--- a/tools/gif2tiff.c
++++ b/tools/gif2tiff.c
+@@ -402,6 +402,10 @@ process(register int code, unsigned char** fill)
+ }
+
+ if (oldcode == -1) {
++ if (code >= clear) {
++ fprintf(stderr, "bad input: code=%d is larger than clear=%d\n",code, clear);
++ return 0;
++ }
+ *(*fill)++ = suffix[code];
+ firstchar = oldcode = code;
+ return 1;