[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Segfault in _auditreduce_
From:       dexterclarke () Safe-mail ! net
Date:       2007-10-22 20:39:10
Message-ID: N1-veZSUWkeZs () Safe-mail ! net
[Download RAW message or body]

Patch for the issue:

--- auditreduce.c.orig  Mon Oct 22 21:32:07 2007
+++ auditreduce.c       Mon Oct 22 21:30:13 2007
@@ -719,7 +719,6 @@
                                if (n == NULL)
                                        usage("Incorrect event name");
                                p_evtype = *n;
-                               free(n);
                        }
                        SETOPT(opttochk, OPT_m);
                        break;


getauevnonam() returns a statically allocated event that the main
function then attempts to free() for some reason. This patch is against
6.2-RELEASE so it's probably already out of date.

--
dc
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic