pkg audit -F segfault

Phil Stone phil.stone at gmx.com
Wed Dec 11 02:53:27 UTC 2013


Hi,
I've just installed pkg-1.2.3 on FreeBSD 8.4-RELEASE-p6.

Running the command "pkg audit -F" causes a segfault:
# pkg audit -F
Vulnxml file up-to-date.
Segmentation fault (core dumped)
#

Implementing the following patch solves the issue:
--- audit_orig.c 2013-12-11 03:36:21.390625000 +0100
+++ audit.c 2013-12-11 03:36:59.796875000 +0100
@@ -206,9 +206,10 @@
 
        cleanup:
        unlink(tmp);
-       if (a != NULL)
+       if (a != NULL) {
                archive_read_close(a);
                archive_read_free(a);
+       }
        if (fd >= 0)
                close(fd);

Thanks in advance for your help.
Phil


More information about the freebsd-ports mailing list