[sqlite2] Solved build failures with "-Werror=format-security" (#1037335)

Robert Scheck robert at fedoraproject.org
Sun Dec 8 12:27:11 UTC 2013


commit 05d5ff24d304af44c6981b4937f218a2fff6ecdb
Author: Robert Scheck <robert at fedoraproject.org>
Date:   Sun Dec 8 13:27:08 2013 +0100

    Solved build failures with "-Werror=format-security" (#1037335)

 sqlite-2.8.17-format-security.patch |   15 +++++++++++++++
 sqlite2.spec                        |    7 ++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/sqlite-2.8.17-format-security.patch b/sqlite-2.8.17-format-security.patch
new file mode 100644
index 0000000..afa326a
--- /dev/null
+++ b/sqlite-2.8.17-format-security.patch
@@ -0,0 +1,15 @@
+Patch by Robert Scheck <robert at fedoraproject.org> for sqlite >= 2.8.17 which fixes
+the build failures if compiled with "-Werror=format-security". Further information
+can be found at https://bugzilla.redhat.com/show_bug.cgi?id=1037335
+
+--- sqlite-2.8.17/src/shell.c			2005-04-24 00:43:22.000000000 +0200
++++ sqlite-2.8.17/src/shell.c.format-security	2013-12-08 13:20:47.000000000 +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 ){
diff --git a/sqlite2.spec b/sqlite2.spec
index 5d09a71..f991717 100644
--- a/sqlite2.spec
+++ b/sqlite2.spec
@@ -3,7 +3,7 @@
 
 Name:           sqlite2
 Version:        2.8.17
-Release:        12%{?dist}
+Release:        13%{?dist}
 
 Summary:        Embeddable SQL engine in a C library
 Group:          System Environment/Libraries
@@ -18,6 +18,7 @@ Patch5:         sqlite-2.8.15-arch-double-differences.patch
 Patch6:         sqlite-2.8.17-test.patch
 Patch7:         sqlite-2.8.17-tcl.patch
 Patch8:         sqlite-2.8.17-ppc64.patch
+Patch9:         sqlite-2.8.17-format-security.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  ncurses-devel, readline-devel, %{_includedir}/tcl.h
@@ -71,6 +72,7 @@ This package contains tcl bindings for sqlite.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 sed -i.rpath 's!__VERSION__!%{version}!g' Makefile.in
 # Patch additional /usr/lib locations where we don't have $(libdir)
 # to substitute with.
@@ -125,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
 %{tcl_sitearch}/sqlite2/
 
 %changelog
+* Sun Dec 08 2013 Robert Scheck <robert at fedoraproject.org> 2.8.17-13
+- Solved build failures with "-Werror=format-security" (#1037335)
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.8.17-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list