Segfault in _auditreduce_

dexterclarke at Safe-mail.net dexterclarke at Safe-mail.net
Mon Oct 22 13:40:04 PDT 2007


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


More information about the freebsd-hackers mailing list