Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 835143 Details for
Bug 1037945
CVE-2013-1447 openjpeg: multiple denial of service flaws
[?]
New
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.rh83 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]
patch 2
bloop2.patch (text/plain), 2.10 KB, created by
Murray McAllister
on 2013-12-11 07:33:58 UTC
(
hide
)
Description:
patch 2
Filename:
MIME Type:
Creator:
Murray McAllister
Created:
2013-12-11 07:33:58 UTC
Size:
2.10 KB
patch
obsolete
>Index: openjpeg-1.5.1/libopenjpeg/cio.c >=================================================================== >--- openjpeg-1.5.1.orig/libopenjpeg/cio.c 2013-01-01 01:01:01.000000000 +0000 >+++ openjpeg-1.5.1/libopenjpeg/cio.c 2013-01-01 01:01:01.000000000 +0000 >@@ -107,6 +107,11 @@ int OPJ_CALLCONV cio_tell(opj_cio_t *cio > * pos : position, in number of bytes, from the beginning of the stream > */ > void OPJ_CALLCONV cio_seek(opj_cio_t *cio, int pos) { >+ if ((cio->start + pos) > cio->end) { >+ opj_event_msg(cio->cinfo, EVT_ERROR, "error: trying to seek past the end of the codestream (start = %d, change = %d, end = %d\n", cio->start, pos, cio->end); >+ cio->bp = cio->end; >+ return; >+ } > cio->bp = cio->start + pos; > } > >@@ -114,6 +119,7 @@ void OPJ_CALLCONV cio_seek(opj_cio_t *ci > * Number of bytes left before the end of the stream. > */ > int cio_numbytesleft(opj_cio_t *cio) { >+ assert((cio->end - cio->bp) >= 0); > return cio->end - cio->bp; > } > >@@ -191,6 +197,11 @@ unsigned int cio_read(opj_cio_t *cio, in > */ > void cio_skip(opj_cio_t *cio, int n) { > assert((cio->bp + n) >= cio->bp); >+ if (((cio->bp + n) < cio->start) || ((cio->bp + n) > cio->end)) { >+ opj_event_msg(cio->cinfo, EVT_ERROR, "error: trying to skip bytes past the end of the codestream (current = %d, change = %d, end = %d\n", cio->bp, n, cio->end); >+ cio->bp = cio->end; >+ return; >+ } > cio->bp += n; > } > >Index: openjpeg-1.5.1/libopenjpeg/jp2.c >=================================================================== >--- openjpeg-1.5.1.orig/libopenjpeg/jp2.c 2013-01-01 01:01:01.000000000 +0000 >+++ openjpeg-1.5.1/libopenjpeg/jp2.c 2013-01-01 01:01:01.000000000 +0000 >@@ -339,6 +339,17 @@ > if (!jp2_read_ihdr(jp2, cio)) > return false; > >+ { >+ int curpos = cio_tell(cio); >+ cio_seek(cio, box.init_pos); >+ cio_skip(cio, box.length); >+ if ((cio_tell(cio) - box.init_pos) != box.length) { >+ opj_event_msg(cinfo, EVT_ERROR, "Box size exceeds size of codestream (expected: %d, real: %d)\n", box.length, (cio_tell(cio) - box.init_pos)); >+ return false; >+ } >+ cio_seek(cio, curpos); >+ } >+ > if (jp2->bpc == 255) { > if (!jp2_read_bpcc(jp2, cio)) > return false;
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 1037945
:
835142
| 835143 |
835144
|
835145
|
835146
|
835147
|
835149
|
835150
|
835152