1a3c3e5ae9
- fix double-free in in jas_iccattrval_destroy() Obtained from: RedHat Security: CVE-2014-8137 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1173157 - fix heap overflow in jp2_decode() Obtained from: RedHat Security: CVE-2014-8138 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1173162 - dec->numtiles off-by-one check in jpc_dec_process_sot() Obtained from: RedHat, Fedora Security: CVE-2014-8157 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1179282 - multiple stack-based buffer overflows Obtained from: RedHat, Fedora Security: CVE-2014-8158 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1179282 - fix Heap overflows in libjasper Obtained from: RedHat Security: CVE-2014-9029 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1167537 - fix Use-after-free (and double-free) Security: CVE-2015-5221 Security: http://www.openwall.com/lists/oss-security/2015/08/20/4 PR: 203504 - patch (rows_ NULL check) Obtained from: RedHat Security: CVE-2016-2089 Security: https://bugzilla.redhat.com/show_bug.cgi?id=1302636
20 lines
745 B
C
20 lines
745 B
C
--- src/libjasper/jp2/jp2_enc.c.orig 2007-01-19 22:43:05.000000000 +0100
|
|
+++ src/libjasper/jp2/jp2_enc.c 2016-02-20 13:49:45.569962000 +0100
|
|
@@ -191,7 +191,7 @@
|
|
}
|
|
bpcc = &box->data.bpcc;
|
|
bpcc->numcmpts = jas_image_numcmpts(image);
|
|
- if (!(bpcc->bpcs = jas_malloc(bpcc->numcmpts *
|
|
+ if (!(bpcc->bpcs = jas_malloc2(bpcc->numcmpts,
|
|
sizeof(uint_fast8_t)))) {
|
|
goto error;
|
|
}
|
|
@@ -285,7 +285,7 @@
|
|
}
|
|
cdef = &box->data.cdef;
|
|
cdef->numchans = jas_image_numcmpts(image);
|
|
- cdef->ents = jas_malloc(cdef->numchans * sizeof(jp2_cdefchan_t));
|
|
+ cdef->ents = jas_malloc2(cdef->numchans, sizeof(jp2_cdefchan_t));
|
|
for (i = 0; i < jas_image_numcmpts(image); ++i) {
|
|
cdefchanent = &cdef->ents[i];
|
|
cdefchanent->channo = i;
|