pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive Patch an out of bounds reads obta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82fed6fa878d
branches:  trunk
changeset: 651810:82fed6fa878d
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Thu May 14 14:54:55 2015 +0000

description:
Patch an out of bounds reads obtained from:
https://github.com/libarchive/libarchive/issues/502
https://github.com/libarchive/libarchive/commit/e6c9668f3202215ddb71617b41c19b6f05acf008
Bump PKGREVISION.

Reviewed by bsiegert@

diffstat:

 archivers/libarchive/Makefile.common                 |  3 ++-
 archivers/libarchive/files/libarchive/archive_read.c |  2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r b5e5a9aedfa3 -r 82fed6fa878d archivers/libarchive/Makefile.common
--- a/archivers/libarchive/Makefile.common      Thu May 14 13:53:19 2015 +0000
+++ b/archivers/libarchive/Makefile.common      Thu May 14 14:54:55 2015 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile.common,v 1.2 2015/02/08 00:14:33 wiz Exp $
+# $NetBSD: Makefile.common,v 1.3 2015/05/14 14:54:55 sevan Exp $
 # used by archivers/bsdtar/Makefile
 # used by archivers/libarchive/Makefile
 
 DISTNAME=      libarchive-3.1.2
+PKGREVISION=   1
 CATEGORIES=    archivers
 MASTER_SITES=  http://www.libarchive.org/downloads/
 DISTFILES=     # empty
diff -r b5e5a9aedfa3 -r 82fed6fa878d archivers/libarchive/files/libarchive/archive_read.c
--- a/archivers/libarchive/files/libarchive/archive_read.c      Thu May 14 13:53:19 2015 +0000
+++ b/archivers/libarchive/files/libarchive/archive_read.c      Thu May 14 14:54:55 2015 +0000
@@ -1394,6 +1394,8 @@
 {
        int64_t skipped;
 
+       if (request < 0)
+               return ARCHIVE_FATAL;
        if (request == 0)
                return 0;
 



Home | Main Index | Thread Index | Old Index