summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-12-09 20:41:28 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-12-09 20:41:28 +0000
commit5ed79d584df310816f0caa8465ef50ec9c1d4fd4 (patch)
treefc2cb6e0e37d6f5d6f8d4c8121d206907a9eaa3a /app-office
parentMarked 3.4.4-r1 stable; 3.4.5 unstable on mips. (diff)
downloadhistorical-5ed79d584df310816f0caa8465ef50ec9c1d4fd4.tar.gz
historical-5ed79d584df310816f0caa8465ef50ec9c1d4fd4.tar.bz2
historical-5ed79d584df310816f0caa8465ef50ec9c1d4fd4.zip
fixed patch
Package-Manager: portage-2.0.53
Diffstat (limited to 'app-office')
-rw-r--r--app-office/kword/ChangeLog11
-rw-r--r--app-office/kword/Manifest22
-rw-r--r--app-office/kword/files/digest-kword-1.4.2-r4 (renamed from app-office/kword/files/digest-kword-1.4.2-r2)0
-rw-r--r--app-office/kword/files/digest-kword-1.4.2-r5 (renamed from app-office/kword/files/digest-kword-1.4.2-r3)0
-rw-r--r--app-office/kword/files/kword-1.4.2-CAN-2005-3193.patch93
-rw-r--r--app-office/kword/files/post-1.3-koffice-CAN-2005-3193.diff116
-rw-r--r--app-office/kword/kword-1.4.2-r4.ebuild (renamed from app-office/kword/kword-1.4.2-r2.ebuild)6
-rw-r--r--app-office/kword/kword-1.4.2-r5.ebuild (renamed from app-office/kword/kword-1.4.2-r3.ebuild)4
8 files changed, 137 insertions, 115 deletions
diff --git a/app-office/kword/ChangeLog b/app-office/kword/ChangeLog
index 548da5dfe81d..ccca71b4b23a 100644
--- a/app-office/kword/ChangeLog
+++ b/app-office/kword/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-office/kword
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kword/ChangeLog,v 1.31 2005/12/07 19:40:35 cryos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/ChangeLog,v 1.32 2005/12/09 20:41:28 carlo Exp $
+
+*kword-1.4.2-r5 (09 Dec 2005)
+*kword-1.4.2-r4 (09 Dec 2005)
+
+ 09 Dec 2005; Carsten Lohrke <carlo@gentoo.org>
+ +files/post-1.3-koffice-CAN-2005-3193.diff,
+ -files/kword-1.4.2-CAN-2005-3193.patch, -kword-1.4.2-r2.ebuild,
+ -kword-1.4.2-r3.ebuild, +kword-1.4.2-r4.ebuild, +kword-1.4.2-r5.ebuild:
+ fixed patch
07 Dec 2005; Marcus D. Hanwell <cryos@gentoo.org> kword-1.4.2-r2.ebuild:
Stable on amd64, bug 114429.
diff --git a/app-office/kword/Manifest b/app-office/kword/Manifest
index 8f28779662fc..d940dcef4efe 100644
--- a/app-office/kword/Manifest
+++ b/app-office/kword/Manifest
@@ -1,30 +1,20 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 784e29986f78039f657a6e42b27bce49 ChangeLog 3910
+MD5 6d0574c7ef2efe1eb061857a390831ab ChangeLog 4221
MD5 6ee3768e50296eb2a8158093ee518133 files/CAN-2005-0064.patch 829
MD5 12d141df83ce3d5769387e780ee073f7 files/digest-kword-1.3.5 211
MD5 4db1fd7ff582f6437830745f93412312 files/digest-kword-1.3.5-r1 287
MD5 79e9d059a9a700c3c8009978d0aa0ce3 files/digest-kword-1.4.1 68
MD5 59512f920182567b8e9420e5e3d1bc9b files/digest-kword-1.4.1-r1 144
MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2 68
-MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r2 68
-MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r3 68
+MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r4 68
+MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r5 68
MD5 77399be6733ffca4ed1142ab319c1453 files/koffice_1_3_xpdf_buffer_overflow.diff 1808
MD5 f1f58cce115f40fcba31a4976b61d260 files/kspread-1.4.2-gcc41.patch 451
-MD5 fc99a43dc841dc1e656d67266b720f71 files/kword-1.4.2-CAN-2005-3193.patch 2454
+MD5 6b5dbefadc93d1d7f27fb5fcb93be65f files/post-1.3-koffice-CAN-2005-3193.diff 3317
MD5 113e6434c255e20ee8de241c0a1b53bd kword-1.3.5-r1.ebuild 1440
MD5 5948a99247e2967f49cbd364cbe194d7 kword-1.3.5.ebuild 1378
MD5 4a5def53a5e48ab29b32d9ddcd601258 kword-1.4.1-r1.ebuild 1396
MD5 18ae024a439fc6a208affee87245e886 kword-1.4.1.ebuild 1200
-MD5 0b88554e23572d10110f58c0df4e5137 kword-1.4.2-r2.ebuild 1262
-MD5 3538f8b1b0d72d9e23a328596cdc1ceb kword-1.4.2-r3.ebuild 1328
+MD5 02c24b401b74b8f50bb5f1977b20cfe8 kword-1.4.2-r4.ebuild 1269
+MD5 d9b7e8492eb8e911135353748af3b67d kword-1.4.2-r5.ebuild 1332
MD5 b0d602dfdc9115c98b9fe1f9a45052e2 kword-1.4.2.ebuild 1205
MD5 02039d51ca4a42817775fd436dfaa956 metadata.xml 157
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDlzq/ntT9W3vfTuoRAoSFAKCPGvb1QLzSw80je1e2/yt8MtSK6wCcD0OA
-kNOjIBUPD0rV6lIcerCxodA=
-=eORZ
------END PGP SIGNATURE-----
diff --git a/app-office/kword/files/digest-kword-1.4.2-r2 b/app-office/kword/files/digest-kword-1.4.2-r4
index a054824ae545..a054824ae545 100644
--- a/app-office/kword/files/digest-kword-1.4.2-r2
+++ b/app-office/kword/files/digest-kword-1.4.2-r4
diff --git a/app-office/kword/files/digest-kword-1.4.2-r3 b/app-office/kword/files/digest-kword-1.4.2-r5
index a054824ae545..a054824ae545 100644
--- a/app-office/kword/files/digest-kword-1.4.2-r3
+++ b/app-office/kword/files/digest-kword-1.4.2-r5
diff --git a/app-office/kword/files/kword-1.4.2-CAN-2005-3193.patch b/app-office/kword/files/kword-1.4.2-CAN-2005-3193.patch
deleted file mode 100644
index 323cdf520b6f..000000000000
--- a/app-office/kword/files/kword-1.4.2-CAN-2005-3193.patch
+++ /dev/null
@@ -1,93 +0,0 @@
---- filters/kword/pdf/xpdf/xpdf/Stream.h.orig 2005-12-04 18:21:42.000000000 +0100
-+++ filters/kword/pdf/xpdf/xpdf/Stream.h 2005-12-04 18:25:55.000000000 +0100
-@@ -225,6 +225,8 @@
-
- ~StreamPredictor();
-
-+ GBool isOk() { return ok; }
-+
- int lookChar();
- int getChar();
-
-@@ -242,6 +244,7 @@
- int rowBytes; // bytes per line
- Guchar *predLine; // line buffer
- int predIdx; // current index in predLine
-+ GBool ok;
- };
-
- //------------------------------------------------------------------------
---- filters/kword/pdf/xpdf/xpdf/Stream.cc.orig 2005-12-04 18:21:29.000000000 +0100
-+++ filters/kword/pdf/xpdf/xpdf/Stream.cc 2005-12-04 18:33:51.000000000 +0100
-@@ -404,18 +404,33 @@
-
- StreamPredictor::StreamPredictor(Stream *strA, int predictorA,
- int widthA, int nCompsA, int nBitsA) {
-+ int totalBits;
-+
- str = strA;
- predictor = predictorA;
- width = widthA;
- nComps = nCompsA;
- nBits = nBitsA;
-+ predLine = NULL;
-+ ok = gFalse;
-
- nVals = width * nComps;
-+ totalBits = nVals * nBits;
-+ if (totalBits == 0 ||
-+ (totalBits / nBits) / nComps != width ||
-+ totalBits + 7 < 0) {
-+ return;
-+ }
- pixBytes = (nComps * nBits + 7) >> 3;
-- rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
-+ rowBytes = ((totalBits + 7) >> 3) + pixBytes;
-+ if (rowBytes < 0) {
-+ return;
-+ }
- predLine = (Guchar *)gmalloc(rowBytes);
- memset(predLine, 0, rowBytes);
- predIdx = rowBytes;
-+
-+ ok = gTrue;
- }
-
- StreamPredictor::~StreamPredictor() {
-@@ -982,6 +997,10 @@
- FilterStream(strA) {
- if (predictor != 1) {
- pred = new StreamPredictor(this, predictor, columns, colors, bits);
-+ if (!pred->isOk()) {
-+ delete pred;
-+ pred = NULL;
-+ }
- } else {
- pred = NULL;
- }
-@@ -2887,6 +2906,14 @@
- height = read16();
- width = read16();
- numComps = str->getChar();
-+ if (numComps <= 0 || numComps > 4) {
-+ error(getPos(), "Bad number of components in DCT stream", prec);
-+ return gFalse;
-+ }
-+ if (numComps <= 0 || numComps > 4) {
-+ error(getPos(), "Bad number of components in DCT stream", prec);
-+ return gFalse;
-+ }
- if (prec != 8) {
- error(getPos(), "Bad DCT precision %d", prec);
- return gFalse;
-@@ -3179,6 +3206,10 @@
- FilterStream(strA) {
- if (predictor != 1) {
- pred = new StreamPredictor(this, predictor, columns, colors, bits);
-+ if (!pred->isOk()) {
-+ delete pred;
-+ pred = NULL;
-+ }
- } else {
- pred = NULL;
- }
diff --git a/app-office/kword/files/post-1.3-koffice-CAN-2005-3193.diff b/app-office/kword/files/post-1.3-koffice-CAN-2005-3193.diff
new file mode 100644
index 000000000000..57fee5c3757f
--- /dev/null
+++ b/app-office/kword/files/post-1.3-koffice-CAN-2005-3193.diff
@@ -0,0 +1,116 @@
+Index: filters/kword/pdf/xpdf/xpdf/Stream.cc
+===================================================================
+--- filters/kword/pdf/xpdf/xpdf/Stream.cc (revision 409205)
++++ filters/kword/pdf/xpdf/xpdf/Stream.cc (revision 487205)
+@@ -15,6 +15,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stddef.h>
++#include <limits.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #endif
+@@ -409,13 +410,28 @@ StreamPredictor::StreamPredictor(Stream
+ width = widthA;
+ nComps = nCompsA;
+ nBits = nBitsA;
++ predLine = NULL;
++ ok = gFalse;
++
++ if (width <= 0 || nComps <= 0 || nBits <= 0 ||
++ nComps >= INT_MAX / nBits ||
++ width >= INT_MAX / nComps / nBits)
++ return;
+
+ nVals = width * nComps;
++ if (nVals + 7 <= 0)
++ return;
++
+ pixBytes = (nComps * nBits + 7) >> 3;
+ rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
++ if (rowBytes < 0)
++ return;
++
+ predLine = (Guchar *)gmalloc(rowBytes);
+ memset(predLine, 0, rowBytes);
+ predIdx = rowBytes;
++
++ ok = gTrue;
+ }
+
+ StreamPredictor::~StreamPredictor() {
+@@ -982,6 +998,10 @@ LZWStream::LZWStream(Stream *strA, int p
+ FilterStream(strA) {
+ if (predictor != 1) {
+ pred = new StreamPredictor(this, predictor, columns, colors, bits);
++ if ( !pred->isOk()) {
++ delete pred;
++ pred = NULL;
++ }
+ } else {
+ pred = NULL;
+ }
+@@ -2861,6 +2881,10 @@ GBool DCTStream::readBaselineSOF() {
+ height = read16();
+ width = read16();
+ numComps = str->getChar();
++ if (numComps <= 0 || numComps > 4) {
++ error(getPos(), "Bad number of components in DCT stream");
++ return gFalse;
++ }
+ if (prec != 8) {
+ error(getPos(), "Bad DCT precision %d", prec);
+ return gFalse;
+@@ -2887,6 +2911,10 @@ GBool DCTStream::readProgressiveSOF() {
+ height = read16();
+ width = read16();
+ numComps = str->getChar();
++ if (numComps <= 0 || numComps > 4) {
++ error(getPos(), "Bad number of components in DCT stream");
++ return gFalse;
++ }
+ if (prec != 8) {
+ error(getPos(), "Bad DCT precision %d", prec);
+ return gFalse;
+@@ -2909,6 +2937,10 @@ GBool DCTStream::readScanInfo() {
+
+ length = read16() - 2;
+ scanInfo.numComps = str->getChar();
++ if (scanInfo.numComps <= 0 || scanInfo.numComps > 4) {
++ error(getPos(), "Bad number of components in DCT stream");
++ return gFalse;
++ }
+ --length;
+ if (length != 2 * scanInfo.numComps + 3) {
+ error(getPos(), "Bad DCT scan info block");
+@@ -3179,6 +3211,10 @@ FlateStream::FlateStream(Stream *strA, i
+ FilterStream(strA) {
+ if (predictor != 1) {
+ pred = new StreamPredictor(this, predictor, columns, colors, bits);
++ if ( !pred->isOk()) {
++ delete pred;
++ pred = NULL;
++ }
+ } else {
+ pred = NULL;
+ }
+Index: filters/kword/pdf/xpdf/xpdf/Stream.h
+===================================================================
+--- filters/kword/pdf/xpdf/xpdf/Stream.h (revision 409205)
++++ filters/kword/pdf/xpdf/xpdf/Stream.h (revision 487205)
+@@ -227,6 +227,7 @@ public:
+
+ int lookChar();
+ int getChar();
++ GBool isOk() { return ok; }
+
+ private:
+
+@@ -242,6 +243,7 @@ private:
+ int rowBytes; // bytes per line
+ Guchar *predLine; // line buffer
+ int predIdx; // current index in predLine
++ GBool ok;
+ };
+
+ //------------------------------------------------------------------------
diff --git a/app-office/kword/kword-1.4.2-r2.ebuild b/app-office/kword/kword-1.4.2-r4.ebuild
index 334dc67c332f..0e91d70cd052 100644
--- a/app-office/kword/kword-1.4.2-r2.ebuild
+++ b/app-office/kword/kword-1.4.2-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.2-r2.ebuild,v 1.4 2005/12/07 19:40:36 cryos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.2-r4.ebuild,v 1.1 2005/12/09 20:41:28 carlo Exp $
KMNAME=koffice
MAXKOFFICEVER=${PV}
@@ -11,7 +11,7 @@ HOMEPAGE="http://www.koffice.org/"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
@@ -44,7 +44,7 @@ KMEXTRA="filters/kword"
need-kde 3.3
-PATCHES="${FILESDIR}/kword-1.4.2-CAN-2005-3193.patch"
+PATCHES="${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff"
src_unpack() {
kde-meta_src_unpack unpack
diff --git a/app-office/kword/kword-1.4.2-r3.ebuild b/app-office/kword/kword-1.4.2-r5.ebuild
index 0149d0c76d1f..17f346af2afb 100644
--- a/app-office/kword/kword-1.4.2-r3.ebuild
+++ b/app-office/kword/kword-1.4.2-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.2-r3.ebuild,v 1.1 2005/12/06 02:01:05 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.2-r5.ebuild,v 1.1 2005/12/09 20:41:28 carlo Exp $
KMNAME=koffice
MAXKOFFICEVER=${PV}
@@ -45,7 +45,7 @@ KMEXTRA="filters/kword"
need-kde 3.3
-PATCHES="${FILESDIR}/kspread-1.4.2-gcc41.patch ${FILESDIR}/kword-1.4.2-CAN-2005-3193.patch"
+PATCHES="${FILESDIR}/kspread-1.4.2-gcc41.patch ${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff"
src_unpack() {
kde-meta_src_unpack unpack