From: Felipe Pena Date: Tue, 12 Nov 2013 13:39:02 +0000 (-0200) Subject: - Added check for malformed class::method syntax X-Git-Tag: php-5.6.0alpha1~110^2~422 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e14649c92fa441eb940093d68cd54ec2919b174;p=php - Added check for malformed class::method syntax --- 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; }