[nuttcp] provide fix for format-string issue
Nikos Mavrogiannopoulos
nmav at fedoraproject.org
Fri Aug 1 11:51:10 UTC 2014
commit babc0a987583f402d432315cf0bc7af56a2ef295
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date: Fri Aug 1 13:48:45 2014 +0200
provide fix for format-string issue
nuttcp-6.1.2-format.patch | 12 ++++++++++++
nuttcp.spec | 3 +++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/nuttcp-6.1.2-format.patch b/nuttcp-6.1.2-format.patch
new file mode 100644
index 0000000..d7d8d5a
--- /dev/null
+++ b/nuttcp-6.1.2-format.patch
@@ -0,0 +1,12 @@
+diff -ur nuttcp-6.1.2.orig/nuttcp-6.1.2.c nuttcp-6.1.2/nuttcp-6.1.2.c
+--- nuttcp-6.1.2.orig/nuttcp-6.1.2.c 2009-01-28 20:29:21.000000000 +0100
++++ nuttcp-6.1.2/nuttcp-6.1.2.c 2014-08-01 13:46:19.708850909 +0200
+@@ -5410,7 +5410,7 @@
+ exit(0);
+
+ usage:
+- fprintf(stdout,Usage);
++ fprintf(stdout,"%s",Usage);
+ exit(1);
+ }
+
diff --git a/nuttcp.spec b/nuttcp.spec
index 2486e93..db2a487 100644
--- a/nuttcp.spec
+++ b/nuttcp.spec
@@ -5,6 +5,7 @@ Source0: ftp://ftp.lcp.nrl.navy.mil/pub/nuttcp/%{name}-%{version}.tar.bz2
Source1: %{name}@.service
Source2: %{name}.socket
Patch1: nuttcp-6.1.2-tcp-win-crash.patch
+Patch2: nuttcp-6.1.2-format.patch
URL: ftp://ftp.lcp.nrl.navy.mil/pub/nuttcp/
Summary: Tool for testing TCP connections
Group: Applications/Internet
@@ -31,6 +32,7 @@ CPU utilization, and loss percentage (for UDP transfers).
%setup -q
%patch1 -p1 -b .tcp-adv-win
+%patch2 -p1 -b .format
#sed -i -e "s,/usr/local/bin,%{_bindir},g;" \
# -e "s,disable\(.*\)no,disable\t\t= yes,g" xinetd.d/*
@@ -83,6 +85,7 @@ fi
%changelog
* Fri Aug 01 2014 Nikos Mavrogiannopoulos <nmav at redhat.com> - 6.1.2-11
- provide fix for crash when /proc/sys/net/ipv4/tcp_adv_win_scale didn't exist (#887173)
+- provide fix for format-string issue
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.1.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list