[ettercap/f17] Fix curses crash.

Jon Ciesla limb at fedoraproject.org
Wed Jan 23 17:04:44 UTC 2013


commit 3cf206dc42fef4d9e299eeee5b10a26b3632f15b
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Wed Jan 23 11:02:01 2013 -0600

    Fix curses crash.

 ettercap-curses-crash.patch |   20 ++++++++++++++++++++
 ettercap.spec               |    7 ++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/ettercap-curses-crash.patch b/ettercap-curses-crash.patch
new file mode 100644
index 0000000..0960f44
--- /dev/null
+++ b/ettercap-curses-crash.patch
@@ -0,0 +1,20 @@
+--- src/ec_scan.c~	2013-01-23 10:52:17.000000000 -0600
++++ src/ec_scan.c	2013-01-23 10:53:16.654169961 -0600
+@@ -118,7 +118,7 @@
+ 	scan_thread(NULL);
+ #else
+    /* check the type of UI we are running under... */
+-   if (GBL_UI->type == UI_TEXT || GBL_UI->type == UI_DAEMONIZE)
++   if (GBL_UI->type == UI_TEXT || GBL_UI->type == UI_DAEMONIZE || GBL_UI->type == UI_CURSES)
+       /* in text mode and demonized call the function directly */
+       scan_thread(NULL);
+    else 
+@@ -145,7 +145,7 @@
+    ts.tv_nsec = 0;
+ 
+    /* in text mode and demonized this function should NOT be a thread */
+-   if (GBL_UI->type == UI_TEXT || GBL_UI->type == UI_DAEMONIZE)
++   if (GBL_UI->type == UI_TEXT || GBL_UI->type == UI_DAEMONIZE || GBL_UI->type == UI_CURSES )
+       threadize = 0;
+ 
+ #ifdef OS_MINGW
diff --git a/ettercap.spec b/ettercap.spec
index cc4ce60..4710b83 100644
--- a/ettercap.spec
+++ b/ettercap.spec
@@ -1,7 +1,7 @@
 %define _hardened_build 1
 Name: ettercap
 Version: 0.7.5
-Release: 3%{?dist}.1.20120906gitc796e5
+Release: 4%{?dist}.1.20120906gitc796e5
 Summary: Network traffic sniffer/analyser, NCURSES interface version
 Group: Applications/Internet
 License: GPLv2+
@@ -19,6 +19,7 @@ Patch8: ettercap-NG-0.7.3-license-fix.patch
 Patch9: ettercap-0.7.4-CVE-2010-3843.patch
 Patch10: ettercap-0.7.5-dhcp-spoof.patch
 Patch11: ettercap-0.7.5.1-CVE-2013-0722.patch
+Patch12: ettercap-curses-crash.patch
 
 BuildRoot: %{_tmppath}/%{name}-NG-%{version}-%{release}-root%(%{__id_u} -n)
 
@@ -71,6 +72,7 @@ analysis.
 %patch9 -p0
 %patch10 -p0
 %patch11 -p1
+%patch12 -p0
 
 %build
 mkdir build
@@ -134,6 +136,9 @@ rm -rf %{buildroot}
 %{_datadir}/icons/hicolor/32x32/apps/ettercap.png
 
 %changelog
+* Wed Jan 23 2013 Jon Ciesla <limburgher at gmail.com> - 0.7.5-4.1.20120906gitc796e5
+- Patch to fix ncurses crash, BZ 860520.
+
 * Mon Jan 14 2013 Jon Ciesla <limburgher at gmail.com> - 0.7.5-3.1.20120906gitc796e5
 - Patch for CVE-2013-0722.
 


More information about the scm-commits mailing list