aboutsummaryrefslogtreecommitdiffstats
path: root/main/jasper/CVE-2016-2116.patch
blob: e3cb421c79875788ce81330997c1ce2e43aa7432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Prevent jas_stream_t memory leak in jas_iccprof_createfrombuf()
Author: Tyler Hicks <tyhicks () canonical com>

--- jasper-1.900.1-debian1.orig/src/libjasper/base/jas_icc.c
+++ jasper-1.900.1-debian1/src/libjasper/base/jas_icc.c
@@ -1693,6 +1693,8 @@ jas_iccprof_t *jas_iccprof_createfrombuf
 	jas_stream_close(in);
 	return prof;
 error:
+	if (in)
+		jas_stream_close(in);
 	return 0;
 }