aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RESearch.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index b1b226a05..be1d235de 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -853,6 +853,8 @@ int RESearch::PMatch(CharacterIndexer &ci, int lp, int endp, char *ap) {
return NOTFOUND;
break;
case CCL:
+ if (lp >= endp)
+ return NOTFOUND;
c = ci.CharAt(lp++);
if (!isinset(ap,c))
return NOTFOUND;