Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix #57 : DATA_ENSURE() check must be before data access
  • Loading branch information
K.Kosako committed May 23, 2017
1 parent 166a6c3 commit 690313a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/regexec.c
Expand Up @@ -1473,14 +1473,9 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
break;

case OP_EXACT1: MOP_IN(OP_EXACT1);
#if 0
DATA_ENSURE(1);
if (*p != *s) goto fail;
p++; s++;
#endif
if (*p != *s++) goto fail;
DATA_ENSURE(0);
p++;
MOP_OUT;
break;

Expand Down

0 comments on commit 690313a

Please sign in to comment.