diff options
author | Carsten Lohrke <carlo@gentoo.org> | 2005-12-20 17:29:23 +0000 |
---|---|---|
committer | Carsten Lohrke <carlo@gentoo.org> | 2005-12-20 17:29:23 +0000 |
commit | 0d3ee0ec122fb973441e848ed55bd1de6b18f0f3 (patch) | |
tree | 537172b40376de6767cb8b2bdb2872a325efeb7c /app-office | |
parent | Remove QtAssistant manual installation (it looks to me like it's handled now)... (diff) | |
download | historical-0d3ee0ec122fb973441e848ed55bd1de6b18f0f3.tar.gz historical-0d3ee0ec122fb973441e848ed55bd1de6b18f0f3.tar.bz2 historical-0d3ee0ec122fb973441e848ed55bd1de6b18f0f3.zip |
Patch applied according to #115851.
Package-Manager: portage-2.0.53
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/koffice/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/koffice/Manifest | 44 | ||||
-rw-r--r-- | app-office/koffice/files/digest-koffice-1.4.2-r6 | 1 | ||||
-rw-r--r-- | app-office/koffice/files/digest-koffice-1.4.2-r7 | 1 | ||||
-rw-r--r-- | app-office/koffice/files/post-1.3-koffice-CAN-2005-3193.diff | 134 | ||||
-rw-r--r-- | app-office/koffice/koffice-1.4.2-r6.ebuild | 65 | ||||
-rw-r--r-- | app-office/koffice/koffice-1.4.2-r7.ebuild | 67 | ||||
-rw-r--r-- | app-office/kword/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/kword/Manifest | 42 | ||||
-rw-r--r-- | app-office/kword/files/digest-kword-1.4.2-r6 | 1 | ||||
-rw-r--r-- | app-office/kword/files/digest-kword-1.4.2-r7 | 1 | ||||
-rw-r--r-- | app-office/kword/files/post-1.3-koffice-CAN-2005-3193.diff | 134 | ||||
-rw-r--r-- | app-office/kword/kword-1.4.2-r6.ebuild | 56 | ||||
-rw-r--r-- | app-office/kword/kword-1.4.2-r7.ebuild | 57 |
14 files changed, 560 insertions, 63 deletions
diff --git a/app-office/koffice/ChangeLog b/app-office/koffice/ChangeLog index d056fe89cbfe..9d66b20fd82f 100644 --- a/app-office/koffice/ChangeLog +++ b/app-office/koffice/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-office/koffice # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.140 2005/12/16 01:24:43 yoswink Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.141 2005/12/20 17:25:39 carlo Exp $ + +*koffice-1.4.2-r7 (20 Dec 2005) +*koffice-1.4.2-r6 (20 Dec 2005) + + 20 Dec 2005; Carsten Lohrke <carlo@gentoo.org> + files/post-1.3-koffice-CAN-2005-3193.diff, +koffice-1.4.2-r6.ebuild, + +koffice-1.4.2-r7.ebuild: + Patch applied according to #115851. 16 Dec 2005; Jose Luis Rivero <yoswink@gentoo.org> koffice-1.4.2-r4.ebuild: diff --git a/app-office/koffice/Manifest b/app-office/koffice/Manifest index 7ab769d6719e..04deccd0e34e 100644 --- a/app-office/koffice/Manifest +++ b/app-office/koffice/Manifest @@ -1,31 +1,25 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 7185dbf038a28ae5e5e7b7256bd7fa51 koffice-1.4.2-r4.ebuild 1605 -MD5 57795f4f39bb45ba42f8ec112ab278de koffice-1.4.2.ebuild 1545 -MD5 9242394dfa6049940585a4d3fa962907 koffice-1.3.5-r3.ebuild 1289 -MD5 216a4ec901dca4c7e574aae8a09c40da koffice-1.4.1.ebuild 1538 -MD5 3dd6867f27cde022182ed16a091cb0c0 koffice-1.4.1-r1.ebuild 1747 -MD5 7a3f9609ec6cf1c3a6288dc431dca701 koffice-1.4.2-r5.ebuild 1695 -MD5 46739815e82df0ac547939e7415c0d41 ChangeLog 19637 -MD5 02039d51ca4a42817775fd436dfaa956 metadata.xml 157 -MD5 bdcb79a8db04904d6e6c7110e0ff3ec9 koffice-1.3.5-r2.ebuild 1211 -MD5 f1f58cce115f40fcba31a4976b61d260 files/kspread-1.4.2-gcc41.patch 451 +MD5 2fb03e02147e1cc0d73e3f5df10d79ba ChangeLog 19889 MD5 6ee3768e50296eb2a8158093ee518133 files/CAN-2005-0064.patch 829 -MD5 77399be6733ffca4ed1142ab319c1453 files/koffice_1_3_xpdf_buffer_overflow.diff 1808 -MD5 79e9d059a9a700c3c8009978d0aa0ce3 files/digest-koffice-1.4.1 68 -MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2 68 -MD5 6b5dbefadc93d1d7f27fb5fcb93be65f files/post-1.3-koffice-CAN-2005-3193.diff 3317 -MD5 5f3683b6817935e4f6269bd64398c479 files/kexi-1.4.2-gcc41.patch 1094 MD5 12452317cab5461eb911114062f2cce2 files/digest-koffice-1.3.5-r2 68 MD5 fcd72b8c0a0e8d1e8bbf6b76ed92c5cc files/digest-koffice-1.3.5-r3 144 +MD5 79e9d059a9a700c3c8009978d0aa0ce3 files/digest-koffice-1.4.1 68 MD5 59512f920182567b8e9420e5e3d1bc9b files/digest-koffice-1.4.1-r1 144 +MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2 68 MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2-r4 68 MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2-r5 68 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFDohbY3og80iZgVQgRAorbAKCGvlUiqj+vxy6LysegAhJES1Eg8QCfbog9 -QFjFo3ZMx3njbJp9sL+sAU8= -=ubE9 ------END PGP SIGNATURE----- +MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2-r6 68 +MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-koffice-1.4.2-r7 68 +MD5 5f3683b6817935e4f6269bd64398c479 files/kexi-1.4.2-gcc41.patch 1094 +MD5 77399be6733ffca4ed1142ab319c1453 files/koffice_1_3_xpdf_buffer_overflow.diff 1808 +MD5 f1f58cce115f40fcba31a4976b61d260 files/kspread-1.4.2-gcc41.patch 451 +MD5 32ff061a8fba0e82d069a8a6fa6932e0 files/post-1.3-koffice-CAN-2005-3193.diff 6760 +MD5 bdcb79a8db04904d6e6c7110e0ff3ec9 koffice-1.3.5-r2.ebuild 1211 +MD5 9242394dfa6049940585a4d3fa962907 koffice-1.3.5-r3.ebuild 1289 +MD5 3dd6867f27cde022182ed16a091cb0c0 koffice-1.4.1-r1.ebuild 1747 +MD5 216a4ec901dca4c7e574aae8a09c40da koffice-1.4.1.ebuild 1538 +MD5 7185dbf038a28ae5e5e7b7256bd7fa51 koffice-1.4.2-r4.ebuild 1605 +MD5 7a3f9609ec6cf1c3a6288dc431dca701 koffice-1.4.2-r5.ebuild 1695 +MD5 5c65ea788a9e1707b494ae63d10b93cd koffice-1.4.2-r6.ebuild 1506 +MD5 1908d976c203e660c6a66ce09dc34b73 koffice-1.4.2-r7.ebuild 1697 +MD5 57795f4f39bb45ba42f8ec112ab278de koffice-1.4.2.ebuild 1545 +MD5 02039d51ca4a42817775fd436dfaa956 metadata.xml 157 diff --git a/app-office/koffice/files/digest-koffice-1.4.2-r6 b/app-office/koffice/files/digest-koffice-1.4.2-r6 new file mode 100644 index 000000000000..a054824ae545 --- /dev/null +++ b/app-office/koffice/files/digest-koffice-1.4.2-r6 @@ -0,0 +1 @@ +MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852 diff --git a/app-office/koffice/files/digest-koffice-1.4.2-r7 b/app-office/koffice/files/digest-koffice-1.4.2-r7 new file mode 100644 index 000000000000..a054824ae545 --- /dev/null +++ b/app-office/koffice/files/digest-koffice-1.4.2-r7 @@ -0,0 +1 @@ +MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852 diff --git a/app-office/koffice/files/post-1.3-koffice-CAN-2005-3193.diff b/app-office/koffice/files/post-1.3-koffice-CAN-2005-3193.diff index 57fee5c3757f..b1f436e9781f 100644 --- a/app-office/koffice/files/post-1.3-koffice-CAN-2005-3193.diff +++ b/app-office/koffice/files/post-1.3-koffice-CAN-2005-3193.diff @@ -1,7 +1,87 @@ +Index: filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc +=================================================================== +--- filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc (revision 409205) ++++ filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc (revision 488234) +@@ -7,6 +7,7 @@ + //======================================================================== + + #include <aconf.h> ++#include <limits.h> + + #ifdef USE_GCC_PRAGMAS + #pragma implementation +@@ -977,6 +978,13 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, + w = wA; + h = hA; + line = (wA + 7) >> 3; ++ ++ if (h < 0 || line <= 0 || h >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ data = NULL; ++ return; ++ } ++ + data = (Guchar *)gmalloc(h * line); + } + +@@ -986,6 +994,13 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, + w = bitmap->w; + h = bitmap->h; + line = bitmap->line; ++ ++ if (h < 0 || line <= 0 || h >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ data = NULL; ++ return; ++ } ++ + data = (Guchar *)gmalloc(h * line); + memcpy(data, bitmap->data, h * line); + } +@@ -1012,7 +1027,10 @@ JBIG2Bitmap *JBIG2Bitmap::getSlice(Guint + } + + void JBIG2Bitmap::expand(int newH, Guint pixel) { +- if (newH <= h) { ++ if (newH <= h || line <= 0 || newH >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ gfree(data); ++ data = NULL; + return; + } + data = (Guchar *)grealloc(data, newH * line); +@@ -2505,6 +2523,15 @@ void JBIG2Stream::readHalftoneRegionSeg( + error(getPos(), "Bad symbol dictionary reference in JBIG2 halftone segment"); + return; + } ++ if (gridH == 0 || gridW >= INT_MAX / gridH) { ++ error(getPos(), "Bad size in JBIG2 halftone segment"); ++ return; ++ } ++ if (w == 0 || h >= INT_MAX / w) { ++ error(getPos(), "Bad size in JBIG2 bitmap segment"); ++ return; ++ } ++ + patternDict = (JBIG2PatternDict *)seg; + bpp = 0; + i = 1; +@@ -3078,6 +3105,11 @@ JBIG2Bitmap *JBIG2Stream::readGenericRef + Guint ltpCX, cx, cx0, cx2, cx3, cx4, tpgrCX0, tpgrCX1, tpgrCX2; + int x, y, pix; + ++ if (w < 0 || h <= 0 || w >= INT_MAX / h) { ++ error(-1, "invalid width/height"); ++ return NULL; ++ } ++ + bitmap = new JBIG2Bitmap(0, w, h); + bitmap->clearToZero(); + 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) ++++ filters/kword/pdf/xpdf/xpdf/Stream.cc (revision 488234) @@ -15,6 +15,7 @@ #include <stdio.h> #include <stdlib.h> @@ -50,40 +130,82 @@ Index: filters/kword/pdf/xpdf/xpdf/Stream.cc } else { pred = NULL; } -@@ -2861,6 +2881,10 @@ GBool DCTStream::readBaselineSOF() { +@@ -1227,6 +1247,11 @@ CCITTFaxStream::CCITTFaxStream(Stream *s + endOfLine = endOfLineA; + byteAlign = byteAlignA; + columns = columnsA; ++ if (columns < 1 || columns + 2 < 0 || columns + 3 < 0 || ++ (columns + 2) >= INT_MAX / sizeof(short) || (columns + 3) >= INT_MAX / sizeof(short)) { ++ error(-1, "invalid number of columns"); ++ exit(1); ++ } + rows = rowsA; + endOfBlock = endOfBlockA; + black = blackA; +@@ -2861,6 +2886,11 @@ GBool DCTStream::readBaselineSOF() { height = read16(); width = read16(); numComps = str->getChar(); + if (numComps <= 0 || numComps > 4) { ++ numComps = 0; + 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() { +@@ -2887,6 +2917,11 @@ GBool DCTStream::readProgressiveSOF() { height = read16(); width = read16(); numComps = str->getChar(); + if (numComps <= 0 || numComps > 4) { ++ numComps = 0; + 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() { +@@ -2909,6 +2944,11 @@ GBool DCTStream::readScanInfo() { length = read16() - 2; scanInfo.numComps = str->getChar(); + if (scanInfo.numComps <= 0 || scanInfo.numComps > 4) { ++ scanInfo.numComps = 0; + 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 +@@ -2976,12 +3016,12 @@ GBool DCTStream::readHuffmanTables() { + while (length > 0) { + index = str->getChar(); + --length; +- if ((index & 0x0f) >= 4) { ++ if ((index & ~0x10) >= 4 || (index & ~0x10) < 0) { + error(getPos(), "Bad DCT Huffman table"); + return gFalse; + } + if (index & 0x10) { +- index &= 0x0f; ++ index &= 0x03; + if (index >= numACHuffTables) + numACHuffTables = index+1; + tbl = &acHuffTables[index]; +@@ -3069,9 +3109,11 @@ int DCTStream::readMarker() { + do { + do { + c = str->getChar(); ++ if(c == EOF) return EOF; + } while (c != 0xff); + do { + c = str->getChar(); ++ if(c == EOF) return EOF; + } while (c == 0xff); + } while (c == 0x00); + return c; +@@ -3179,6 +3221,10 @@ FlateStream::FlateStream(Stream *strA, i FilterStream(strA) { if (predictor != 1) { pred = new StreamPredictor(this, predictor, columns, colors, bits); @@ -97,7 +219,7 @@ Index: filters/kword/pdf/xpdf/xpdf/Stream.cc 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) ++++ filters/kword/pdf/xpdf/xpdf/Stream.h (revision 488234) @@ -227,6 +227,7 @@ public: int lookChar(); diff --git a/app-office/koffice/koffice-1.4.2-r6.ebuild b/app-office/koffice/koffice-1.4.2-r6.ebuild new file mode 100644 index 000000000000..c721905222f6 --- /dev/null +++ b/app-office/koffice/koffice-1.4.2-r6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.4.2-r6.ebuild,v 1.1 2005/12/20 17:25:39 carlo Exp $ + +inherit kde + +DESCRIPTION="An integrated office suite for KDE, the K Desktop Environment." +HOMEPAGE="http://www.koffice.org/" +SRC_URI="mirror://kde/stable/koffice-${PV}/src/${P}.tar.bz2" +LICENSE="GPL-2 LGPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc javascript mysql postgres" + +RDEPEND=">=media-gfx/imagemagick-5.5.2 + >=app-text/wv2-0.1.9 + >=media-libs/freetype-2 + media-libs/fontconfig + media-libs/libart_lgpl + dev-libs/libxml2 + dev-libs/libxslt + sys-libs/readline + mysql? ( dev-db/mysql ) + postgres? ( dev-libs/libpqxx ) + dev-lang/python + >=media-libs/lcms-1.12 + javascript? ( kde-base/kjsembed ) + !dev-db/kexi" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + dev-util/pkgconfig" + +# add blockers on split packages derived from this one +for x in $(get-child-packages ${CATEGORY}/${PN}); do + DEPEND="${DEPEND} !${x}" + RDEPEND="${RDEPEND} !${x}" +done + +need-kde 3.3 + +# TODO: kword sql plugin needs Qt compiled with sql support +# the dependency on python is needed for scripting support in kexi +# and for kivio/kiviopart/kiviosdk. + +PATCHES="${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff" + +src_compile() { + local myconf="$(use_enable mysql) $(use_enable postgres pgsql)" + + kde_src_compile + if use doc; then + make apidox || die + fi +} + +src_install() { + kde_src_install + if use doc; then + make DESTDIR="${D}" install-apidox || die + fi + + dodoc changes-* +} diff --git a/app-office/koffice/koffice-1.4.2-r7.ebuild b/app-office/koffice/koffice-1.4.2-r7.ebuild new file mode 100644 index 000000000000..92672bfb422f --- /dev/null +++ b/app-office/koffice/koffice-1.4.2-r7.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.4.2-r7.ebuild,v 1.1 2005/12/20 17:25:39 carlo Exp $ + +inherit kde + +DESCRIPTION="An integrated office suite for KDE, the K Desktop Environment." +HOMEPAGE="http://www.koffice.org/" +SRC_URI="mirror://kde/stable/koffice-${PV}/src/${P}.tar.bz2" +LICENSE="GPL-2 LGPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc javascript mysql postgres" + +RDEPEND=">=media-gfx/imagemagick-5.5.2 + >=app-text/wv2-0.1.9 + >=media-libs/freetype-2 + media-libs/fontconfig + media-libs/libart_lgpl + dev-libs/libxml2 + dev-libs/libxslt + sys-libs/readline + mysql? ( dev-db/mysql ) + postgres? ( dev-libs/libpqxx ) + dev-lang/python + >=media-libs/lcms-1.12 + javascript? ( kde-base/kjsembed ) + >=app-text/libwpd-0.8.2" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + dev-util/pkgconfig" + +# add blockers on split packages derived from this one +for x in $(get-child-packages ${CATEGORY}/${PN}); do + DEPEND="${DEPEND} !${x}" + RDEPEND="${RDEPEND} !${x}" +done + +need-kde 3.3 + +# TODO: kword sql plugin needs Qt compiled with sql support +# the dependency on python is needed for scripting support in kexi +# and for kivio/kiviopart/kiviosdk. + +PATCHES="${FILESDIR}/kspread-1.4.2-gcc41.patch + ${FILESDIR}/kexi-1.4.2-gcc41.patch + ${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff" + +src_compile() { + local myconf="$(use_enable mysql) $(use_enable postgres pgsql)" + + kde_src_compile + if use doc; then + make apidox || die + fi +} + +src_install() { + kde_src_install + if use doc; then + make DESTDIR="${D}" install-apidox || die + fi + + dodoc changes-* +} diff --git a/app-office/kword/ChangeLog b/app-office/kword/ChangeLog index 121e6f814ffe..42b2fe1fc132 100644 --- a/app-office/kword/ChangeLog +++ b/app-office/kword/ChangeLog @@ -1,6 +1,14 @@ # 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.38 2005/12/16 01:22:31 yoswink Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/kword/ChangeLog,v 1.39 2005/12/20 17:29:23 carlo Exp $ + +*kword-1.4.2-r7 (20 Dec 2005) +*kword-1.4.2-r6 (20 Dec 2005) + + 20 Dec 2005; Carsten Lohrke <carlo@gentoo.org> + files/post-1.3-koffice-CAN-2005-3193.diff, +kword-1.4.2-r6.ebuild, + +kword-1.4.2-r7.ebuild: + Patch applied according to #115851. 16 Dec 2005; Jose Luis Rivero <yoswink@gentoo.org> kword-1.4.2-r4.ebuild: Stable on Alpha wrt security bug #114429 diff --git a/app-office/kword/Manifest b/app-office/kword/Manifest index 064f0f53b6f1..5f90396c75a5 100644 --- a/app-office/kword/Manifest +++ b/app-office/kword/Manifest @@ -1,30 +1,24 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 dd4e1252d9492a184a8a0066f734da34 kword-1.4.2-r4.ebuild 1265 -MD5 18ae024a439fc6a208affee87245e886 kword-1.4.1.ebuild 1200 -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 d9b7e8492eb8e911135353748af3b67d kword-1.4.2-r5.ebuild 1332 -MD5 8f0acb5e8042cd72200b18a6f6ebd436 ChangeLog 4872 -MD5 02039d51ca4a42817775fd436dfaa956 metadata.xml 157 -MD5 b0d602dfdc9115c98b9fe1f9a45052e2 kword-1.4.2.ebuild 1205 -MD5 f1f58cce115f40fcba31a4976b61d260 files/kspread-1.4.2-gcc41.patch 451 +MD5 fb11ddabd0c4c412c739648a00aca19e ChangeLog 5116 MD5 6ee3768e50296eb2a8158093ee518133 files/CAN-2005-0064.patch 829 -MD5 77399be6733ffca4ed1142ab319c1453 files/koffice_1_3_xpdf_buffer_overflow.diff 1808 MD5 12d141df83ce3d5769387e780ee073f7 files/digest-kword-1.3.5 211 -MD5 79e9d059a9a700c3c8009978d0aa0ce3 files/digest-kword-1.4.1 68 -MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2 68 -MD5 6b5dbefadc93d1d7f27fb5fcb93be65f files/post-1.3-koffice-CAN-2005-3193.diff 3317 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-r4 68 MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r5 68 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFDohZe3og80iZgVQgRAorJAJ9wcZrrB+u61UoNdeECk6HFRl+aAgCfR0dA -U84mD6za0doG3dqTIureG2I= -=ANGI ------END PGP SIGNATURE----- +MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r6 68 +MD5 cf5b314fdf4094ea845edfddf2cf39b5 files/digest-kword-1.4.2-r7 68 +MD5 77399be6733ffca4ed1142ab319c1453 files/koffice_1_3_xpdf_buffer_overflow.diff 1808 +MD5 f1f58cce115f40fcba31a4976b61d260 files/kspread-1.4.2-gcc41.patch 451 +MD5 32ff061a8fba0e82d069a8a6fa6932e0 files/post-1.3-koffice-CAN-2005-3193.diff 6760 +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 dd4e1252d9492a184a8a0066f734da34 kword-1.4.2-r4.ebuild 1265 +MD5 d9b7e8492eb8e911135353748af3b67d kword-1.4.2-r5.ebuild 1332 +MD5 fddd578ded7c4ee2b331ab06a3ccfa68 kword-1.4.2-r6.ebuild 1269 +MD5 9fb607a2992d87ec624a526ba40de6c2 kword-1.4.2-r7.ebuild 1332 +MD5 b0d602dfdc9115c98b9fe1f9a45052e2 kword-1.4.2.ebuild 1205 +MD5 02039d51ca4a42817775fd436dfaa956 metadata.xml 157 diff --git a/app-office/kword/files/digest-kword-1.4.2-r6 b/app-office/kword/files/digest-kword-1.4.2-r6 new file mode 100644 index 000000000000..a054824ae545 --- /dev/null +++ b/app-office/kword/files/digest-kword-1.4.2-r6 @@ -0,0 +1 @@ +MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852 diff --git a/app-office/kword/files/digest-kword-1.4.2-r7 b/app-office/kword/files/digest-kword-1.4.2-r7 new file mode 100644 index 000000000000..a054824ae545 --- /dev/null +++ b/app-office/kword/files/digest-kword-1.4.2-r7 @@ -0,0 +1 @@ +MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852 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 index 57fee5c3757f..b1f436e9781f 100644 --- 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 @@ -1,7 +1,87 @@ +Index: filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc +=================================================================== +--- filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc (revision 409205) ++++ filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc (revision 488234) +@@ -7,6 +7,7 @@ + //======================================================================== + + #include <aconf.h> ++#include <limits.h> + + #ifdef USE_GCC_PRAGMAS + #pragma implementation +@@ -977,6 +978,13 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, + w = wA; + h = hA; + line = (wA + 7) >> 3; ++ ++ if (h < 0 || line <= 0 || h >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ data = NULL; ++ return; ++ } ++ + data = (Guchar *)gmalloc(h * line); + } + +@@ -986,6 +994,13 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, + w = bitmap->w; + h = bitmap->h; + line = bitmap->line; ++ ++ if (h < 0 || line <= 0 || h >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ data = NULL; ++ return; ++ } ++ + data = (Guchar *)gmalloc(h * line); + memcpy(data, bitmap->data, h * line); + } +@@ -1012,7 +1027,10 @@ JBIG2Bitmap *JBIG2Bitmap::getSlice(Guint + } + + void JBIG2Bitmap::expand(int newH, Guint pixel) { +- if (newH <= h) { ++ if (newH <= h || line <= 0 || newH >= INT_MAX / line) { ++ error(-1, "invalid width/height"); ++ gfree(data); ++ data = NULL; + return; + } + data = (Guchar *)grealloc(data, newH * line); +@@ -2505,6 +2523,15 @@ void JBIG2Stream::readHalftoneRegionSeg( + error(getPos(), "Bad symbol dictionary reference in JBIG2 halftone segment"); + return; + } ++ if (gridH == 0 || gridW >= INT_MAX / gridH) { ++ error(getPos(), "Bad size in JBIG2 halftone segment"); ++ return; ++ } ++ if (w == 0 || h >= INT_MAX / w) { ++ error(getPos(), "Bad size in JBIG2 bitmap segment"); ++ return; ++ } ++ + patternDict = (JBIG2PatternDict *)seg; + bpp = 0; + i = 1; +@@ -3078,6 +3105,11 @@ JBIG2Bitmap *JBIG2Stream::readGenericRef + Guint ltpCX, cx, cx0, cx2, cx3, cx4, tpgrCX0, tpgrCX1, tpgrCX2; + int x, y, pix; + ++ if (w < 0 || h <= 0 || w >= INT_MAX / h) { ++ error(-1, "invalid width/height"); ++ return NULL; ++ } ++ + bitmap = new JBIG2Bitmap(0, w, h); + bitmap->clearToZero(); + 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) ++++ filters/kword/pdf/xpdf/xpdf/Stream.cc (revision 488234) @@ -15,6 +15,7 @@ #include <stdio.h> #include <stdlib.h> @@ -50,40 +130,82 @@ Index: filters/kword/pdf/xpdf/xpdf/Stream.cc } else { pred = NULL; } -@@ -2861,6 +2881,10 @@ GBool DCTStream::readBaselineSOF() { +@@ -1227,6 +1247,11 @@ CCITTFaxStream::CCITTFaxStream(Stream *s + endOfLine = endOfLineA; + byteAlign = byteAlignA; + columns = columnsA; ++ if (columns < 1 || columns + 2 < 0 || columns + 3 < 0 || ++ (columns + 2) >= INT_MAX / sizeof(short) || (columns + 3) >= INT_MAX / sizeof(short)) { ++ error(-1, "invalid number of columns"); ++ exit(1); ++ } + rows = rowsA; + endOfBlock = endOfBlockA; + black = blackA; +@@ -2861,6 +2886,11 @@ GBool DCTStream::readBaselineSOF() { height = read16(); width = read16(); numComps = str->getChar(); + if (numComps <= 0 || numComps > 4) { ++ numComps = 0; + 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() { +@@ -2887,6 +2917,11 @@ GBool DCTStream::readProgressiveSOF() { height = read16(); width = read16(); numComps = str->getChar(); + if (numComps <= 0 || numComps > 4) { ++ numComps = 0; + 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() { +@@ -2909,6 +2944,11 @@ GBool DCTStream::readScanInfo() { length = read16() - 2; scanInfo.numComps = str->getChar(); + if (scanInfo.numComps <= 0 || scanInfo.numComps > 4) { ++ scanInfo.numComps = 0; + 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 +@@ -2976,12 +3016,12 @@ GBool DCTStream::readHuffmanTables() { + while (length > 0) { + index = str->getChar(); + --length; +- if ((index & 0x0f) >= 4) { ++ if ((index & ~0x10) >= 4 || (index & ~0x10) < 0) { + error(getPos(), "Bad DCT Huffman table"); + return gFalse; + } + if (index & 0x10) { +- index &= 0x0f; ++ index &= 0x03; + if (index >= numACHuffTables) + numACHuffTables = index+1; + tbl = &acHuffTables[index]; +@@ -3069,9 +3109,11 @@ int DCTStream::readMarker() { + do { + do { + c = str->getChar(); ++ if(c == EOF) return EOF; + } while (c != 0xff); + do { + c = str->getChar(); ++ if(c == EOF) return EOF; + } while (c == 0xff); + } while (c == 0x00); + return c; +@@ -3179,6 +3221,10 @@ FlateStream::FlateStream(Stream *strA, i FilterStream(strA) { if (predictor != 1) { pred = new StreamPredictor(this, predictor, columns, colors, bits); @@ -97,7 +219,7 @@ Index: filters/kword/pdf/xpdf/xpdf/Stream.cc 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) ++++ filters/kword/pdf/xpdf/xpdf/Stream.h (revision 488234) @@ -227,6 +227,7 @@ public: int lookChar(); diff --git a/app-office/kword/kword-1.4.2-r6.ebuild b/app-office/kword/kword-1.4.2-r6.ebuild new file mode 100644 index 000000000000..58edf5cc9ff4 --- /dev/null +++ b/app-office/kword/kword-1.4.2-r6.ebuild @@ -0,0 +1,56 @@ +# 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-r6.ebuild,v 1.1 2005/12/20 17:29:23 carlo Exp $ + +KMNAME=koffice +MAXKOFFICEVER=${PV} +inherit kde-meta eutils + +DESCRIPTION="KOffice word processor." +HOMEPAGE="http://www.koffice.org/" +LICENSE="GPL-2 LGPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs) + $(deprange $PV $MAXKOFFICEVER app-office/kspread) + >=app-text/wv2-0.1.8 + >=media-gfx/imagemagick-5.5.2" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +KMCOPYLIB=" + libkformula lib/kformula + libkofficecore lib/kofficecore + libkofficeui lib/kofficeui + libkopainter lib/kopainter + libkoscript lib/koscript + libkotext lib/kotext + libkwmf lib/kwmf + libkowmf lib/kwmf + libkstore lib/store + libkspreadcommon kspread" + +KMEXTRACTONLY=" + lib/ + kspread/" + +KMCOMPILEONLY="filters/liboofilter" + +KMEXTRA="filters/kword" + +need-kde 3.3 + +PATCHES="${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff" + +src_unpack() { + kde-meta_src_unpack unpack + + # We need to compile liboofilter first + echo "SUBDIRS = liboofilter kword" > $S/filters/Makefile.am + + kde-meta_src_unpack makefiles +} diff --git a/app-office/kword/kword-1.4.2-r7.ebuild b/app-office/kword/kword-1.4.2-r7.ebuild new file mode 100644 index 000000000000..f2e2040a8811 --- /dev/null +++ b/app-office/kword/kword-1.4.2-r7.ebuild @@ -0,0 +1,57 @@ +# 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-r7.ebuild,v 1.1 2005/12/20 17:29:23 carlo Exp $ + +KMNAME=koffice +MAXKOFFICEVER=${PV} +inherit kde-meta eutils + +DESCRIPTION="KOffice word processor." +HOMEPAGE="http://www.koffice.org/" +LICENSE="GPL-2 LGPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs) + $(deprange $PV $MAXKOFFICEVER app-office/kspread) + >=app-text/wv2-0.1.8 + >=media-gfx/imagemagick-5.5.2 + >=app-text/libwpd-0.8.2" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +KMCOPYLIB=" + libkformula lib/kformula + libkofficecore lib/kofficecore + libkofficeui lib/kofficeui + libkopainter lib/kopainter + libkoscript lib/koscript + libkotext lib/kotext + libkwmf lib/kwmf + libkowmf lib/kwmf + libkstore lib/store + libkspreadcommon kspread" + +KMEXTRACTONLY=" + lib/ + kspread/" + +KMCOMPILEONLY="filters/liboofilter" + +KMEXTRA="filters/kword" + +need-kde 3.3 + +PATCHES="${FILESDIR}/kspread-1.4.2-gcc41.patch ${FILESDIR}/post-1.3-koffice-CAN-2005-3193.diff" + +src_unpack() { + kde-meta_src_unpack unpack + + # We need to compile liboofilter first + echo "SUBDIRS = liboofilter kword" > $S/filters/Makefile.am + + kde-meta_src_unpack makefiles +} |