From: Dmitry Stogov Date: Tue, 25 Dec 2007 10:58:30 +0000 (+0000) Subject: Fixed bug #43651 (is_callable() with one or more nonconsecutive colons crashes) X-Git-Tag: RELEASE_1_3_1~471 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43f6392e9009eb45f56b069c4bfd82774423fe09;p=php Fixed bug #43651 (is_callable() with one or more nonconsecutive colons crashes) --- diff --git a/Zend/tests/bug43651.phpt b/Zend/tests/bug43651.phpt new file mode 100644 index 0000000000..bce0601abe --- /dev/null +++ b/Zend/tests/bug43651.phpt @@ -0,0 +1,41 @@ +--TEST-- +Bug #43651 (is_callable() with one or more nonconsecutive colons crashes) +--FILE-- + fname && *(colon - 1) == ':' ) { + zend_class_entry **pce, *ce_child = NULL; + clen = colon - fname - 1; fname_len -= (clen + 2); fname = colon + 1; - } - if (colon != NULL) { - zend_class_entry **pce, *ce_child = NULL; lcname = zend_str_tolower_dup(cname, clen); /* caution: lcname is not '\0' terminated */