[packages/perl-Term-Gnuplot] - fix format string error - rel 8

baggins baggins at pld-linux.org
Thu Jun 13 17:26:10 CEST 2013


commit a772a17a6aa1d72489a6d6ebb307ee07a405a38f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jun 13 17:25:58 2013 +0200

    - fix format string error
    - rel 8

 format-security.patch  | 11 +++++++++++
 perl-Term-Gnuplot.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-Term-Gnuplot.spec b/perl-Term-Gnuplot.spec
index 99158ba..569c00a 100644
--- a/perl-Term-Gnuplot.spec
+++ b/perl-Term-Gnuplot.spec
@@ -10,13 +10,14 @@ Summary:	Term::Gnuplot - lowlevel graphics using gnuplot drawing routines
 Summary(pl.UTF-8):	Term::Gnuplot - niskopoziomowa grafika przy użyciu funkcji rysujących gnuplota
 Name:		perl-Term-Gnuplot
 Version:	0.90380905
-Release:	7
+Release:	8
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	ceccd4e30deb6291ebecce176e715208
 Patch0:		%{name}-vga.patch
+Patch1:		format-security.patch
 URL:		http://search.cpan.org/dist/Term-Gnuplot/
 BuildRequires:	gd-devel
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -36,6 +37,7 @@ rozdzielczości przy użyciu niskopoziomowych funkcji gnuplota.
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..3019481
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- Term-Gnuplot-0.90380905/gnuterm/term/post.trm~	2002-09-04 00:41:04.000000000 +0200
++++ Term-Gnuplot-0.90380905/gnuterm/term/post.trm	2013-06-13 17:23:49.684105533 +0200
+@@ -1562,7 +1562,7 @@
+     if (!ps_common_portrait) {
+ 	fprintf(gpoutfile,"90 rotate\n0 %d translate\n", (int)(-PS_YMAX));
+     }
+-    fprintf(gpoutfile, psg1);
++    fprintf(gpoutfile, "%s", psg1);
+     if (ps_common_uses_fonts)
+ 	fprintf(gpoutfile, "(%s) findfont %d scalefont setfont\n",
+ 		ps_font, (t->v_char) );
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Term-Gnuplot.git/commitdiff/a772a17a6aa1d72489a6d6ebb307ee07a405a38f



More information about the pld-cvs-commit mailing list