rpms/tcpreplay/devel tcpreplay-3.4.3-cacheversion.patch, NONE, 1.1 tcpreplay.spec, 1.25, 1.26
bojan
bojan at fedoraproject.org
Tue Mar 16 04:31:43 UTC 2010
Author: bojan
Update of /cvs/pkgs/rpms/tcpreplay/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4064
Modified Files:
tcpreplay.spec
Added Files:
tcpreplay-3.4.3-cacheversion.patch
Log Message:
Fix bug #556813.
tcpreplay-3.4.3-cacheversion.patch:
cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE tcpreplay-3.4.3-cacheversion.patch ---
--- tcpreplay-3.4.3/src/common/cache.c.orig 2010-03-16 15:21:18.275045938 +1100
+++ tcpreplay-3.4.3/src/common/cache.c 2010-03-16 15:21:28.895081989 +1100
@@ -170,7 +170,7 @@
cache_header = (tcpr_cache_file_hdr_t *)
safe_malloc(sizeof(tcpr_cache_file_hdr_t));
strncpy(cache_header->magic, CACHEMAGIC, strlen(CACHEMAGIC));
- strncpy(cache_header->version, CACHEVERSION, strlen(CACHEMAGIC));
+ strncpy(cache_header->version, CACHEVERSION, strlen(CACHEVERSION));
cache_header->packets_per_byte = htons(CACHE_PACKETS_PER_BYTE);
cache_header->num_packets = htonll((u_int64_t)numpackets);
Index: tcpreplay.spec
===================================================================
RCS file: /cvs/pkgs/rpms/tcpreplay/devel/tcpreplay.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -p -r1.25 -r1.26
--- tcpreplay.spec 27 Jul 2009 05:40:25 -0000 1.25
+++ tcpreplay.spec 16 Mar 2010 04:31:43 -0000 1.26
@@ -7,13 +7,14 @@
Name: tcpreplay
Version: 3.4.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Replay captured network traffic
Group: Applications/Internet
License: BSD
URL: http://tcpreplay.synfin.net/trac/
Source: http://prdownloads.sourceforge.net/tcpreplay/tcpreplay-%{version}.tar.gz
+Patch1: tcpreplay-3.4.3-cacheversion.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{pcapdep} >= 0.8.0, tcpdump
@@ -31,6 +32,7 @@ capture files.
%prep
%setup -q
+%patch1 -p1 -b .cacheversion
%build
%configure --enable-dynamic-link \
@@ -65,6 +67,9 @@ capture files.
%{_bindir}/*
%changelog
+* Tue Mar 16 2010 Bojan Smojver <bojan at rexursive.com> 3.4.3-3
+- fix buffer overflow from bug #556813
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list