From 2e14649c92fa441eb940093d68cd54ec2919b174 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 12 Nov 2013 11:39:02 -0200 Subject: [PATCH] - Added check for malformed class::method syntax --- phpdbg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpdbg_utils.c b/phpdbg_utils.c index cb864c087c..b509900912 100644 --- a/phpdbg_utils.c +++ b/phpdbg_utils.c @@ -54,7 +54,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met const char *sep = strstr(str, "::"); size_t class_len, method_len; - if (!sep) { + if (!sep || sep == str || sep+2 == str+len-1) { return 0; } -- 2.40.0