Skip to content

Commit dd3c664

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: More checks for php_strip_tags_ex
2 parents f1bf4bf + 2dc170e commit dd3c664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5257,7 +5257,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, uint8_t *stateptr, const
52575257
break;
52585258
}
52595259

5260-
if (!br && lc != '\"' && *(p-1) == '?') {
5260+
if (!br && p >= buf + 1 && lc != '\"' && *(p-1) == '?') {
52615261
in_q = state = 0;
52625262
tp = tbuf;
52635263
p++;

0 commit comments

Comments
 (0)