[sipp] Fix FTBFS with -Werror=format-security (#1037326, #1107309)

Yaakov Selkowitz yselkowitz at fedoraproject.org
Tue Jul 8 04:59:56 UTC 2014


commit 0b66c0bda2fc407aa587232e6706dcefa7774981
Author: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Date:   Mon Jun 30 21:55:22 2014 -0500

    Fix FTBFS with -Werror=format-security (#1037326, #1107309)

 sipp-3.3-format-security.patch |   13 +++++++++++++
 sipp.spec                      |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/sipp-3.3-format-security.patch b/sipp-3.3-format-security.patch
new file mode 100644
index 0000000..5ae53a3
--- /dev/null
+++ b/sipp-3.3-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/stat.cpp b/stat.cpp
+index d13afd7..69724c2 100644
+--- a/stat.cpp
++++ b/stat.cpp
+@@ -1148,7 +1148,7 @@ char* CStat::sRepartitionInfo(T_dynamicalRepartition * tabRepartition,
+     {
+       // if a repartition is present, this field match the repartition name
+       repartitionInfo = (char *)realloc(repartitionInfo, dlen + 1);
+-      sprintf(repartitionInfo, stat_delimiter);
++      sprintf(repartitionInfo, "%s", stat_delimiter);
+       for(int i=0; i<(sizeOfTab-1); i++)
+         {   
+           sprintf(buffer, "%lu%s", tabRepartition[i].nbInThisBorder, stat_delimiter);
diff --git a/sipp.spec b/sipp.spec
index 2955bbe..026cdaa 100644
--- a/sipp.spec
+++ b/sipp.spec
@@ -1,13 +1,14 @@
 Summary:	SIP test tool / traffic generator
 Name:		sipp
 Version:	3.3
-Release:	4%{?dist}
+Release:	5%{?dist}
 License:	GPLv2+
 Group:		Applications/Communications
 URL:		http://sipp.sourceforge.net/
 Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz
 Source1:	http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz.asc
 Patch1:		sipp-0001-Fix-for-outdated-autoconf-in-RHEL5.patch
+Patch2:		sipp-3.3-format-security.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:	ncurses-devel
@@ -33,6 +34,7 @@ retransmission management and dynamically adjustable call rates.
 %if 0%{?el5}
 %patch1 -p1 -b .old_autoconf
 %endif
+%patch2 -p1 -b .format
 
 
 %build
@@ -59,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Jun 30 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 3.3-5
+- Fix FTBFS with -Werror=format-security (#1037326, #1107309)
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list