Blame SOURCES/jasper-CVE-2014-9029.patch
|
|
f6e2e8 |
--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_dec.c 2014-11-27 12:45:44.000000000 +0100
|
|
|
f6e2e8 |
+++ jasper-1.900.1/src/libjasper/jpc/jpc_dec.c 2014-11-27 12:44:58.000000000 +0100
|
|
|
f6e2e8 |
@@ -1281,7 +1281,7 @@ static int jpc_dec_process_coc(jpc_dec_t
|
|
|
f6e2e8 |
jpc_coc_t *coc = &ms->parms.coc;
|
|
|
f6e2e8 |
jpc_dec_tile_t *tile;
|
|
|
f6e2e8 |
|
|
|
f6e2e8 |
- if (JAS_CAST(int, coc->compno) > dec->numcomps) {
|
|
|
f6e2e8 |
+ if (JAS_CAST(int, coc->compno) >= dec->numcomps) {
|
|
|
f6e2e8 |
jas_eprintf("invalid component number in COC marker segment\n");
|
|
|
f6e2e8 |
return -1;
|
|
|
f6e2e8 |
}
|
|
|
f6e2e8 |
@@ -1307,7 +1307,7 @@ static int jpc_dec_process_rgn(jpc_dec_t
|
|
|
f6e2e8 |
jpc_rgn_t *rgn = &ms->parms.rgn;
|
|
|
f6e2e8 |
jpc_dec_tile_t *tile;
|
|
|
f6e2e8 |
|
|
|
f6e2e8 |
- if (JAS_CAST(int, rgn->compno) > dec->numcomps) {
|
|
|
f6e2e8 |
+ if (JAS_CAST(int, rgn->compno) >= dec->numcomps) {
|
|
|
f6e2e8 |
jas_eprintf("invalid component number in RGN marker segment\n");
|
|
|
f6e2e8 |
return -1;
|
|
|
f6e2e8 |
}
|
|
|
f6e2e8 |
@@ -1356,7 +1356,7 @@ static int jpc_dec_process_qcc(jpc_dec_t
|
|
|
f6e2e8 |
jpc_qcc_t *qcc = &ms->parms.qcc;
|
|
|
f6e2e8 |
jpc_dec_tile_t *tile;
|
|
|
f6e2e8 |
|
|
|
f6e2e8 |
- if (JAS_CAST(int, qcc->compno) > dec->numcomps) {
|
|
|
f6e2e8 |
+ if (JAS_CAST(int, qcc->compno) >= dec->numcomps) {
|
|
|
f6e2e8 |
jas_eprintf("invalid component number in QCC marker segment\n");
|
|
|
f6e2e8 |
return -1;
|
|
|
f6e2e8 |
}
|