diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-07-04 17:13:58 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-07-04 17:13:58 +0000 |
commit | d5fc8152f35b804658620040fb4bcb145ebacaed (patch) | |
tree | 3b3c80842e5bf3f743b8d878b571a355488d6673 /ext/interbase | |
parent | a41a54f7fa970dcd11a1486e4943fb2677ea36c8 (diff) | |
download | php-git-d5fc8152f35b804658620040fb4bcb145ebacaed.tar.gz |
Eliminate potentially dangerous alloca().
Diffstat (limited to 'ext/interbase')
-rw-r--r-- | ext/interbase/ibase_query.c | 4 |
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); } } /* }}} */ |