Blame view

buildroot/buildroot-2016.08.1/package/jasper/0011-fix-CVE-2015-5221.patch 728 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  From: http://pkgs.fedoraproject.org/cgit/rpms/jasper.git/plain/jasper-CVE-2015-5221.patch
  
  Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  
  diff -urNp jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c jasper-1.900.1.new/src/libjasper/mif/mif_cod.c
  --- jasper-1.900.1.orig/src/libjasper/mif/mif_cod.c	2016-08-11 13:46:26.166415464 +0200
  +++ jasper-1.900.1.new/src/libjasper/mif/mif_cod.c	2016-08-11 14:17:20.507144931 +0200
  @@ -569,13 +569,13 @@ static int mif_process_cmpt(mif_hdr_t *h
   			break;
   		}
   	}
  -	jas_tvparser_destroy(tvp);
   	if (!cmpt->sampperx || !cmpt->samppery) {
   		goto error;
   	}
   	if (mif_hdr_addcmpt(hdr, hdr->numcmpts, cmpt)) {
   		goto error;
   	}
  +	jas_tvparser_destroy(tvp);
   	return 0;
   
   error: