Nmap Development mailing list archives

Re: Bug


From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 13 May 2014 09:26:40 -0500

On 05/08/2014 11:56 AM, Justin Barker wrote:
Version: 6.46
Traceback (most recent call last):
   File "zenmapGUI\DiffCompare.pyo", line 201, in show_scan
TypeError: GtkTextBuffer.set_text() argument 1 must be string or read-only buffer, not NmapParserSAX

Simply, selected a report on the left side within Compare report. Instantly crashed afterwards.

Thank you,

Justin Barker

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Justin, Jason, and Beau,

Thanks for this crash reports. We fixed this in the development branch, but there is currently no release with the fix. Here is the patch (quite simple) if you can edit the Zenmap Python source:

--- a/zenmap/zenmapGUI/DiffCompare.py
+++ b/zenmap/zenmapGUI/DiffCompare.py
@@ -298,7 +298,7 @@ class ScanChooser(HIGVBox):
     def get_nmap_output(self):
"""Return the currently selected scan's output as a string, or None if
         no valid scan is selected."""
-        return self.parsed_scan
+        return self.parsed_scan.get_nmap_output()

     nmap_output = property(get_nmap_output)
     parsed_scan = property(get_parsed_scan)

Dan
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: