Nmap Development mailing list archives

Re: cppcheck on nmap


From: Reijo Tomperi <aggro80 () users sourceforge net>
Date: Thu, 17 Dec 2009 01:06:37 +0200

Hi,

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

--
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: