diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-11-08 00:34:12 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-11-08 00:34:12 +0000 |
commit | 14a1da27f45c47f56c03f100467c4145b22cc27f (patch) | |
tree | 1672be7254edbd4e14c07966ad43adbe5529db3b /graphics | |
parent | * update to 0.20 (diff) |
Update to KDE 3.3.1
Notes
Notes:
svn path=/head/; revision=121092
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/kamera-kde4/distinfo | 4 | ||||
-rw-r--r-- | graphics/kamera/distinfo | 4 | ||||
-rw-r--r-- | graphics/kdegraphics3/Makefile | 1 | ||||
-rw-r--r-- | graphics/kdegraphics3/distinfo | 4 | ||||
-rw-r--r-- | graphics/kdegraphics3/files/patch-kpdf_xpdf_Catalog.cc | 23 | ||||
-rw-r--r-- | graphics/kdegraphics3/files/patch-kpdf_xpdf_XRef.cc | 65 | ||||
-rw-r--r-- | graphics/kdegraphics3/pkg-plist | 3 | ||||
-rw-r--r-- | graphics/kdegraphics4/Makefile | 1 | ||||
-rw-r--r-- | graphics/kdegraphics4/distinfo | 4 | ||||
-rw-r--r-- | graphics/kdegraphics4/files/patch-kpdf_xpdf_Catalog.cc | 23 | ||||
-rw-r--r-- | graphics/kdegraphics4/files/patch-kpdf_xpdf_XRef.cc | 65 | ||||
-rw-r--r-- | graphics/kdegraphics4/pkg-plist | 3 | ||||
-rw-r--r-- | graphics/kooka/distinfo | 4 | ||||
-rw-r--r-- | graphics/kuickshow-kde4/distinfo | 4 | ||||
-rw-r--r-- | graphics/kuickshow/distinfo | 4 |
15 files changed, 44 insertions, 168 deletions
diff --git a/graphics/kamera-kde4/distinfo b/graphics/kamera-kde4/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kamera-kde4/distinfo +++ b/graphics/kamera-kde4/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kamera/distinfo b/graphics/kamera/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kamera/distinfo +++ b/graphics/kamera/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kdegraphics3/Makefile b/graphics/kdegraphics3/Makefile index 3ede10ca190d..2154d034a115 100644 --- a/graphics/kdegraphics3/Makefile +++ b/graphics/kdegraphics3/Makefile @@ -8,7 +8,6 @@ PORTNAME= kdegraphics PORTVERSION= ${KDE_VERSION} -PORTREVISION= 1 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src diff --git a/graphics/kdegraphics3/distinfo b/graphics/kdegraphics3/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kdegraphics3/distinfo +++ b/graphics/kdegraphics3/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kdegraphics3/files/patch-kpdf_xpdf_Catalog.cc b/graphics/kdegraphics3/files/patch-kpdf_xpdf_Catalog.cc index 919d49085539..aa79feb8716e 100644 --- a/graphics/kdegraphics3/files/patch-kpdf_xpdf_Catalog.cc +++ b/graphics/kdegraphics3/files/patch-kpdf_xpdf_Catalog.cc @@ -1,30 +1,37 @@ ---- kpdf/xpdf/Catalog.cc 20 Aug 2003 21:25:12 -0000 1.3 -+++ kpdf/xpdf/Catalog.cc 18 Oct 2004 20:12:09 -0000 -@@ -61,10 +61,16 @@ Catalog::Catalog(XRef *xrefA) { +Index: kpdf/xpdf/Catalog.cc +=================================================================== +RCS file: /home/kde/kdegraphics/kpdf/xpdf/Catalog.cc,v +retrieving revision 1.3.4.1 +diff -u -5 -d -p -r1.3.4.1 Catalog.cc +--- kpdf/xpdf/Catalog.cc 2 Sep 2004 21:30:18 -0000 1.3.4.1 ++++ kpdf/xpdf/Catalog.cc 12 Oct 2004 21:15:38 -0000 +@@ -62,10 +62,19 @@ Catalog::Catalog(XRef *xrefA) { obj.getTypeName()); goto err3; } - pagesSize = numPages0 = obj.getInt(); + pagesSize = numPages0 = (int)obj.getNum(); obj.free(); ++ // The gcc doesnt optimize this away, so this check is ok, ++ // even if it looks like a pagesSize != pagesSize check + if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize || + pagesSize*sizeof(Ref)/sizeof(Ref) != pagesSize) { + error(-1, "Invalid 'pagesSize'"); + ok = gFalse; + return; + } ++ pages = (Page **)gmalloc(pagesSize * sizeof(Page *)); pageRefs = (Ref *)gmalloc(pagesSize * sizeof(Ref)); for (i = 0; i < pagesSize; ++i) { pages[i] = NULL; pageRefs[i].num = -1; -@@ -188,10 +194,15 @@ int Catalog::readPageTree(Dict *pagesDic +@@ -189,10 +198,14 @@ int Catalog::readPageTree(Dict *pagesDic ++start; goto err3; } if (start >= pagesSize) { pagesSize += 32; -+ if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize || -+ pagesSize*sizeof(Ref)/sizeof(Ref) != pagesSize) { ++ if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize) { + error(-1, "Invalid 'pagesSize' parameter."); + goto err3; + } @@ -32,4 +39,4 @@ pageRefs = (Ref *)grealloc(pageRefs, pagesSize * sizeof(Ref)); for (j = pagesSize - 32; j < pagesSize; ++j) { pages[j] = NULL; - pageRefs[j].num = -1;
\ No newline at end of file + pageRefs[j].num = -1; diff --git a/graphics/kdegraphics3/files/patch-kpdf_xpdf_XRef.cc b/graphics/kdegraphics3/files/patch-kpdf_xpdf_XRef.cc deleted file mode 100644 index 696b795b3b6d..000000000000 --- a/graphics/kdegraphics3/files/patch-kpdf_xpdf_XRef.cc +++ /dev/null @@ -1,65 +0,0 @@ ---- kpdf/xpdf/XRef.cc 20 Aug 2003 21:25:12 -0000 1.3 -+++ kpdf/xpdf/XRef.cc 18 Oct 2004 20:12:09 -0000 -@@ -74,10 +74,16 @@ XRef::XRef(BaseStream *strA, GString *ow - return; - } - - // trailer is ok - read the xref table - } else { -+ if (size*sizeof(XRefEntry)/sizeof(XRefEntry) != size) { -+ error(-1, "Invalid 'size' inside xref table."); -+ ok = gFalse; -+ errCode = errDamaged; -+ return; -+ } - entries = (XRefEntry *)gmalloc(size * sizeof(XRefEntry)); - for (i = 0; i < size; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; - } -@@ -265,10 +271,14 @@ GBool XRef::readXRef(Guint *pos) { - } - // check for buggy PDF files with an incorrect (too small) xref - // table size - if (first + n > size) { - newSize = size + 256; -+ if (newSize*sizeof(XRefEntry)/sizeof(XRefEntry) != newSize) { -+ error(-1, "Invalid 'newSize'"); -+ goto err2; -+ } - entries = (XRefEntry *)grealloc(entries, newSize * sizeof(XRefEntry)); - for (i = size; i < newSize; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; - } -@@ -413,10 +423,14 @@ GBool XRef::constructXRef() { - ++p; - } while (*p && isspace(*p)); - if (!strncmp(p, "obj", 3)) { - if (num >= size) { - newSize = (num + 1 + 255) & ~255; -+ if (newSize*sizeof(XRefEntry)/sizeof(XRefEntry) != newSize) { -+ error(-1, "Invalid 'obj' parameters."); -+ return gFalse; -+ } - entries = (XRefEntry *) - grealloc(entries, newSize * sizeof(XRefEntry)); - for (i = size; i < newSize; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; -@@ -434,10 +448,15 @@ GBool XRef::constructXRef() { - } - - } else if (!strncmp(p, "endstream", 9)) { - if (streamEndsLen == streamEndsSize) { - streamEndsSize += 64; -+ if (streamEndsSize*sizeof(int)/sizeof(int) != streamEndsSize) { -+ error(-1, "Invalid 'endstream' parameter."); -+ return gFalse; -+ } -+ - streamEnds = (Guint *)grealloc(streamEnds, - streamEndsSize * sizeof(int)); - } - streamEnds[streamEndsLen++] = pos; - } diff --git a/graphics/kdegraphics3/pkg-plist b/graphics/kdegraphics3/pkg-plist index cf7151a48c11..4556beac170b 100644 --- a/graphics/kdegraphics3/pkg-plist +++ b/graphics/kdegraphics3/pkg-plist @@ -798,19 +798,16 @@ share/doc/HTML/en/kolourpaint/image_invert.png share/doc/HTML/en/kolourpaint/image_reduce_colors.png share/doc/HTML/en/kolourpaint/image_resize_scale.png share/doc/HTML/en/kolourpaint/image_rotate.png -share/doc/HTML/en/kolourpaint/image_selection_dimensions.png share/doc/HTML/en/kolourpaint/image_skew.png share/doc/HTML/en/kolourpaint/image_soften_sharpen.png share/doc/HTML/en/kolourpaint/index.cache.bz2 share/doc/HTML/en/kolourpaint/index.docbook -share/doc/HTML/en/kolourpaint/kolourpaint-main.png share/doc/HTML/en/kolourpaint/line_width.png share/doc/HTML/en/kolourpaint/lines_30_45_deg.png share/doc/HTML/en/kolourpaint/lines_30_deg.png share/doc/HTML/en/kolourpaint/lines_45_deg.png share/doc/HTML/en/kolourpaint/rotate_image_30.png share/doc/HTML/en/kolourpaint/rotate_selection_30.png -share/doc/HTML/en/kolourpaint/scale_comparison.png share/doc/HTML/en/kolourpaint/selections_opaque_transparent.png share/doc/HTML/en/kolourpaint/spraycan_patterns.png share/doc/HTML/en/kolourpaint/tool_brush.png diff --git a/graphics/kdegraphics4/Makefile b/graphics/kdegraphics4/Makefile index 3ede10ca190d..2154d034a115 100644 --- a/graphics/kdegraphics4/Makefile +++ b/graphics/kdegraphics4/Makefile @@ -8,7 +8,6 @@ PORTNAME= kdegraphics PORTVERSION= ${KDE_VERSION} -PORTREVISION= 1 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src diff --git a/graphics/kdegraphics4/distinfo b/graphics/kdegraphics4/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kdegraphics4/distinfo +++ b/graphics/kdegraphics4/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kdegraphics4/files/patch-kpdf_xpdf_Catalog.cc b/graphics/kdegraphics4/files/patch-kpdf_xpdf_Catalog.cc index 919d49085539..aa79feb8716e 100644 --- a/graphics/kdegraphics4/files/patch-kpdf_xpdf_Catalog.cc +++ b/graphics/kdegraphics4/files/patch-kpdf_xpdf_Catalog.cc @@ -1,30 +1,37 @@ ---- kpdf/xpdf/Catalog.cc 20 Aug 2003 21:25:12 -0000 1.3 -+++ kpdf/xpdf/Catalog.cc 18 Oct 2004 20:12:09 -0000 -@@ -61,10 +61,16 @@ Catalog::Catalog(XRef *xrefA) { +Index: kpdf/xpdf/Catalog.cc +=================================================================== +RCS file: /home/kde/kdegraphics/kpdf/xpdf/Catalog.cc,v +retrieving revision 1.3.4.1 +diff -u -5 -d -p -r1.3.4.1 Catalog.cc +--- kpdf/xpdf/Catalog.cc 2 Sep 2004 21:30:18 -0000 1.3.4.1 ++++ kpdf/xpdf/Catalog.cc 12 Oct 2004 21:15:38 -0000 +@@ -62,10 +62,19 @@ Catalog::Catalog(XRef *xrefA) { obj.getTypeName()); goto err3; } - pagesSize = numPages0 = obj.getInt(); + pagesSize = numPages0 = (int)obj.getNum(); obj.free(); ++ // The gcc doesnt optimize this away, so this check is ok, ++ // even if it looks like a pagesSize != pagesSize check + if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize || + pagesSize*sizeof(Ref)/sizeof(Ref) != pagesSize) { + error(-1, "Invalid 'pagesSize'"); + ok = gFalse; + return; + } ++ pages = (Page **)gmalloc(pagesSize * sizeof(Page *)); pageRefs = (Ref *)gmalloc(pagesSize * sizeof(Ref)); for (i = 0; i < pagesSize; ++i) { pages[i] = NULL; pageRefs[i].num = -1; -@@ -188,10 +194,15 @@ int Catalog::readPageTree(Dict *pagesDic +@@ -189,10 +198,14 @@ int Catalog::readPageTree(Dict *pagesDic ++start; goto err3; } if (start >= pagesSize) { pagesSize += 32; -+ if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize || -+ pagesSize*sizeof(Ref)/sizeof(Ref) != pagesSize) { ++ if (pagesSize*sizeof(Page *)/sizeof(Page *) != pagesSize) { + error(-1, "Invalid 'pagesSize' parameter."); + goto err3; + } @@ -32,4 +39,4 @@ pageRefs = (Ref *)grealloc(pageRefs, pagesSize * sizeof(Ref)); for (j = pagesSize - 32; j < pagesSize; ++j) { pages[j] = NULL; - pageRefs[j].num = -1;
\ No newline at end of file + pageRefs[j].num = -1; diff --git a/graphics/kdegraphics4/files/patch-kpdf_xpdf_XRef.cc b/graphics/kdegraphics4/files/patch-kpdf_xpdf_XRef.cc deleted file mode 100644 index 696b795b3b6d..000000000000 --- a/graphics/kdegraphics4/files/patch-kpdf_xpdf_XRef.cc +++ /dev/null @@ -1,65 +0,0 @@ ---- kpdf/xpdf/XRef.cc 20 Aug 2003 21:25:12 -0000 1.3 -+++ kpdf/xpdf/XRef.cc 18 Oct 2004 20:12:09 -0000 -@@ -74,10 +74,16 @@ XRef::XRef(BaseStream *strA, GString *ow - return; - } - - // trailer is ok - read the xref table - } else { -+ if (size*sizeof(XRefEntry)/sizeof(XRefEntry) != size) { -+ error(-1, "Invalid 'size' inside xref table."); -+ ok = gFalse; -+ errCode = errDamaged; -+ return; -+ } - entries = (XRefEntry *)gmalloc(size * sizeof(XRefEntry)); - for (i = 0; i < size; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; - } -@@ -265,10 +271,14 @@ GBool XRef::readXRef(Guint *pos) { - } - // check for buggy PDF files with an incorrect (too small) xref - // table size - if (first + n > size) { - newSize = size + 256; -+ if (newSize*sizeof(XRefEntry)/sizeof(XRefEntry) != newSize) { -+ error(-1, "Invalid 'newSize'"); -+ goto err2; -+ } - entries = (XRefEntry *)grealloc(entries, newSize * sizeof(XRefEntry)); - for (i = size; i < newSize; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; - } -@@ -413,10 +423,14 @@ GBool XRef::constructXRef() { - ++p; - } while (*p && isspace(*p)); - if (!strncmp(p, "obj", 3)) { - if (num >= size) { - newSize = (num + 1 + 255) & ~255; -+ if (newSize*sizeof(XRefEntry)/sizeof(XRefEntry) != newSize) { -+ error(-1, "Invalid 'obj' parameters."); -+ return gFalse; -+ } - entries = (XRefEntry *) - grealloc(entries, newSize * sizeof(XRefEntry)); - for (i = size; i < newSize; ++i) { - entries[i].offset = 0xffffffff; - entries[i].used = gFalse; -@@ -434,10 +448,15 @@ GBool XRef::constructXRef() { - } - - } else if (!strncmp(p, "endstream", 9)) { - if (streamEndsLen == streamEndsSize) { - streamEndsSize += 64; -+ if (streamEndsSize*sizeof(int)/sizeof(int) != streamEndsSize) { -+ error(-1, "Invalid 'endstream' parameter."); -+ return gFalse; -+ } -+ - streamEnds = (Guint *)grealloc(streamEnds, - streamEndsSize * sizeof(int)); - } - streamEnds[streamEndsLen++] = pos; - } diff --git a/graphics/kdegraphics4/pkg-plist b/graphics/kdegraphics4/pkg-plist index cf7151a48c11..4556beac170b 100644 --- a/graphics/kdegraphics4/pkg-plist +++ b/graphics/kdegraphics4/pkg-plist @@ -798,19 +798,16 @@ share/doc/HTML/en/kolourpaint/image_invert.png share/doc/HTML/en/kolourpaint/image_reduce_colors.png share/doc/HTML/en/kolourpaint/image_resize_scale.png share/doc/HTML/en/kolourpaint/image_rotate.png -share/doc/HTML/en/kolourpaint/image_selection_dimensions.png share/doc/HTML/en/kolourpaint/image_skew.png share/doc/HTML/en/kolourpaint/image_soften_sharpen.png share/doc/HTML/en/kolourpaint/index.cache.bz2 share/doc/HTML/en/kolourpaint/index.docbook -share/doc/HTML/en/kolourpaint/kolourpaint-main.png share/doc/HTML/en/kolourpaint/line_width.png share/doc/HTML/en/kolourpaint/lines_30_45_deg.png share/doc/HTML/en/kolourpaint/lines_30_deg.png share/doc/HTML/en/kolourpaint/lines_45_deg.png share/doc/HTML/en/kolourpaint/rotate_image_30.png share/doc/HTML/en/kolourpaint/rotate_selection_30.png -share/doc/HTML/en/kolourpaint/scale_comparison.png share/doc/HTML/en/kolourpaint/selections_opaque_transparent.png share/doc/HTML/en/kolourpaint/spraycan_patterns.png share/doc/HTML/en/kolourpaint/tool_brush.png diff --git a/graphics/kooka/distinfo b/graphics/kooka/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kooka/distinfo +++ b/graphics/kooka/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kuickshow-kde4/distinfo b/graphics/kuickshow-kde4/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kuickshow-kde4/distinfo +++ b/graphics/kuickshow-kde4/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 diff --git a/graphics/kuickshow/distinfo b/graphics/kuickshow/distinfo index cd0f48496645..754d45c69d5b 100644 --- a/graphics/kuickshow/distinfo +++ b/graphics/kuickshow/distinfo @@ -1,2 +1,2 @@ -MD5 (KDE/kdegraphics-3.3.0.tar.bz2) = 7bb9843f7b03cd2716079ac83b9c9304 -SIZE (KDE/kdegraphics-3.3.0.tar.bz2) = 6444906 +MD5 (KDE/kdegraphics-3.3.1.tar.bz2) = 18f063ec6fad27b304ae97cf4b480140 +SIZE (KDE/kdegraphics-3.3.1.tar.bz2) = 6419816 |