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 316092 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 Ubuntu
ubuntu-jasper-1.701-CVE-2007-2721.diff (text/plain), 2.15 KB, created by
Tomas Hoger
on 2008-09-08 15:10:39 UTC
(
hide
)
Description:
Patch used by Ubuntu
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2008-09-08 15:10:39 UTC
Size:
2.15 KB
patch
obsolete
>diff -u jasper-1.701.0/debian/changelog jasper-1.701.0/debian/changelog >--- jasper-1.701.0/debian/changelog >+++ jasper-1.701.0/debian/changelog >@@ -1,3 +1,12 @@ >+jasper (1.701.0-2ubuntu0.7.04) feisty-security; urgency=low >+ >+ * SECURITY UPDATE: code execution via crafted JPEG2000 images. >+ * src/libjasper/jp2/{jp2_cod,jpc_cs,jpc_dec}.c: upstream fixes. >+ * References >+ CVE-2007-2721 >+ >+ -- Kees Cook <kees@ubuntu.com> Mon, 20 Aug 2007 14:07:30 -0700 >+ > jasper (1.701.0-2) unstable; urgency=low > > * Prevent compression of pdf documents in binary packages >only in patch2: >unchanged: >--- jasper-1.701.0.orig/src/libjasper/jp2/jp2_cod.c >+++ jasper-1.701.0/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; >only in patch2: >unchanged: >--- jasper-1.701.0.orig/src/libjasper/jpc/jpc_dec.c >+++ jasper-1.701.0/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; > } >only in patch2: >unchanged: >--- jasper-1.701.0.orig/src/libjasper/jpc/jpc_cs.c >+++ jasper-1.701.0/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);
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