Nmap Development mailing list archives

Re: nmap 3.93 dumps core when exclude cidr netmask is less than 32


From: Ismail Donmez <ismail () uludag org tr>
Date: Wed, 16 Nov 2005 02:36:16 +0200

On Wednesday 16 November 2005 00:12, Adam wrote:
On Thu, 10 Nov 2005 nmapuser () globalmegahost com wrote:

[snip]

% nmap -n -sL --exclude 10.1.1.3/30 10.1.1.0/29

Starting nmap 3.93 ( http://www.insecure.org/nmap/ ) at 2005-11-10 15:10
MST Assertion failed: (targets_type == IPV6_ADDRESS), function
get_next_host, file TargetGroup.cc, line 429. Abort (core dumped)

[snip]

I rebuilt nmap with `-g3' so I could use debugging tools like gdb and
valgrind in hopes of finding where I should start in making a patch so
that networks expressed in cidr notion could properly be excluded.  While
I am still operating on the assumption that I may be using nmap's
--exclude incorrectly, I am also open to the possibility that nmap has a
bug and that fixing it may yield the result I desire.  In replaying the
above scenario with gdb I see the following output.

% ./nmap -n -sL --exclude 10.1.1.0/30 10.1.1.10/29

Must be a *BSD thing as it certainly works fine on Linux :

cartman@pardus ~ $ nmap -n -sL --exclude 10.1.1.3/30 10.1.1.0/29

Starting nmap 3.93 ( http://www.insecure.org/nmap/ ) at 2005-11-16 02:35 EET
Host 10.1.1.4 not scanned
Host 10.1.1.5 not scanned
Host 10.1.1.6 not scanned
Host 10.1.1.7 not scanned
Nmap finished: 4 IP addresses (0 hosts up) scanned in 0.105 seconds

Regards,
ismail


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


Current thread: