jasper/jasper-CVE-2016-2116.patch

13 lines
447 B
Diff

diff -urNp jasper-1.900.1.orig/src/libjasper/base/jas_icc.c jasper-1.900.1.new/src/libjasper/base/jas_icc.c
--- jasper-1.900.1.orig/src/libjasper/base/jas_icc.c 2016-08-12 07:22:38.792914598 +0200
+++ jasper-1.900.1.new/src/libjasper/base/jas_icc.c 2016-08-12 07:26:50.389129799 +0200
@@ -1692,6 +1692,8 @@ jas_iccprof_t *jas_iccprof_createfrombuf
jas_stream_close(in);
return prof;
error:
+ if (in)
+ jas_stream_close(in);
return 0;
}