Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
openjpeg2.23510
openjpeg2-CVE-2016-7445.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openjpeg2-CVE-2016-7445.patch of Package openjpeg2.23510
From 8be87adb7f568e6e807f590bbcf11d2a4fd150a9 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson <hpj@cl.no> Date: Wed, 14 Dec 2016 21:09:02 +0100 Subject: [PATCH 1/9] CVE-2016-7445 --- src/bin/jp2/convert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 1b2d361..40b0325 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -1690,8 +1690,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; @@ -1703,6 +1705,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; } -- 1.8.4.5
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