safe_hook_execdir buffer overflow
Joungkyun opened this issue · 0 comments
Joungkyun commented
diff -urNp php_execdir.c.orig php_execdir.c
--- php_execdir.c.orig 2016-06-20 01:54:41.000000000 +0900
+++ php_execdir.c 2016-06-20 01:54:59.000000000 +0900
@@ -221,7 +221,7 @@ static int safe_hook_execdir (void) {
* Rename original function gets postfie '_orig'
*/
{
- char func_re[16] = { 0 };
+ char func_re[32] = { 0 };
int func_relen;
zend_function * zf;
#if PHP_VERSION_ID < 60000