diff options
author | wiz <wiz> | 2016-06-19 20:40:48 +0000 |
---|---|---|
committer | wiz <wiz> | 2016-06-19 20:40:48 +0000 |
commit | cea29c7c32f798db69a533834126afc1b0d0dbbc (patch) | |
tree | 81ab8354fe30b15ea25bf38e05afa46cf455209a /devel | |
parent | 7ac80c3e33a49024f5ae13838c8d7ba162d117b0 (diff) | |
download | pkgsrc-cea29c7c32f798db69a533834126afc1b0d0dbbc.tar.gz |
Updated pcre to 8.39.
Release 8.39 14-June-2016
-------------------------
Some appropriate PCRE2 JIT improvements have been retro-fitted to PCRE1. Apart
from that, this is another bug-fix release. Note that this library (now called
PCRE1) is now being maintained for bug fixes only. New projects are advised to
use the new PCRE2 libraries.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pcre/Makefile | 6 | ||||
-rw-r--r-- | devel/pcre/distinfo | 13 | ||||
-rw-r--r-- | devel/pcre/patches/patch-pcre_compile.c | 75 | ||||
-rw-r--r-- | devel/pcre/patches/patch-pcre_internal.h | 25 | ||||
-rw-r--r-- | devel/pcre/patches/patch-pcreposix.c | 26 |
5 files changed, 7 insertions, 138 deletions
diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile index 12cb348f31b..0f7f031ac0b 100644 --- a/devel/pcre/Makefile +++ b/devel/pcre/Makefile @@ -1,8 +1,6 @@ -# $NetBSD: Makefile,v 1.79 2016/03/22 19:38:15 tez Exp $ - -DISTNAME= pcre-8.38 -PKGREVISION= 2 +# $NetBSD: Makefile,v 1.80 2016/06/19 20:40:48 wiz Exp $ +DISTNAME= pcre-8.39 CATEGORIES= devel MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ \ ${MASTER_SITE_SOURCEFORGE:=pcre/} diff --git a/devel/pcre/distinfo b/devel/pcre/distinfo index d51b2d5cc15..4ea12107f70 100644 --- a/devel/pcre/distinfo +++ b/devel/pcre/distinfo @@ -1,12 +1,9 @@ -$NetBSD: distinfo,v 1.60 2016/03/22 19:38:15 tez Exp $ +$NetBSD: distinfo,v 1.61 2016/06/19 20:40:48 wiz Exp $ -SHA1 (pcre-8.38.tar.bz2) = ae84e3b3ef0764788ce33b1adeff1add938126e1 -RMD160 (pcre-8.38.tar.bz2) = eba6da5ef34780f63f8b96c60bd70ac197df3b52 -SHA512 (pcre-8.38.tar.bz2) = ad3412ceee8f992787a3e7cbe0155ffba67affd4b2dfece6c4501dc8d2012f52dcc1ee1f56759362e04bbbd10ea9370b3e46f238e2f75005cb69f6c8439e52c0 -Size (pcre-8.38.tar.bz2) = 1562265 bytes +SHA1 (pcre-8.39.tar.bz2) = 5e38289fd1b4ef3e8426f31a01e34b6924d80b90 +RMD160 (pcre-8.39.tar.bz2) = bd3353494b85f184ebe3ba0de55584c3b9e74658 +SHA512 (pcre-8.39.tar.bz2) = 8b0f14ae5947c4b2d74876a795b04e532fd71c2479a64dbe0ed817e7c7894ea3cae533413de8c17322d305cb7f4e275d72b43e4e828eaca77dc4bcaf04529cf6 +Size (pcre-8.39.tar.bz2) = 1560758 bytes SHA1 (patch-aa) = ed20cfb5ca7b1e620e368c8e41a7f691d6f93282 SHA1 (patch-ab) = 0b8fbde09c27e2716e5bfa32abce8ee4a79fb7fb SHA1 (patch-doc_pcredemo.3) = 90f9b3a021f58973149d839735d40c5e2e245912 -SHA1 (patch-pcre_compile.c) = 71ab3ebc517dc7c1fe74c447e0c2b1391c1403c7 -SHA1 (patch-pcre_internal.h) = 0005aded75cb7e68e1a271ed6f64174a5343c94b -SHA1 (patch-pcreposix.c) = 39ed9f8eb3fba1de64cbeae1fd8ff7ea88a383e2 diff --git a/devel/pcre/patches/patch-pcre_compile.c b/devel/pcre/patches/patch-pcre_compile.c deleted file mode 100644 index 4907cc5c601..00000000000 --- a/devel/pcre/patches/patch-pcre_compile.c +++ /dev/null @@ -1,75 +0,0 @@ -$NetBSD: patch-pcre_compile.c,v 1.2 2016/03/22 19:38:15 tez Exp $ - -Fix for CVE-2016-1283 from - http://vcs.pcre.org/pcre?view=revision&revision=1636 - -Fix for CVE-2016-3191 from - http://vcs.pcre.org/pcre?view=revision&revision=1631 - ---- pcre_compile.c.orig 2015-11-23 12:37:21.000000000 +0000 -+++ pcre_compile.c -@@ -6,7 +6,7 @@ - and semantics are as close as possible to those of the Perl 5 language. - - Written by Philip Hazel -- Copyright (c) 1997-2014 University of Cambridge -+ Copyright (c) 1997-2016 University of Cambridge - - ----------------------------------------------------------------------------- - Redistribution and use in source and binary forms, with or without -@@ -560,6 +560,7 @@ static const char error_texts[] = - /* 85 */ - "parentheses are too deeply nested (stack check)\0" - "digits missing in \\x{} or \\o{}\0" -+ "regular expression is too complicated\0" - ; - - /* Table to identify digits and hex digits. This is used when compiling -@@ -4591,7 +4592,8 @@ for (;; ptr++) - if (code > cd->start_workspace + cd->workspace_size - - WORK_SIZE_SAFETY_MARGIN) /* Check for overrun */ - { -- *errorcodeptr = ERR52; -+ *errorcodeptr = (code >= cd->start_workspace + cd->workspace_size)? -+ ERR52 : ERR87; - goto FAILED; - } - -@@ -6604,8 +6606,21 @@ for (;; ptr++) - cd->had_accept = TRUE; - for (oc = cd->open_caps; oc != NULL; oc = oc->next) - { -- *code++ = OP_CLOSE; -- PUT2INC(code, 0, oc->number); -+ if (lengthptr != NULL) -+ { -+#ifdef COMPILE_PCRE8 -+ *lengthptr += 1 + IMM2_SIZE; -+#elif defined COMPILE_PCRE16 -+ *lengthptr += 2 + IMM2_SIZE; -+#elif defined COMPILE_PCRE32 -+ *lengthptr += 4 + IMM2_SIZE; -+#endif -+ } -+ else -+ { -+ *code++ = OP_CLOSE; -+ PUT2INC(code, 0, oc->number); -+ } - } - setverb = *code++ = - (cd->assert_depth > 0)? OP_ASSERT_ACCEPT : OP_ACCEPT; -@@ -7274,7 +7289,12 @@ for (;; ptr++) - so far in order to get the number. If the name is not found, leave - the value of recno as 0 for a forward reference. */ - -- else -+ /* This patch (removing "else") fixes a problem when a reference is -+ to multiple identically named nested groups from within the nest. -+ Once again, it is not the "proper" fix, and it results in an -+ over-allocation of memory. */ -+ -+ /* else */ - { - ng = cd->named_groups; - for (i = 0; i < cd->names_found; i++, ng++) diff --git a/devel/pcre/patches/patch-pcre_internal.h b/devel/pcre/patches/patch-pcre_internal.h deleted file mode 100644 index 00a6da49e1b..00000000000 --- a/devel/pcre/patches/patch-pcre_internal.h +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: patch-pcre_internal.h,v 1.1 2016/03/22 19:38:15 tez Exp $ - -Fix for CVE-2016-3191 from - http://vcs.pcre.org/pcre?view=revision&revision=1631 - ---- pcre_internal.h.orig 2016-03-22 19:14:14.468718400 +0000 -+++ pcre_internal.h -@@ -7,7 +7,7 @@ - and semantics are as close as possible to those of the Perl 5 language. - - Written by Philip Hazel -- Copyright (c) 1997-2014 University of Cambridge -+ Copyright (c) 1997-2016 University of Cambridge - - ----------------------------------------------------------------------------- - Redistribution and use in source and binary forms, with or without -@@ -2289,7 +2289,7 @@ enum { ERR0, ERR1, ERR2, ERR3, ERR4, - ERR50, ERR51, ERR52, ERR53, ERR54, ERR55, ERR56, ERR57, ERR58, ERR59, - ERR60, ERR61, ERR62, ERR63, ERR64, ERR65, ERR66, ERR67, ERR68, ERR69, - ERR70, ERR71, ERR72, ERR73, ERR74, ERR75, ERR76, ERR77, ERR78, ERR79, -- ERR80, ERR81, ERR82, ERR83, ERR84, ERR85, ERR86, ERRCOUNT }; -+ ERR80, ERR81, ERR82, ERR83, ERR84, ERR85, ERR86, ERR87, ERRCOUNT }; - - /* JIT compiling modes. The function list is indexed by them. */ - diff --git a/devel/pcre/patches/patch-pcreposix.c b/devel/pcre/patches/patch-pcreposix.c deleted file mode 100644 index 4b5c03c4acf..00000000000 --- a/devel/pcre/patches/patch-pcreposix.c +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-pcreposix.c,v 1.1 2016/03/22 19:38:15 tez Exp $ - -Fix for CVE-2016-3191 from - http://vcs.pcre.org/pcre?view=revision&revision=1631 - ---- pcreposix.c.orig 2016-03-22 19:29:47.648202900 +0000 -+++ pcreposix.c -@@ -6,7 +6,7 @@ - and semantics are as close as possible to those of the Perl 5 language. - - Written by Philip Hazel -- Copyright (c) 1997-2014 University of Cambridge -+ Copyright (c) 1997-2016 University of Cambridge - - ----------------------------------------------------------------------------- - Redistribution and use in source and binary forms, with or without -@@ -173,7 +173,8 @@ static const int eint[] = { - REG_BADPAT, /* group name must start with a non-digit */ - /* 85 */ - REG_BADPAT, /* parentheses too deeply nested (stack check) */ -- REG_BADPAT /* missing digits in \x{} or \o{} */ -+ REG_BADPAT, /* missing digits in \x{} or \o{} */ -+ REG_BADPAT /* pattern too complicated */ - }; - - /* Table of texts corresponding to POSIX error codes */ |