Skip to content

Commit 1b7343b

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Yet another check for php_strip_tags_ex()
2 parents c6cf354 + 6d57476 commit 1b7343b

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
@@ -5380,7 +5380,7 @@ PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, uint8_t *stateptr, const
53805380
break;
53815381
case '"':
53825382
case '\'':
5383-
if (*(p-1) != '\\') {
5383+
if (p >= buf + 1 && *(p-1) != '\\') {
53845384
if (lc == c) {
53855385
lc = '\0';
53865386
} else if (lc != '\\') {

0 commit comments

Comments
 (0)