[wireshark] fix sctp bytes graph crash

Peter Hatina phatina at fedoraproject.org
Wed Sep 4 09:10:19 UTC 2013


commit 629325b5b032f6f328b87a262ca962b3bcce68a1
Author: Peter Hatina <phatina at redhat.com>
Date:   Wed Sep 4 10:14:59 2013 +0200

    fix sctp bytes graph crash

 wireshark-1.8.x-sctp-bytes-graph-crash.patch |   15 +++++++++++++++
 wireshark.spec                               |    7 ++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/wireshark-1.8.x-sctp-bytes-graph-crash.patch b/wireshark-1.8.x-sctp-bytes-graph-crash.patch
new file mode 100644
index 0000000..5915d42
--- /dev/null
+++ b/wireshark-1.8.x-sctp-bytes-graph-crash.patch
@@ -0,0 +1,15 @@
+diff --git a/ui/gtk/sctp_byte_graph_dlg.c b/ui/gtk/sctp_byte_graph_dlg.c
+index 0749342..4cd74c6 100644
+--- a/ui/gtk/sctp_byte_graph_dlg.c
++++ b/ui/gtk/sctp_byte_graph_dlg.c
+@@ -1145,9 +1145,8 @@ on_button_release_event (GtkWidget *widget _U_, GdkEventButton *event, gpointer
+ 			tmptsn =(tsn_t*)(tsnlist->data);
+ 			tfirst = tsn->secs + tsn->usecs/1000000.0;
+ 
+-			while (tsnlist)
++			for (tsnlist = g_list_previous(tsnlist); tsnlist; tsnlist = g_list_previous(tsnlist))
+ 			{
+-				tsnlist = g_list_previous(tsnlist);
+ 				tsn = (tsn_t*) (tsnlist->data);
+ 				if (tsn->secs+tsn->usecs/1000000.0<x_value)
+ 				{
diff --git a/wireshark.spec b/wireshark.spec
index a489989..d734169 100644
--- a/wireshark.spec
+++ b/wireshark.spec
@@ -21,7 +21,7 @@
 Summary:	Network traffic analyzer
 Name:		wireshark
 Version:	1.10.0
-Release:	8%{?dist}
+Release:	9%{?dist}
 License:	GPL+
 Group:		Applications/Internet
 Source0:	http://wireshark.org/download/src/%{name}-%{version}.tar.bz2
@@ -42,6 +42,7 @@ Patch5:		wireshark-1.6.0-soname.patch
 Patch6:		wireshark-1.8.x-pod2man-encoding.patch
 Patch7:		wireshark-1.8.x-flow-graph-crash.patch
 Patch8:		wireshark-1.8.x-dcom-string-overrun.patch
+Patch9:		wireshark-1.8.x-sctp-bytes-graph-crash.patch
 
 Url:		http://www.wireshark.org/
 BuildRequires:	libpcap-devel >= 0.9
@@ -143,6 +144,7 @@ and plugins.
 %patch6 -p1 -b .pod2man
 %patch7 -p1 -b .flow-graph-crash
 %patch8 -p1 -b .dcom-overrun
+%patch9 -p1 -b .sctp-bytes-graph-crash
 
 %build
 %ifarch s390 s390x sparcv9 sparc64
@@ -370,6 +372,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/aclocal/*
 
 %changelog
+* Wed Sep 04 2013 Peter Hatina <phatina at redhat.com> - 1.10.0-9
+- fix sctp bytes graph crash
+
 * Wed Sep 04 2013 Peter Hatina <phatina at redhat.com> - 1.10.0-8
 - fix string overrun in plugins/profinet
 


More information about the scm-commits mailing list