summaryrefslogtreecommitdiff
path: root/devel/pcre/patches/patch-pcreposix.c
blob: 4b5c03c4acfa1f504171b09ffbbf0d62536380b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$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 */