Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 594684 Details for
Bug 835767
CVE-2012-3358 openjpeg: heap-based buffer overflow when processing JPEG2000 image files
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
openjpeg-tile-sanity.patch
openjpeg-tile-sanity.patch (text/plain), 1.59 KB, created by
Tom Lane
on 2012-06-27 05:17:22 UTC
(
hide
)
Description:
openjpeg-tile-sanity.patch
Filename:
MIME Type:
Creator:
Tom Lane
Created:
2012-06-27 05:17:22 UTC
Size:
1.59 KB
patch
obsolete
>Enforce sanity checks on tile number and tile length, even when the (rather >broken) USE_JPWL code isn't enabled. > > >diff -Naur OpenJPEG_v1_3.orig/libopenjpeg/j2k.c OpenJPEG_v1_3/libopenjpeg/j2k.c >--- OpenJPEG_v1_3.orig/libopenjpeg/j2k.c 2007-12-19 07:28:40.000000000 -0500 >+++ OpenJPEG_v1_3/libopenjpeg/j2k.c 2010-11-02 12:50:57.342204186 -0400 >@@ -1282,7 +1282,7 @@ > static int backup_tileno = 0; > > /* tileno is negative or larger than the number of tiles!!! */ >- if ((tileno < 0) || (tileno > (cp->tw * cp->th))) { >+ if ((tileno < 0) || (tileno >= (cp->tw * cp->th))) { > opj_event_msg(j2k->cinfo, EVT_ERROR, > "JPWL: bad tile number (%d out of a maximum of %d)\n", > tileno, (cp->tw * cp->th)); >@@ -1299,8 +1299,18 @@ > > /* keep your private count of tiles */ > backup_tileno++; >- }; >+ } >+ else > #endif /* USE_JPWL */ >+ { >+ /* tileno is negative or larger than the number of tiles!!! */ >+ if ((tileno < 0) || (tileno >= (cp->tw * cp->th))) { >+ opj_event_msg(j2k->cinfo, EVT_ERROR, >+ "JPWL: bad tile number (%d out of a maximum of %d)\n", >+ tileno, (cp->tw * cp->th)); >+ return; >+ } >+ } > > if (cp->tileno_size == 0) { > cp->tileno[cp->tileno_size] = tileno; >@@ -1338,8 +1348,18 @@ > totlen); > } > >- }; >+ } >+ else > #endif /* USE_JPWL */ >+ { >+ /* totlen is negative or larger than the bytes left!!! */ >+ if ((totlen < 0) || (totlen > (cio_numbytesleft(cio) + 8))) { >+ opj_event_msg(j2k->cinfo, EVT_ERROR, >+ "JPWL: bad tile byte size (%d bytes against %d bytes left)\n", >+ totlen, cio_numbytesleft(cio) + 8); >+ return; >+ } >+ } > > if (!totlen) > totlen = cio_numbytesleft(cio) + 8;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 835767
: 594684