summaryrefslogtreecommitdiff
path: root/libs/Pcre16/src/pcre_dfa_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Pcre16/src/pcre_dfa_exec.c')
-rw-r--r--libs/Pcre16/src/pcre_dfa_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/Pcre16/src/pcre_dfa_exec.c b/libs/Pcre16/src/pcre_dfa_exec.c
index 170ce6a001..bc09ced3a7 100644
--- a/libs/Pcre16/src/pcre_dfa_exec.c
+++ b/libs/Pcre16/src/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
@@ -2625,7 +2625,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--;