com php-src: - Added check for malformed class::method syntax: phpdbg_utils.c

From: Date: Tue, 12 Nov 2013 13:39:02 +0000
Subject: com php-src: - Added check for malformed class::method syntax: phpdbg_utils.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75062@lists.php.net to get a copy of this message
Commit: 2e14649c92fa441eb940093d68cd54ec2919b174 Author: Felipe Pena <felipensp@gmail.com> Tue, 12 Nov 2013 11:39:02 -0200 Parents: b133dbefe02ab717ac7a435ce16cc471fca06827 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2e14649c92fa441eb940093d68cd54ec2919b174 Log: - Added check for malformed class::method syntax Changed paths: M phpdbg_utils.c Diff: diff --git a/phpdbg_utils.c b/phpdbg_utils.c index cb864c0..b509900 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; }

« previous php.cvs (#75062) next »