From 372b678e563680bd86207777ae293a40624ec962 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 24 Jan 2020 12:45:04 +0100 Subject: [PATCH] Yet another check for php_strip_tags_ex() --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index f443519a72..38180106d5 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -5266,7 +5266,7 @@ state_2: break; case '"': case '\'': - if (*(p-1) != '\\') { + if (p >= buf + 1 && *(p-1) != '\\') { if (lc == c) { lc = '\0'; } else if (lc != '\\') { -- 2.40.0