netpbm/netpbm-CVE-2017-5849.patch
2017-02-08 15:08:06 +01:00

13 lines
639 B
Diff

diff -urpN old/converter/other/tifftopnm.c new/converter/other/tifftopnm.c
--- old/converter/other/tifftopnm.c 2017-02-08 13:58:14.515058955 +0100
+++ new/converter/other/tifftopnm.c 2017-02-08 14:47:25.684420520 +0100
@@ -1526,7 +1526,7 @@ convertRasterInMemory(pnmOut *
*statusP = CONV_FAILED;
} else {
int ok;
- ok = TIFFRGBAImageGet(&img, raster, cols, rows);
+ ok = TIFFRGBAImageGet(&img, raster, rows, cols);
TIFFRGBAImageEnd(&img) ;
if (!ok) {
pm_message("%s", emsg);