-
-
Save hughdavenport/c5696e48ea3a83bfe12075f79b2b5abf 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..b28832ea71 100644 | |
--- a/ext/mbstring/oniguruma/regparse.c | |
+++ b/ext/mbstring/oniguruma/regparse.c | |
@@ -3749,6 +3749,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) | |
out: | |
#endif | |
*src = p; | |
+ if (*src > end) *src = end; | |
return tok->type; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment