Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
jasper
jasper-CVE-2018-20570.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jasper-CVE-2018-20570.patch of Package jasper
Index: jasper-2.0.14/src/libjasper/jp2/jp2_enc.c =================================================================== --- jasper-2.0.14.orig/src/libjasper/jp2/jp2_enc.c +++ jasper-2.0.14/src/libjasper/jp2/jp2_enc.c @@ -293,7 +293,8 @@ int jp2_encode(jas_image_t *image, jas_s needcdef = 1; switch (jas_clrspc_fam(jas_image_clrspc(image))) { case JAS_CLRSPC_FAM_RGB: - if (jas_image_cmpttype(image, 0) == + if (jas_image_numcmpts(image) >= 3 && + jas_image_cmpttype(image, 0) == JAS_IMAGE_CT_COLOR(JAS_CLRSPC_CHANIND_RGB_R) && jas_image_cmpttype(image, 1) == JAS_IMAGE_CT_COLOR(JAS_CLRSPC_CHANIND_RGB_G) && @@ -302,7 +303,8 @@ int jp2_encode(jas_image_t *image, jas_s needcdef = 0; break; case JAS_CLRSPC_FAM_YCBCR: - if (jas_image_cmpttype(image, 0) == + if (jas_image_numcmpts(image) >= 3 && + jas_image_cmpttype(image, 0) == JAS_IMAGE_CT_COLOR(JAS_CLRSPC_CHANIND_YCBCR_Y) && jas_image_cmpttype(image, 1) == JAS_IMAGE_CT_COLOR(JAS_CLRSPC_CHANIND_YCBCR_CB) && @@ -311,7 +313,8 @@ int jp2_encode(jas_image_t *image, jas_s needcdef = 0; break; case JAS_CLRSPC_FAM_GRAY: - if (jas_image_cmpttype(image, 0) == + if (jas_image_numcmpts(image) >= 1 && + jas_image_cmpttype(image, 0) == JAS_IMAGE_CT_COLOR(JAS_IMAGE_CT_GRAY_Y)) needcdef = 0; break;
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