[packages/sqlite] - fix format string warning - rel 5

baggins baggins at pld-linux.org
Thu Dec 13 13:24:40 CET 2012


commit eb7556cf8a2f4c31cfd6d497e24bffa3f98f5195
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Dec 13 13:24:26 2012 +0100

    - fix format string warning
    - rel 5

 format-security.patch | 11 +++++++++++
 sqlite.spec           |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/sqlite.spec b/sqlite.spec
index 5280b54..0623a9b 100644
--- a/sqlite.spec
+++ b/sqlite.spec
@@ -6,13 +6,14 @@ Summary:	SQLite library
 Summary(pl.UTF-8):	Biblioteka SQLite
 Name:		sqlite
 Version:	2.8.17
-Release:	4
+Release:	5
 License:	LGPL
 Group:		Libraries
 # Source0Download: http://sqlite.org/download.html
 Source0:	http://sqlite.org/%{name}-%{version}.tar.gz
 # Source0-md5:	838dbac20b56d2c4292e98848505a05b
 Patch0:		%{name}-DESTDIR.patch
+Patch1:		format-security.patch
 URL:		http://sqlite.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -121,6 +122,7 @@ Pakiet zawiera statyczne biblioteki SQLite.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 find . -type d -name CVS | xargs %{__rm} -r
 
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..e1c426f
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- sqlite-2.8.17/src/shell.c~	2005-04-24 00:43:22.000000000 +0200
++++ sqlite-2.8.17/src/shell.c	2012-12-13 13:23:42.032107969 +0100
+@@ -692,7 +692,7 @@
+   }else
+ 
+   if( c=='h' && strncmp(azArg[0], "help", n)==0 ){
+-    fprintf(stderr,zHelp);
++    fprintf(stderr,"%s",zHelp);
+   }else
+ 
+   if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg>1 ){
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sqlite.git/commitdiff/eb7556cf8a2f4c31cfd6d497e24bffa3f98f5195



More information about the pld-cvs-commit mailing list