summaryrefslogtreecommitdiff
path: root/ext/interbase
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-07-04 17:13:58 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-07-04 17:13:58 +0000
commitd5fc8152f35b804658620040fb4bcb145ebacaed (patch)
tree3b3c80842e5bf3f743b8d878b571a355488d6673 /ext/interbase
parenta41a54f7fa970dcd11a1486e4943fb2677ea36c8 (diff)
downloadphp-git-d5fc8152f35b804658620040fb4bcb145ebacaed.tar.gz
Eliminate potentially dangerous alloca().
Diffstat (limited to 'ext/interbase')
-rw-r--r--ext/interbase/ibase_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c
index c95973c7e5..d1e0ef85f4 100644
--- a/ext/interbase/ibase_query.c
+++ b/ext/interbase/ibase_query.c
@@ -1143,7 +1143,7 @@ PHP_FUNCTION(ibase_query)
break;
}
} else if (bind_n > 0) {
- bind_args = (zval ***) do_alloca(sizeof(zval **) * ZEND_NUM_ARGS());
+ bind_args = (zval ***) emalloc(sizeof(zval **) * ZEND_NUM_ARGS());
if (FAILURE == zend_get_parameters_array_ex(ZEND_NUM_ARGS(), bind_args)) {
break;
@@ -1169,7 +1169,7 @@ PHP_FUNCTION(ibase_query)
_php_ibase_free_query(&ib_query TSRMLS_CC);
if (bind_args) {
- free_alloca(bind_args);
+ efree(bind_args);
}
}
/* }}} */