tiff/tiff-CVE-2018-12900.patch
Michael Vetter 477879b0e1 Accepting request 648691 from home:pgajdos
- security update
  * CVE-2018-12900 [bsc#1099257]
    + tiff-CVE-2018-12900.patch

OBS-URL: https://build.opensuse.org/request/show/648691
OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=130
2018-11-13 09:27:32 +00:00

18 lines
674 B
Diff

Index: tiff-4.0.10/tools/tiffcp.c
===================================================================
--- tiff-4.0.10.orig/tools/tiffcp.c 2018-10-13 15:58:55.180101778 +0200
+++ tiff-4.0.10/tools/tiffcp.c 2018-11-12 17:00:52.706128841 +0100
@@ -1435,6 +1435,12 @@ DECLAREreadFunc(readSeparateTilesIntoBuf
status = 0;
goto done;
}
+ if (0xFFFFFFFF / tilew < spp)
+ {
+ TIFFError(TIFFFileName(in), "Error, either TileWidth (%u) or BitsPerSample (%u) is too large", tilew, bps);
+ status = 0;
+ goto done;
+ }
bytes_per_sample = bps/8;
for (row = 0; row < imagelength; row += tl) {