Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 21:53:16 -0500
From:      "Phil Stone" <phil.stone@gmx.com>
To:        freebsd-ports@freebsd.org
Subject:   pkg audit -F segfault
Message-ID:  <20131211025317.251590@gmx.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131211025317.251590>