Nmap Development mailing list archives

Re: cppcheck on nmap


From: Reijo Tomperi <aggro80 () users sourceforge net>
Date: Sat, 19 Dec 2009 01:54:12 +0200

David Fifield wrote:
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

The ticket is now fixed. These false positives do not show up anymore with the trunk version of Cppcheck.

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


Current thread: