Index: src/ia32/regexp-macro-assembler-ia32.cc |
diff --git a/src/ia32/regexp-macro-assembler-ia32.cc b/src/ia32/regexp-macro-assembler-ia32.cc |
index 07782cc809f6fcea102b0db6467845b412f2a846..622dc4254d08994d76866e3293afc115467be122 100644 |
--- a/src/ia32/regexp-macro-assembler-ia32.cc |
+++ b/src/ia32/regexp-macro-assembler-ia32.cc |
@@ -316,6 +316,11 @@ void RegExpMacroAssemblerIA32::CheckNotBackReferenceIgnoreCase( |
// uncaptured. In either case succeed immediately. |
__ j(equal, &fallthrough); |
+ // Check that there are sufficient characters left in the input. |
+ __ mov(eax, edi); |
+ __ add(eax, ebx); |
+ BranchOrBacktrack(greater, on_no_match); |
+ |
if (mode_ == ASCII) { |
Label success; |
Label fail; |