Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for SLE-Module-Server-Applications:aarch64
openSUSE:Step:15
jasper
jasper-CVE-2021-26926-CVE-2021-26927.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jasper-CVE-2021-26926-CVE-2021-26927.patch of Package jasper
Index: jasper-2.0.14/src/libjasper/jp2/jp2_dec.c =================================================================== --- jasper-2.0.14.orig/src/libjasper/jp2/jp2_dec.c +++ jasper-2.0.14/src/libjasper/jp2/jp2_dec.c @@ -230,7 +230,8 @@ jas_image_t *jp2_decode(jas_stream_t *in the value specified in the code stream? */ if (dec->ihdr->data.ihdr.numcmpts != JAS_CAST(jas_uint, jas_image_numcmpts(dec->image))) { - jas_eprintf("warning: number of components mismatch\n"); + jas_eprintf("error: number of components mismatch (IHDR)\n"); + goto error; } /* At least one component must be present. */ @@ -253,7 +254,8 @@ jas_image_t *jp2_decode(jas_stream_t *in with the data in the code stream? */ if ((samedtype && dec->ihdr->data.ihdr.bpc != JP2_DTYPETOBPC(dtype)) || (!samedtype && dec->ihdr->data.ihdr.bpc != JP2_IHDR_BPCNULL)) { - jas_eprintf("warning: component data type mismatch (IHDR)\n"); + jas_eprintf("error: component data type mismatch (IHDR)\n"); + goto error; } /* Is the compression type supported? */ @@ -265,9 +267,10 @@ jas_image_t *jp2_decode(jas_stream_t *in if (dec->bpcc) { /* Is the number of components indicated in the BPCC box consistent with the code stream data? */ - if (dec->bpcc->data.bpcc.numcmpts != JAS_CAST(jas_uint, jas_image_numcmpts( - dec->image))) { - jas_eprintf("warning: number of components mismatch\n"); + if (dec->bpcc->data.bpcc.numcmpts != + JAS_CAST(jas_uint, jas_image_numcmpts(dec->image))) { + jas_eprintf("error: number of components mismatch (BPCC)\n"); + goto error; } /* Is the component data type information indicated in the BPCC box consistent with the code stream data? */ @@ -276,7 +279,8 @@ jas_image_t *jp2_decode(jas_stream_t *in ++i) { if (jas_image_cmptdtype(dec->image, i) != JP2_BPCTODTYPE(dec->bpcc->data.bpcc.bpcs[i])) { - jas_eprintf("warning: component data type mismatch (BPCC)\n"); + jas_eprintf("error: component data type mismatch (BPCC)\n"); + goto error; } } } else {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor