rpms/mtr/devel mtr-0.71-underflow.patch, NONE, 1.1 mtr.spec, 1.35, 1.36
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue May 30 08:48:05 UTC 2006
Author: mmaslano
Update of /cvs/dist/rpms/mtr/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv14222
Modified Files:
mtr.spec
Added Files:
mtr-0.71-underflow.patch
Log Message:
- /* impossible? if( totusec < 0 ) totusec = 0 */;
-
+ /* sometimes < 0 */
+ totusec = abs(totusec);
mtr-0.71-underflow.patch:
net.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
--- NEW FILE mtr-0.71-underflow.patch ---
--- mtr-0.71/net.c.fix 2006-03-24 07:37:17.000000000 +0100
+++ mtr-0.71/net.c 2006-05-30 08:52:50.000000000 +0200
@@ -354,8 +354,9 @@
totusec = (now.tv_sec - sequence[seq].time.tv_sec ) * 1000000 +
(now.tv_usec - sequence[seq].time.tv_usec);
- /* impossible? if( totusec < 0 ) totusec = 0 */;
-
+ /* sometimes < 0 */
+ totusec = abs(totusec);
+
if ( addrcmp( (void *) &(host[index].addr),
(void *) &unspec_addr, af ) == 0 ) {
// should be out of if as addr can change
Index: mtr.spec
===================================================================
RCS file: /cvs/dist/rpms/mtr/devel/mtr.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- mtr.spec 24 Mar 2006 09:49:41 -0000 1.35
+++ mtr.spec 30 May 2006 08:47:56 -0000 1.36
@@ -1,7 +1,7 @@
Summary: A network diagnostic tool.
Name: mtr
Version: 0.71
-Release: 1
+Release: 2
Epoch: 2
Group: Applications/Internet
License: GPL
@@ -11,6 +11,7 @@
Source2: xmtr.pam
Patch1: mtr-0.69-CVE-2002-0497.patch
Patch2: mtr-0.69-format.patch
+Patch3: mtr-0.71-underflow.patch
BuildRequires: ncurses-devel gtk2-devel
Buildroot: %{_tmppath}/%{name}-%{version}-root
@@ -35,6 +36,7 @@
%setup -q
%patch1 -p1 -b .CVE-2002-0497
%patch2 -p1 -b .format
+%patch3 -p1 -b .underflow
%build
%configure --enable-gtk2
@@ -91,6 +93,9 @@
%{_datadir}/pixmaps/mtr_icon.xpm
%changelog
+* Tue May 30 2006 Marcela Maslanova <mmaslano at redhat.com> - 2:0.71-2
+- underflow solved
+
* Fri Mar 24 2006 Miroslav Lichvar <mlichvar at redhat.com> - 2:0.71-1
- update to mtr-0.71
More information about the fedora-cvs-commits
mailing list