diff options
author | dinoex <dinoex@FreeBSD.org> | 2013-04-21 00:01:55 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2013-04-21 00:01:55 +0800 |
commit | 85e67d9d8faa4133fd29fdc99ebd68f4344b038d (patch) | |
tree | 10dadacee55e5c07137ff153cd292b4a1571c1b8 /graphics/jasper | |
parent | 8d799df6527e4880b59589bd4bfa93393a77fb18 (diff) | |
download | freebsd-ports-gnome-85e67d9d8faa4133fd29fdc99ebd68f4344b038d.tar.gz freebsd-ports-gnome-85e67d9d8faa4133fd29fdc99ebd68f4344b038d.tar.zst freebsd-ports-gnome-85e67d9d8faa4133fd29fdc99ebd68f4344b038d.zip |
- Security fix
Security: CVE-2011-4517 execute arbitrary code on decodes images
Submitted by: naddy (Christian Weisgerber)
Obtained from: Fedora
Feature safe: yes
Diffstat (limited to 'graphics/jasper')
-rw-r--r-- | graphics/jasper/Makefile | 2 | ||||
-rw-r--r-- | graphics/jasper/files/patch-jpc_cs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/jasper/Makefile b/graphics/jasper/Makefile index 7ed99360ac71..94fc915a7534 100644 --- a/graphics/jasper/Makefile +++ b/graphics/jasper/Makefile @@ -3,7 +3,7 @@ PORTNAME= jasper PORTVERSION= 1.900.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= graphics MASTER_SITES= http://www.ece.uvic.ca/~mdadams/jasper/software/ \ ${MASTER_SITE_IMAGEMAGICK} diff --git a/graphics/jasper/files/patch-jpc_cs.c b/graphics/jasper/files/patch-jpc_cs.c index 08f86e1b6f47..89903070c06a 100644 --- a/graphics/jasper/files/patch-jpc_cs.c +++ b/graphics/jasper/files/patch-jpc_cs.c @@ -75,7 +75,7 @@ uint_fast16_t compno; crg->numcomps = cstate->numcomps; - if (!(crg->comps = jas_malloc(cstate->numcomps * sizeof(uint_fast16_t)))) { -+ if (!(crg->comps = jas_malloc2(cstate->numcomps, sizeof(uint_fast16_t)))) { ++ if (!(crg->comps = jas_malloc2(cstate->numcomps, sizeof(jpc_crgcomp_t)))) { return -1; } for (compno = 0, comp = crg->comps; compno < cstate->numcomps; |