-
-
Save cmb69/2a2c1e3cdcd3a6b8616e1b00e7c19bc5 to your computer and use it in GitHub Desktop.
PHP bug #77247
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
ext/phar/phar.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/ext/phar/phar.c b/ext/phar/phar.c | |
index 4d5988eaa9..812720a011 100644 | |
--- a/ext/phar/phar.c | |
+++ b/ext/phar/phar.c | |
@@ -2026,7 +2026,7 @@ next_extension: | |
} | |
while (pos != filename && (*(pos - 1) == '/' || *(pos - 1) == '\0')) { | |
- pos = memchr(pos + 1, '.', filename_len - (pos - filename) + 1); | |
+ pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); | |
if (!pos) { | |
return FAILURE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment