pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/file SECURITY: add patch for denial-of-servic...
details: https://anonhg.NetBSD.org/pkgsrc/rev/411f08ce592f
branches: trunk
changeset: 652102:411f08ce592f
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sat May 23 13:11:07 2015 +0000
description:
SECURITY: add patch for denial-of-service vulnerability. From Matthias
Ferdinand via pkgsrc-users. Bump PKGREVISION.
diffstat:
sysutils/file/Makefile | 3 ++-
sysutils/file/distinfo | 3 ++-
sysutils/file/patches/patch-src_softmagic.c | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 543c8be253db -r 411f08ce592f sysutils/file/Makefile
--- a/sysutils/file/Makefile Sat May 23 12:09:56 2015 +0000
+++ b/sysutils/file/Makefile Sat May 23 13:11:07 2015 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.34 2015/03/22 09:48:51 bsiegert Exp $
+# $NetBSD: Makefile,v 1.35 2015/05/23 13:11:07 bsiegert Exp $
DISTNAME= file-5.22
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.astron.com/pub/file/
diff -r 543c8be253db -r 411f08ce592f sysutils/file/distinfo
--- a/sysutils/file/distinfo Sat May 23 12:09:56 2015 +0000
+++ b/sysutils/file/distinfo Sat May 23 13:11:07 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2015/03/27 18:57:43 bsiegert Exp $
+$NetBSD: distinfo,v 1.23 2015/05/23 13:11:07 bsiegert Exp $
SHA1 (file-5.22.tar.gz) = 20fa06592291555f2b478ea2fb70b53e9e8d1f7c
RMD160 (file-5.22.tar.gz) = 73b5e5c128a6ecb2b870590728cc9013fe0c9dbb
@@ -6,3 +6,4 @@
SHA1 (patch-aa) = d3aa3667e3d28ac1268b83de2de372ba083705fc
SHA1 (patch-src_compress.c) = 63407a3103bb1e77a5c8f1a5e859eb884ad55b3a
SHA1 (patch-src_fsmagic.c) = ee770cf37dfdfbc5a7c123d2691312610b76e76e
+SHA1 (patch-src_softmagic.c) = 5952a49b75b1a6968179cd61f28e7731caeb3e17
diff -r 543c8be253db -r 411f08ce592f sysutils/file/patches/patch-src_softmagic.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-src_softmagic.c Sat May 23 13:11:07 2015 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_softmagic.c,v 1.1 2015/05/23 13:11:07 bsiegert Exp $
+
+contains fix from
+https://github.com/file/file/commit/3046c231e1a2fcdd5033bea0603c23f435a00bd7
+
+--- src/softmagic.c.orig 2015-01-01 17:07:34.000000000 +0000
++++ src/softmagic.c
+@@ -1116,10 +1116,8 @@ mcopy(struct magic_set *ms, union VALUET
+ bytecnt = m->str_range;
+ }
+
+- if (bytecnt == 0)
+- bytecnt = 8192;
+- if (bytecnt > nbytes)
+- bytecnt = nbytes;
++ if (bytecnt == 0 || bytecnt > nbytes - offset)
++ bytecnt = nbytes - offset;
+
+ buf = RCAST(const char *, s) + offset;
+ end = last = RCAST(const char *, s) + bytecnt;
Home |
Main Index |
Thread Index |
Old Index