[packages/perl-Locale-Hebrew] - fix format string error - rel 2
baggins
baggins at pld-linux.org
Thu Jun 13 17:07:01 CEST 2013
commit 49532ae46b8aeaa735e0e376163eb2606c35723d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Jun 13 17:06:52 2013 +0200
- fix format string error
- rel 2
format-security.patch | 29 +++++++++++++++++++++++++++++
perl-Locale-Hebrew.spec | 10 ++++++----
2 files changed, 35 insertions(+), 4 deletions(-)
---
diff --git a/perl-Locale-Hebrew.spec b/perl-Locale-Hebrew.spec
index 2848f33..e8479e2 100644
--- a/perl-Locale-Hebrew.spec
+++ b/perl-Locale-Hebrew.spec
@@ -8,13 +8,14 @@
Summary: Locale::Hebrew - Bidirectional Hebrew support
Summary(pl.UTF-8): Locale::Hebrew - obsługa języka hebrajskiego z dwukierunkowym pismem
Name: perl-Locale-Hebrew
-Version: 1.04
-Release: 4
+Version: 1.05
+Release: 2
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUTRIJUS/Locale-Hebrew-%{version}.tar.gz
-# Source0-md5: 5b1c08e039886c0319a0c4ece6209064
+Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/Locale-Hebrew-%{version}.tar.gz
+# Source0-md5: 424209b23bf423f1923f9b24b5ae2179
+Patch0: format-security.patch
URL: http://search.cpan.org/dist/Locale-Hebrew/
%{?with_tests:BuildRequires: perl-Encode}
BuildRequires: perl-devel >= 1:5.8.0
@@ -38,6 +39,7 @@ Domyślnie eksportowana jest jedna funkcja - hebrewflip.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..ffec87b
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,29 @@
+--- Locale-Hebrew-1.05/bidi.c~ 2004-09-17 21:16:42.000000000 +0200
++++ Locale-Hebrew-1.05/bidi.c 2013-06-13 17:06:09.592637611 +0200
+@@ -1234,7 +1234,7 @@
+ }
+ pszTypes[ich] = 0;
+
+- fprintf(f, pszTypes);
++ fprintf(f, "%s", pszTypes);
+ }
+
+ void ShowTypes(FILE* f, int * types, int cch) {
+@@ -1245,7 +1245,7 @@
+ }
+ pszTypes[ich] = 0;
+
+- fprintf(f, pszTypes);
++ fprintf(f, "%s", pszTypes);
+ }
+
+ void ShowLevels(FILE* f, int * levels, int cch) {
+@@ -1256,7 +1256,7 @@
+ }
+ pszLevel[ich] = 0;
+
+- fprintf(f, pszLevel);
++ fprintf(f, "%s", pszLevel);
+ }
+
+ void usage(char *s) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Locale-Hebrew.git/commitdiff/49532ae46b8aeaa735e0e376163eb2606c35723d
More information about the pld-cvs-commit
mailing list