From 43f6392e9009eb45f56b069c4bfd82774423fe09 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 25 Dec 2007 10:58:30 +0000 Subject: [PATCH] Fixed bug #43651 (is_callable() with one or more nonconsecutive colons crashes) --- Zend/tests/bug43651.phpt | 41 ++++++++++++++++++++++++++++++++++++++++ Zend/zend_API.c | 11 +++++------ Zend/zend_execute_API.c | 5 ++--- 3 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 Zend/tests/bug43651.phpt 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 */ -- 2.50.1