- Added check for malformed class::method syntax

This commit is contained in:
Felipe Pena 2013-11-12 11:39:02 -02:00
parent b133dbefe0
commit 2e14649c92

View file

@ -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;
}