Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
jasper.25970
jasper-CVE-2021-27845.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jasper-CVE-2021-27845.patch of Package jasper.25970
Index: jasper-1.900.14/src/libjasper/jpc/jpc_enc.c =================================================================== --- jasper-1.900.14.orig/src/libjasper/jpc/jpc_enc.c +++ jasper-1.900.14/src/libjasper/jpc/jpc_enc.c @@ -422,6 +422,10 @@ static jpc_enc_cp_t *cp_create(char *opt } cp->rawsize = jas_image_rawsize(image); + if (cp->rawsize == 0) { + /* prevent division by zero in cp_create() */ + goto error; + } cp->totalsize = UINT_FAST32_MAX; tcp = &cp->tcp;
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