-
-
Save hughdavenport/09b48d4b20a28bcd7afaa530e2ec6731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/mbstring/oniguruma/regparse.c b/ext/mbstring/oniguruma/regparse.c | |
index d2925f1e81..17535d16bc 100644 | |
--- a/ext/mbstring/oniguruma/regparse.c | |
+++ b/ext/mbstring/oniguruma/regparse.c | |
@@ -3581,6 +3590,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) | |
} | |
else { /* string */ | |
p = tok->backp + enclen(enc, tok->backp); | |
+ if (p > end) p = end; | |
} | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment