[pfstools] Patch for the #1037243 (-Werror=format-security) non-bug

Tomas Smetana tsmetana at fedoraproject.org
Mon Dec 9 13:05:20 UTC 2013


commit 4212a1cc9914d2ead84ed44cc928ccf3bc23094c
Author: Tomas Smetana <tsmetana at redhat.com>
Date:   Mon Dec 9 14:05:15 2013 +0100

    Patch for the #1037243 (-Werror=format-security) non-bug

 pfstools-1.8.5-wformat.patch |   12 ++++++++++++
 pfstools.spec                |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/pfstools-1.8.5-wformat.patch b/pfstools-1.8.5-wformat.patch
new file mode 100644
index 0000000..6039537
--- /dev/null
+++ b/pfstools-1.8.5-wformat.patch
@@ -0,0 +1,12 @@
+diff -up pfstools-1.8.5/src/pfs/pfs.cpp.wformat pfstools-1.8.5/src/pfs/pfs.cpp
+--- pfstools-1.8.5/src/pfs/pfs.cpp.wformat	2013-12-06 12:46:04.196939099 +0100
++++ pfstools-1.8.5/src/pfs/pfs.cpp	2013-12-06 12:47:58.167480681 +0100
+@@ -525,7 +525,7 @@ static void writeTags( const TagContaine
+   TagList::const_iterator it;
+   fprintf( out, "%d" PFSEOL, tags->getSize() );
+   for( it = tags->tagsBegin(); it != tags->tagsEnd(); it++ ) {
+-    fprintf( out, (const char*)(it->c_str()) );
++    fprintf( out, "%s", (const char*)(it->c_str()) );
+     fprintf( out, PFSEOL );
+   }
+ }
diff --git a/pfstools.spec b/pfstools.spec
index d84521b..41fe8de 100644
--- a/pfstools.spec
+++ b/pfstools.spec
@@ -1,6 +1,6 @@
 Name:		pfstools
 Version:	1.8.5
-Release:	13%{?dist}
+Release:	14%{?dist}
 Summary:	Programs for handling high-dynamic range images
 
 Group:		Applications/Multimedia
@@ -12,6 +12,7 @@ Patch2:		pfstools-1.7.0-bf1.patch
 Patch3:		pfstools-1.7.0-gcc44.patch
 Patch4:		pfstools-1.7-strcmp.patch
 Patch5:		pfstools-1.7.0-debuginfo.patch
+Patch6:		pfstools-1.8.5-wformat.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	automake
@@ -124,6 +125,7 @@ etc., for developing programs which can handle HDR graphics files.
 %patch3 -p1 -b .gcc44
 %patch4 -p1 -b .strcmp
 %patch5 -p1 -b .debuginfo
+%patch6 -p1 -b .wformat
 # Remove the following once the patches for configure.ac and Makefile.am
 # are not necessary anymore.
 autoreconf -ifv
@@ -281,6 +283,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/pfs-1.2
 
 %changelog
+* Fri Dec 06 2013 Tomas Smetana <tsmetana at redhat.com> - 1.8.5-14
+- Patch for the #1037243 (-Werror=format-security) non-bug
+
 * Thu Nov 28 2013 Rex Dieter <rdieter at fedoraproject.org> 1.8.5-13
 - rebuild (openexr)
 


More information about the scm-commits mailing list