Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:GA
openjpeg
openjpeg-bsc999817-cve2016-7445-null-deref.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openjpeg-bsc999817-cve2016-7445-null-deref.patch of Package openjpeg
diff --git a/applications/codec/convert.c b/applications/codec/convert.c index 082aa2c..d4c850c 100644 --- a/applications/codec/convert.c +++ b/applications/codec/convert.c @@ -1652,8 +1652,10 @@ static void read_pnm_header(FILE *reader, struct pnm_header *ph) if( !have_wh) { s = skip_int(s, &ph->width); + if (s == NULL || *s == 0) return; s = skip_int(s, &ph->height); + if (s == NULL || *s == 0) return; have_wh = 1; @@ -1665,6 +1667,7 @@ static void read_pnm_header(FILE *reader, struct pnm_header *ph) { /* P2, P3, P5, P6: */ s = skip_int(s, &ph->maxval); + if (s == NULL || *s == 0) return; if(ph->maxval > 65535) return; }
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