Nmap Development mailing list archives

Re: cppcheck on nmap


From: David Fifield <david () bamsoftware com>
Date: Fri, 18 Dec 2009 16:28:37 -0700

On Thu, Dec 17, 2009 at 01:06:37AM +0200, Reijo Tomperi wrote:
I am one of the Cppcheck developers and I noticed this on your mailing list:

here is a scan of cppcheck over Nmap 5.10BETA1:

[.\osscan2.cc:2942]: (error) Dangerous usage of erase
[.\output.cc:354]: (error) Dangerous usage of erase
[.\scan_engine.cc:1802]: (error) Dangerous usage of erase
[.\scan_engine.cc:1849]: (error) Dangerous usage of erase
[.\traceroute.cc:1253]: (error) Dangerous usage of erase

I'm posting this to inform you that all of these are false positives  
(Cppcheck assumed that vector was used, when list was used instead). I  
created a ticket about it for us:
http://sourceforge.net/apps/trac/cppcheck/ticket/1107

Thanks Reijo, that's good to know.

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


Current thread: