Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Nessus-Users
[Top] [All Lists]

Re: Turning on mem leak detection

Subject: Re: Turning on mem leak detection
Date: Wed, 27 Oct 2004 10:47:21 -0700
In nessusd 2.0.12 a leak can be fixed with the following patch: I suspect the same patch will be required in libnessus/arglists.c, but I haven't checked it yet.

==== nessus-core/nessusd/pluginscheduler.c#2 - nessus/nessus-core/nessusd/pluginscheduler.c ====
@@ -134,6 +134,15 @@
nc->occurences = 1;
nc->next = cache[h].next;
nc->prev = NULL;
+
+ /*
+ * If we are doubling up on hashes be sure to fix the prev pointer! Otherwise
+ * cache_dec() won't work properly later.
+ */
+ if (cache[h].next != NULL) {
+ cache[h].next->prev = nc;
+ }
+
cache[h].next = nc;


 return nc;

_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>