aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/pcre/pcre_dfa_exec.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-08-29 18:28:23 +0200
committerRickard Green <[email protected]>2017-08-29 18:28:23 +0200
commitcdcbf85b4f00f8dc2f61e895055943fc7209027c (patch)
tree1045f81f2a5a825222c355701cf4b5e30f20c393 /erts/emulator/pcre/pcre_dfa_exec.c
parenta230f26086b3db9097f06d4bb91fb3b2e9379c77 (diff)
downloadotp-cdcbf85b4f00f8dc2f61e895055943fc7209027c.tar.gz
otp-cdcbf85b4f00f8dc2f61e895055943fc7209027c.tar.bz2
otp-cdcbf85b4f00f8dc2f61e895055943fc7209027c.zip
Upgrade to PCRE 8.41 from PCRE 8.40
Diffstat (limited to 'erts/emulator/pcre/pcre_dfa_exec.c')
-rw-r--r--erts/emulator/pcre/pcre_dfa_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/pcre/pcre_dfa_exec.c b/erts/emulator/pcre/pcre_dfa_exec.c
index 529f40685b..c859d67fc7 100644
--- a/erts/emulator/pcre/pcre_dfa_exec.c
+++ b/erts/emulator/pcre/pcre_dfa_exec.c
@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language (but see
below for why this module is different).
Written by Philip Hazel
- Copyright (c) 1997-2014 University of Cambridge
+ Copyright (c) 1997-2017 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -2626,7 +2626,7 @@ for (;;)
if (isinclass)
{
int max = (int)GET2(ecode, 1 + IMM2_SIZE);
- if (*ecode == OP_CRPOSRANGE)
+ if (*ecode == OP_CRPOSRANGE && count >= (int)GET2(ecode, 1))
{
active_count--; /* Remove non-match possibility */
next_active_state--;