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 316093 Details for
Bug 346501
CVE-2007-2721 jasper: crash in jpc_qcx_getcompparms
[?]
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 used by Mandriva
mandriva-libjasper-1.701.0-CVE-2007-2721.diff (text/plain), 1.41 KB, created by
Tomas Hoger
on 2008-09-08 15:11:08 UTC
(
hide
)
Description:
Patch used by Mandriva
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2008-09-08 15:11:08 UTC
Size:
1.41 KB
patch
obsolete
>--- src/libjasper/jp2/jp2_cod.c >+++ src/libjasper/jp2/jp2_cod.c >@@ -247,7 +247,7 @@ > box = 0; > tmpstream = 0; > >- if (!(box = jas_malloc(sizeof(jp2_box_t)))) { >+ if (!(box = jas_calloc(1, sizeof(jp2_box_t)))) { > goto error; > } > box->ops = &jp2_boxinfo_unk.ops; >--- src/libjasper/jpc/jpc_cs.c >+++ src/libjasper/jpc/jpc_cs.c >@@ -983,7 +983,10 @@ > compparms->numstepsizes = (len - n) / 2; > break; > } >-if (compparms->numstepsizes > 0) { >+if (compparms->numstepsizes > 3 * JPC_MAXRLVLS + 1) { >+ jpc_qcx_destroycompparms(compparms); >+ return -1; >+ } else if (compparms->numstepsizes > 0) { > compparms->stepsizes = jas_malloc(compparms->numstepsizes * > sizeof(uint_fast32_t)); > assert(compparms->stepsizes); >--- src/libjasper/jpc/jpc_dec.c >+++ src/libjasper/jpc/jpc_dec.c >@@ -1207,7 +1207,7 @@ > dec->numhtiles = JPC_CEILDIV(dec->xend - dec->tilexoff, dec->tilewidth); > dec->numvtiles = JPC_CEILDIV(dec->yend - dec->tileyoff, dec->tileheight); > dec->numtiles = dec->numhtiles * dec->numvtiles; >- if (!(dec->tiles = jas_malloc(dec->numtiles * sizeof(jpc_dec_tile_t)))) { >+ if (!(dec->tiles = jas_calloc(dec->numtiles, sizeof(jpc_dec_tile_t)))) { > return -1; > } > >@@ -1231,7 +1231,7 @@ > tile->pkthdrstreampos = 0; > tile->pptstab = 0; > tile->cp = 0; >- if (!(tile->tcomps = jas_malloc(dec->numcomps * >+ if (!(tile->tcomps = jas_calloc(dec->numcomps, > sizeof(jpc_dec_tcomp_t)))) { > return -1; > }
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 346501
:
316091
|
316092
| 316093