Added upstream patches for CVE-2013-4244 (#996468)
This commit is contained in:
parent
9db3acd0d0
commit
6fc618af42
15
libtiff-CVE-2013-4244.patch
Normal file
15
libtiff-CVE-2013-4244.patch
Normal file
@ -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;
|
@ -1,7 +1,7 @@
|
||||
Summary: Library of functions for manipulating TIFF format image files
|
||||
Name: libtiff
|
||||
Version: 4.0.3
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
|
||||
License: libtiff
|
||||
Group: System Environment/Libraries
|
||||
@ -19,6 +19,7 @@ Patch6: libtiff-CVE-2013-1961.patch
|
||||
Patch7: libtiff-manpage-update.patch
|
||||
Patch8: libtiff-CVE-2013-4231.patch
|
||||
Patch9: libtiff-CVE-2013-4232.patch
|
||||
Patch10: libtiff-CVE-2013-4244.patch
|
||||
|
||||
BuildRequires: zlib-devel libjpeg-devel jbigkit-devel
|
||||
BuildRequires: libtool automake autoconf pkgconfig
|
||||
@ -79,6 +80,7 @@ image files using the libtiff library.
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
# Use build system's libtool.m4, not the one in the package.
|
||||
rm -f libtool.m4
|
||||
@ -182,6 +184,10 @@ find html -name 'Makefile*' | xargs rm
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 19 2013 Petr Hracek <phracek@redhat.com> 4.0.3-10
|
||||
- Add upstream patches for CVE-2013-4244
|
||||
Resolves: #996468
|
||||
|
||||
* Wed Aug 14 2013 Petr Hracek <phracek@redhat.com> 4.0.3-9
|
||||
- Add upstream patches for CVE-2013-4231 CVE-2013-4232
|
||||
Resolves: #995965 #995975
|
||||
|
Loading…
Reference in New Issue
Block a user