Nmap Development mailing list archives

Re: Bringing CPE to NSE


From: Henri Doreau <henri.doreau () greenbone net>
Date: Thu, 12 Jan 2012 18:20:19 +0100

Hello David,

thanks a lot for testing. I did some more investigations about the
leak and finally managed to fix it, I think. Actually my patch keeps
MatchDetails untouched and even better, it doesn't introduce the leak:
I can reproduce it without the patch using the memleak.nse script
attached.

The port->service structure wasn't free()'d in
PortList::setServiceProbeResults(). I've added the free() statements
to my patch (attached).

Does the implemented API to access CPEs from within NSE corresponds to
what you had in mind?

Regards.

-- 
Henri

Attachment: cpe_nse.diff
Description:

Attachment: memleak.nse
Description:

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

Current thread: