diff options
author | markd <markd@pkgsrc.org> | 2004-12-23 13:02:17 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2004-12-23 13:02:17 +0000 |
commit | 63e14db57cdeb02e61c1ddf68c37fdfb161d74ba (patch) | |
tree | 915b5aa8267c7796a7a8b01e4f92f9aad88f3cef /graphics | |
parent | ab13c3e8d488e6b50755e33b37922b73ba2c2af0 (diff) | |
download | pkgsrc-63e14db57cdeb02e61c1ddf68c37fdfb161d74ba.tar.gz |
Fix for security problem:
http://www.kde.org/info/security/advisory-20041223-1.txt
Bump PKGREVISION.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/kdegraphics3/Makefile | 3 | ||||
-rw-r--r-- | graphics/kdegraphics3/distinfo | 4 | ||||
-rw-r--r-- | graphics/kdegraphics3/patches/patch-aa | 15 | ||||
-rw-r--r-- | graphics/kdegraphics3/patches/patch-ab | 25 |
4 files changed, 45 insertions, 2 deletions
diff --git a/graphics/kdegraphics3/Makefile b/graphics/kdegraphics3/Makefile index 5d1ebe2f215..7d55440e0d5 100644 --- a/graphics/kdegraphics3/Makefile +++ b/graphics/kdegraphics3/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.42 2004/12/10 06:26:33 markd Exp $ +# $NetBSD: Makefile,v 1.43 2004/12/23 13:02:17 markd Exp $ DISTNAME= kdegraphics-${_KDE_VERSION} +PKGREVISION= 1 CATEGORIES= graphics COMMENT= Graphics programs for the KDE integrated X11 desktop diff --git a/graphics/kdegraphics3/distinfo b/graphics/kdegraphics3/distinfo index 2131819f958..c1fc410d0e6 100644 --- a/graphics/kdegraphics3/distinfo +++ b/graphics/kdegraphics3/distinfo @@ -1,4 +1,6 @@ -$NetBSD: distinfo,v 1.23 2004/12/10 06:26:33 markd Exp $ +$NetBSD: distinfo,v 1.24 2004/12/23 13:02:17 markd Exp $ SHA1 (kdegraphics-3.3.2.tar.bz2) = 66193a69d3cf1dc332987f52e6f00ac2e9a3152e Size (kdegraphics-3.3.2.tar.bz2) = 6234394 bytes +SHA1 (patch-aa) = e47443fdb5c737eb7f06fb2ee3bfac2b5602a9dd +SHA1 (patch-ab) = c8067b0dd514cd7376d6f02ffe3be2d2e705e439 diff --git a/graphics/kdegraphics3/patches/patch-aa b/graphics/kdegraphics3/patches/patch-aa new file mode 100644 index 00000000000..35b1f0206d4 --- /dev/null +++ b/graphics/kdegraphics3/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.5 2004/12/23 13:02:17 markd Exp $ + +--- kpdf/xpdf/Gfx.cc.orig 2004-11-29 02:30:57.000000000 +1300 ++++ kpdf/xpdf/Gfx.cc +@@ -2654,7 +2654,9 @@ void Gfx::doImage(Object *ref, Stream *s + haveMask = gFalse; + dict->lookup("Mask", &maskObj); + if (maskObj.isArray()) { +- for (i = 0; i < maskObj.arrayGetLength(); ++i) { ++ for (i = 0; ++ i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps; ++ ++i) { + maskObj.arrayGet(i, &obj1); + maskColors[i] = obj1.getInt(); + obj1.free(); diff --git a/graphics/kdegraphics3/patches/patch-ab b/graphics/kdegraphics3/patches/patch-ab new file mode 100644 index 00000000000..e28824c6a87 --- /dev/null +++ b/graphics/kdegraphics3/patches/patch-ab @@ -0,0 +1,25 @@ +$NetBSD: patch-ab,v 1.5 2004/12/23 13:02:17 markd Exp $ + +--- kpdf/xpdf/GfxState.cc.orig 2004-11-29 02:30:57.000000000 +1300 ++++ kpdf/xpdf/GfxState.cc +@@ -708,6 +708,11 @@ GfxColorSpace *GfxICCBasedColorSpace::pa + } + nCompsA = obj2.getInt(); + obj2.free(); ++ if (nCompsA > gfxColorMaxComps) { ++ error(-1, "ICCBased color space with too many (%d > %d) components", ++ nCompsA, gfxColorMaxComps); ++ nCompsA = gfxColorMaxComps; ++ } + if (dict->lookup("Alternate", &obj2)->isNull() || + !(altA = GfxColorSpace::parse(&obj2))) { + switch (nCompsA) { +@@ -1054,7 +1059,7 @@ GfxColorSpace *GfxDeviceNColorSpace::par + } + nCompsA = obj1.arrayGetLength(); + if (nCompsA > gfxColorMaxComps) { +- error(-1, "DeviceN color space with more than %d > %d components", ++ error(-1, "DeviceN color space with too many (%d > %d) components", + nCompsA, gfxColorMaxComps); + nCompsA = gfxColorMaxComps; + } |