void-packages/srcpkgs/tiff/patches/CVE-2017-9936.patch
Helmut Pozimski 487b256c7e tiff: add patches for multiple CVEs
patches taken from the inofficial git mirror of the upstream repository
vadz/libtiff on github. Revisions:

4d4fa0b68ae9ae038959ee4f69ebe288ec892f06
fe8d7165956b88df4837034a9161dc5fd20cf67a
6173a57d39e04d68b139f8c1aa499a24dbe74ba1

Fixes CVE-2016-10095, CVE-2017-9147, CVE-2017-9936 and CVE-2017-9936.

Closes: #6973 [via git-merge-pr]
2017-07-06 13:16:34 +02:00

12 lines
324 B
Diff

diff --git a/libtiff/tif_jbig.c b/libtiff/tif_jbig.c
index 5f5f75e2..c75f31d9 100644
--- libtiff/tif_jbig.c
+++ libtiff/tif_jbig.c
@@ -94,6 +94,7 @@ static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s)
jbg_strerror(decodeStatus)
#endif
);
+ jbg_dec_free(&decoder);
return 0;
}