Skip to content

Commit 984d508

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: More checks for php_strip_tags_ex
2 parents 496e6a8 + dd3c664 commit 984d508

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
@@ -5371,7 +5371,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, uint8_t *stateptr, const
53715371
break;
53725372
}
53735373

5374-
if (!br && lc != '\"' && *(p-1) == '?') {
5374+
if (!br && p >= buf + 1 && lc != '\"' && *(p-1) == '?') {
53755375
in_q = state = 0;
53765376
tp = tbuf;
53775377
p++;

0 commit comments

Comments
 (0)