From 11ee0e7a26f6573787b30ef7fc017c891f7227de Mon Sep 17 00:00:00 2001 From: Daniel Jahre Date: Tue, 21 Nov 2006 13:07:12 +0000 Subject: [PATCH] Daniel Jahre: updated gv to version 3.6.2 and added a SECURITY patch [2006112114050583380] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8069 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/x11/gv/CVE-2006-5864.patch | 24 +++++++++++++++++++ package/x11/gv/anti-alias-default.patch | 30 ------------------------ package/x11/gv/gv.conf | 31 ------------------------- package/x11/gv/gv.desc | 4 ++-- 4 files changed, 26 insertions(+), 63 deletions(-) create mode 100644 package/x11/gv/CVE-2006-5864.patch delete mode 100644 package/x11/gv/anti-alias-default.patch delete mode 100644 package/x11/gv/gv.conf diff --git a/package/x11/gv/CVE-2006-5864.patch b/package/x11/gv/CVE-2006-5864.patch new file mode 100644 index 000000000..55454aad0 --- /dev/null +++ b/package/x11/gv/CVE-2006-5864.patch @@ -0,0 +1,24 @@ +--- ./src/ps.c.sec2 2006-11-09 17:31:34.000000000 +0000 ++++ ./src/ps.c 2006-11-09 17:37:07.000000000 +0000 +@@ -1423,6 +1423,8 @@ + quoted=1; + line++; + while (*line && !(*line == ')' && level == 0 )) { ++ if (cp - text >= PSLINELENGTH - 2) ++ break; + if (*line == '\\') { + if (*(line+1) == 'n') { + *cp++ = '\n'; +@@ -1477,8 +1479,11 @@ + } + } + } else { +- while (*line && !(*line == ' ' || *line == '\t' || *line == '\n')) ++ while (*line && !(*line == ' ' || *line == '\t' || *line == '\n')) { ++ if (cp - text >= PSLINELENGTH - 2) ++ break; + *cp++ = *line++; ++ } + } + *cp = '\0'; + if (next_char) *next_char = line; diff --git a/package/x11/gv/anti-alias-default.patch b/package/x11/gv/anti-alias-default.patch deleted file mode 100644 index 59ae12192..000000000 --- a/package/x11/gv/anti-alias-default.patch +++ /dev/null @@ -1,30 +0,0 @@ -# --- ROCK-COPYRIGHT-NOTE-BEGIN --- -# -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# Please add additional copyright information _after_ the line containing -# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by -# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! -# -# ROCK Linux: rock-src/package/x11/gv/anti-alias-default.patch -# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf -# -# This patch file is dual-licensed. It is available under the license the -# patched project is licensed under, as long as it is an OpenSource license -# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms -# of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# -# --- ROCK-COPYRIGHT-NOTE-END --- - ---- gv-3.5.8/source/gv_user_res.dat.orig 2003-12-05 19:31:42.000000000 +0100 -+++ gv-3.5.8/source/gv_user_res.dat 2003-12-05 19:34:06.000000000 +0100 -@@ -8,7 +8,7 @@ - GV.fallbackOrientation: portrait - GV.swapLandscape: False - GV.autoCenter: True --GV.antialias: False -+GV.antialias: True - GV.respectDSC: True - GV.ignoreEOF: True - GV.confirmPrint: True diff --git a/package/x11/gv/gv.conf b/package/x11/gv/gv.conf deleted file mode 100644 index ee4354588..000000000 --- a/package/x11/gv/gv.conf +++ /dev/null @@ -1,31 +0,0 @@ -# --- ROCK-COPYRIGHT-NOTE-BEGIN --- -# -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# Please add additional copyright information _after_ the line containing -# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by -# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! -# -# ROCK Linux: rock-src/package/x11/gv/gv.conf -# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. A copy of the GNU General Public -# License can be found at Documentation/COPYING. -# -# Many people helped and are helping developing ROCK Linux. Please -# have a look at http://www.rocklinux.org/ and the Documentation/TEAM -# file for details. -# -# --- ROCK-COPYRIGHT-NOTE-END --- - -gv_main() { - cp doc/gv.man source - sed -i 's,/usr/local/,/usr/,' config.Unix - cd source; ./inc_2lit; cd .. -} - -preconf=gv_main -var_append instopt " " "install.man install.doc" - diff --git a/package/x11/gv/gv.desc b/package/x11/gv/gv.desc index 33b90e03b..f1fed20b0 100644 --- a/package/x11/gv/gv.desc +++ b/package/x11/gv/gv.desc @@ -36,8 +36,8 @@ [L] GPL [S] Stable -[V] 3.5.8 +[V] 3.6.2 [P] X -?---5---9 132.200 -[D] 2283370013 gv-3.5.8.tar.gz ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/ +[D] 354645246 gv-3.6.2.tar.gz http://ftp.gnu.org/gnu/gv/