mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
use safe_realloc
This commit is contained in:
parent
49a7bcd60b
commit
896abc5e34
1 changed files with 1 additions and 1 deletions
|
@ -1465,7 +1465,7 @@ next_row:
|
|||
/* add the row to our collection */
|
||||
if (rres->nrows + 1 >= rres->alloc_rows) {
|
||||
rres->alloc_rows = rres->alloc_rows ? rres->alloc_rows * 2 : 16;
|
||||
rres->table = erealloc(rres->table, rres->alloc_rows * rres->ncolumns * sizeof(char *));
|
||||
rres->table = safe_erealloc(rres->table, rres->alloc_rows, rres->ncolumns*sizeof(char *), 0);
|
||||
}
|
||||
base = rres->nrows * rres->ncolumns;
|
||||
for (i = 0; i < rres->ncolumns; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue