Accepting request 650208 from home:pgajdos

- security update
  * CVE-2018-19210 [bsc#1115717]
    + tiff-CVE-2018-19210.patch

OBS-URL: https://build.opensuse.org/request/show/650208
OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=132
This commit is contained in:
Michael Vetter 2018-11-19 14:15:22 +00:00 committed by Git OBS Bridge
parent dbdcd8bdbf
commit 74e51d9f9b
3 changed files with 23 additions and 0 deletions

14
tiff-CVE-2018-19210.patch Normal file
View File

@ -0,0 +1,14 @@
Index: tiff-4.0.10/libtiff/tif_dirwrite.c
===================================================================
--- tiff-4.0.10.orig/libtiff/tif_dirwrite.c 2018-06-24 22:26:30.335763566 +0200
+++ tiff-4.0.10/libtiff/tif_dirwrite.c 2018-11-19 14:21:42.703256410 +0100
@@ -1883,6 +1883,9 @@ TIFFWriteDirectoryTagTransferfunction(TI
}
m=(1<<tif->tif_dir.td_bitspersample);
n=tif->tif_dir.td_samplesperpixel-tif->tif_dir.td_extrasamples;
+ if (tif->tif_dir.td_transferfunction[2] == NULL ||
+ tif->tif_dir.td_transferfunction[1] == NULL)
+ n = 1;
/*
* Check if the table can be written as a single column,
* or if it must be written as 3 columns. Note that we

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 19 13:56:48 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
- security update
* CVE-2018-19210 [bsc#1115717]
+ tiff-CVE-2018-19210.patch
-------------------------------------------------------------------
Tue Nov 13 10:20:45 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -34,6 +34,7 @@ Patch1: tiff-4.0.3-compress-warning.patch
# http://bugzilla.maptools.org/show_bug.cgi?id=2798
# https://gitlab.com/libtiff/libtiff/merge_requests/44
Patch2: tiff-CVE-2018-12900.patch
Patch3: tiff-CVE-2018-19210.patch
BuildRequires: gcc-c++
BuildRequires: libjbig-devel
BuildRequires: libjpeg-devel
@ -73,6 +74,7 @@ the libtiff library.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
CFLAGS="%{optflags} -fPIE"