diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-12-25 22:36:57 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-12-25 22:36:57 +0000 |
| commit | 52d53543ac748489d108dc6988d02f51fd69b8d6 (patch) | |
| tree | 224f13b4b4c89b139ed1bb7f9c3236c730f23d94 /ext/pgsql | |
| parent | 9c2b6efb77637ec5cc35e6872d4ce4296021a2ea (diff) | |
| download | php-git-52d53543ac748489d108dc6988d02f51fd69b8d6.tar.gz | |
Allocation safety checks
Diffstat (limited to 'ext/pgsql')
| -rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 2f3f3219a7..08a9948562 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2102,7 +2102,7 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type, Bucket *p; fci.param_count = 0; - fci.params = emalloc(sizeof(zval*) * ht->nNumOfElements); + fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0); p = ht->pListHead; while (p != NULL) { fci.params[fci.param_count++] = (zval**)p->pData; |
