Nmap Development mailing list archives

Re: found a resource leak in file nmap-5.0/libpap/pcap-dlpi.c


From: David Fifield <david () bamsoftware com>
Date: Sat, 18 Jul 2009 22:48:24 -0600

On Fri, Jul 17, 2009 at 10:09:45AM +0200, Martin Ettl wrote:
i have checked the sources of nmap-5.00 with the static code analyis
tool cppcheck (http://cppcheck.wiki.sourceforge.net/). It found a
resource leak in file nmap-5.0/libpap/pcap-dlpi.c at line 1097 in
function pcap_platform_finddevs(...).

The tool prints the following output:

/nmap-5.00/libpcap/pcap-dlpi.c,1097,error,Resource leak: fd

Thanks for the report. It is a real leak. libpcap is an outside project
whose source is included with Nmap. It would help if you could check if
this problem exists in a current version of libpcap, and if so, report
it to the developers.

http://www.tcpdump.org/#needs

David Fifield

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


Current thread: