From 55e1d093233083cb40b9e2c0a46dc2699aa911bc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 15 Dec 2013 09:55:32 +0100 Subject: php-pecl-sundown: 0.3.10 (beta) - New package --- sundown-pr37.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 sundown-pr37.patch (limited to 'sundown-pr37.patch') diff --git a/sundown-pr37.patch b/sundown-pr37.patch new file mode 100644 index 0000000..ec2f8f6 --- /dev/null +++ b/sundown-pr37.patch @@ -0,0 +1,40 @@ +From 9f2d92ada380fce3abf3d68d890c3a9cac6194eb Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sun, 15 Dec 2013 09:28:29 +0100 +Subject: [PATCH] fix segfault in sundown_render_base + +--- + php_sundown.h | 2 +- + render_base.c | 3 ++- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/php_sundown.h b/php_sundown.h +index 45db836..1593f1d 100644 +--- a/php_sundown.h ++++ b/php_sundown.h +@@ -163,7 +163,7 @@ static int call_user_function_v(HashTable *function_table, zval **object_pp, zva + TSRMLS_FETCH(); + + if (param_count > 0) { +- params = emalloc(sizeof(zval**) * param_count); ++ params = emalloc(sizeof(zval*) * param_count); + va_start(ap, param_count); + for (i=0; i