mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Catch Zenmap's MemoryError (caused by large Nmap Output) and provide the user a more useful error message so that we get less of the out-of-memory "crash reports"
This commit is contained in:
parent
0066d3b24e
commit
2b30085d90
4 changed files with 57 additions and 15 deletions
|
|
@ -654,7 +654,10 @@ class ScanInterface(HIGVBox):
|
|||
warn_dialog.destroy()
|
||||
parsed.set_xml_is_temp(command.xml_is_temp)
|
||||
self.collect_umit_info(command, parsed)
|
||||
parsed.nmap_output = command.get_output()
|
||||
try:
|
||||
parsed.nmap_output = command.get_output()
|
||||
except MemoryError:
|
||||
self.scan_result.scan_result_notebook.nmap_output.nmap_output.show_large_output_message(command)
|
||||
self.update_ui()
|
||||
self.scans_store.finish_running_scan(command, parsed)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue