Nmap Development mailing list archives

Re: 4.22SOC6 Crash With Connect() Scan


From: majek04 <majek04 () gmail com>
Date: Fri, 14 Sep 2007 22:34:07 +0200

On 9/14/07, David Fifield <david () bamsoftware com> wrote:
I was also able to reproduce this bug. It crashes during connect scan,
in scan_engine.cc:3050 in

static bool do_one_select_round(UltraScanInfo *USI, struct timeval *stime)
[...]
  for(hostI = USI->incompleteHosts.begin();
      hostI != USI->completedHosts.end() && numGoodSD < selectres;
[...]

Thanks for this. It helped me find the problem right away. The bug was
that the hostI iterator was being used to iterate over two separate
lists, which I guess is not allowed, but worked for me on Linux. I've
committed a fix.

SVN r5835 works for me. Thanks.

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: