safe_emalloc 130 bcmath/libbcmath/src/div.c num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); safe_emalloc 136 bcmath/libbcmath/src/div.c num2 = (unsigned char *) safe_emalloc (1, len2, 1); safe_emalloc 167 bcmath/libbcmath/src/div.c mval = (unsigned char *) safe_emalloc (1, len2, 1); safe_emalloc 54 bcmath/libbcmath/src/num2str.c str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch); safe_emalloc 56 bcmath/libbcmath/src/num2str.c str = (char *) safe_emalloc (1, num->n_len, 1 + signch); safe_emalloc 494 com_dotnet/com_com.c vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); safe_emalloc 506 com_dotnet/com_com.c byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); safe_emalloc 595 com_dotnet/com_com.c vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); safe_emalloc 384 com_dotnet/com_handlers.c args = (zval ***)safe_emalloc(sizeof(zval *), nargs, 0); safe_emalloc 48 com_dotnet/com_olechar.c olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); safe_emalloc 77 com_dotnet/com_olechar.c string = (char*)safe_emalloc(length, sizeof(char), 0); safe_emalloc 110 com_dotnet/com_saproxy.c args = safe_emalloc(proxy->dimensions + 1, sizeof(zval *), 0); safe_emalloc 170 com_dotnet/com_saproxy.c indices = safe_emalloc(dims, sizeof(LONG), 0); safe_emalloc 222 com_dotnet/com_saproxy.c zval **args = safe_emalloc(proxy->dimensions + 2, sizeof(zval *), 0); safe_emalloc 245 com_dotnet/com_saproxy.c indices = safe_emalloc(dims, sizeof(LONG), 0); safe_emalloc 429 com_dotnet/com_saproxy.c cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0); safe_emalloc 453 com_dotnet/com_saproxy.c proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0); safe_emalloc 573 com_dotnet/com_saproxy.c I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); safe_emalloc 498 com_dotnet/com_typeinfo.c names = (BSTR*)safe_emalloc((func->cParams + 1), sizeof(BSTR), 0); safe_emalloc 268 com_dotnet/com_wrapper.c params = (zval ***)safe_emalloc(sizeof(zval **), pdp->cArgs, 0); safe_emalloc 623 dba/dba.c args = safe_emalloc(ac, sizeof(zval *), 0); safe_emalloc 639 dba/dba.c key = safe_emalloc(keylen, 1, 1); safe_emalloc 166 dba/dba_cdb.c new_entry = safe_emalloc(len, 1, 1); safe_emalloc 271 dba/dba_cdb.c key = safe_emalloc(klen, 1, 1); safe_emalloc 303 dba/dba_cdb.c key = safe_emalloc(klen, 1, 1); safe_emalloc 174 dba/libcdb/cdb_make.c c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0); safe_emalloc 93 dba/libflatfile/flatfile.c value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); safe_emalloc 1858 dom/node.c inclusive_ns_prefixes = safe_emalloc(zend_hash_num_elements(Z_ARRVAL_P(ns_prefixes)) + 1, safe_emalloc 118 dom/xpath.c fci.params = safe_emalloc(fci.param_count, sizeof(zval**), 0); safe_emalloc 119 dom/xpath.c args = safe_emalloc(fci.param_count, sizeof(zval *), 0); safe_emalloc 258 ereg/ereg.c buf = (char *)safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 268 ereg/ereg.c message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0); safe_emalloc 438 ereg/ereg.c buf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 514 ereg/ereg.c nbuf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 529 ereg/ereg.c nbuf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 742 ereg/ereg.c tmp = safe_emalloc(string_len, 4, 1); safe_emalloc 84 exif/exif.c #ifndef safe_emalloc safe_emalloc 1470 exif/exif.c sections = safe_emalloc(ml, 1, 1); safe_emalloc 1622 exif/exif.c data = safe_emalloc(size, 1, 0); safe_emalloc 1743 exif/exif.c info_value->list = safe_emalloc(length, sizeof(image_info_value), 0); safe_emalloc 1886 exif/exif.c info_data->value.s = safe_emalloc(length, 1, 1); safe_emalloc 2377 exif/exif.c value_ptr = safe_emalloc(max(byte_count, 4), 1, 0); safe_emalloc 2587 exif/exif.c (*result) = safe_emalloc(byte_count, 1, 1); safe_emalloc 2871 exif/exif.c value_ptr = safe_emalloc(byte_count, 1, 0); safe_emalloc 3689 exif/exif.c ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); safe_emalloc 3723 exif/exif.c ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); safe_emalloc 1199 fileinfo/libmagic/apprentice.c m = safe_emalloc(sizeof(*m), ALLOC_CHUNK, 0); safe_emalloc 1651 fileinfo/libmagic/softmagic.c t = (char *) safe_emalloc(Z_STRLEN_P(pattern), 2, 5); safe_emalloc 36 filter/callback_filter.c args = safe_emalloc(sizeof(zval **), 1, 0); safe_emalloc 90 filter/sanitizing_filters.c p = str = (unsigned char *) safe_emalloc(3, Z_STRLEN_P(value), 1); safe_emalloc 121 filter/sanitizing_filters.c buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); safe_emalloc 162 filter/sanitizing_filters.c buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); safe_emalloc 1670 ftp/ftp.c ret = safe_emalloc((lines + 1), sizeof(char**), size * sizeof(char*)); safe_emalloc 1610 gd/gd.c stylearr = safe_emalloc(sizeof(int), zend_hash_num_elements(HASH_OF(styles)), 0); safe_emalloc 3489 gd/gd.c points = (gdPointPtr) safe_emalloc(npoints, sizeof(gdPoint), 0); safe_emalloc 1909 gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); safe_emalloc 1978 gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); safe_emalloc 36 gd/libgd/gd_color.c buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); safe_emalloc 696 gd/libgd/gd_gd2.c chunkData = safe_emalloc(cs * bytesPerPixel, cs, 0); safe_emalloc 711 gd/libgd/gd_gd2.c chunkIdx = safe_emalloc(idxSize, sizeof(t_chunk_info), 0); safe_emalloc 355 gd/libgd/gd_gif_in.c tmp = safe_emalloc(3 * rv, sizeof(char), 1); safe_emalloc 205 gd/libgd/gd_jpeg.c row = (JSAMPROW) safe_emalloc(cinfo.image_width * cinfo.input_components, sizeof(JSAMPLE), 0); safe_emalloc 422 gd/libgd/gd_jpeg.c row = safe_emalloc(cinfo.output_width * channels, sizeof(JSAMPLE), 0); safe_emalloc 322 gd/libgd/gd_png.c image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); safe_emalloc 324 gd/libgd/gd_png.c row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); safe_emalloc 688 gd/libgd/gd_png.c row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); safe_emalloc 691 gd/libgd/gd_png.c *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); safe_emalloc 729 gd/libgd/gd_png.c row_pointers = safe_emalloc(height, sizeof(png_bytep), 0); safe_emalloc 797 gd/libgd/gd_topal.c boxlist = (boxptr) safe_emalloc(desired_colors, sizeof (box), 1); safe_emalloc 1603 gd/libgd/gd_topal.c (int *) safe_emalloc ((MAXJSAMPLE * 2 + 1), sizeof (int), 0); safe_emalloc 1871 gd/libgd/gd_topal.c cquantize->histogram = (hist3d) safe_emalloc (HIST_C0_ELEMS, sizeof (hist2d), 0); safe_emalloc 1875 gd/libgd/gd_topal.c (hist2d) safe_emalloc (HIST_C1_ELEMS * HIST_C2_ELEMS, sizeof (histcell), 0); safe_emalloc 1926 gd/libgd/gd_topal.c cquantize->fserrors = (FSERRPTR) safe_emalloc (3, sizeof (FSERROR), 0); safe_emalloc 40 gd/libgd/gdxpm.c colors = (int *) safe_emalloc(number, sizeof(int), 0); safe_emalloc 128 gd/libgd/wbmp.c if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) safe_emalloc 195 gd/libgd/wbmp.c if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == NULL) safe_emalloc 177 hash/hash.c char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); safe_emalloc 289 hash/hash.c char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); safe_emalloc 528 hash/hash.c char *hex_digest = safe_emalloc(digest_len,2,1); safe_emalloc 1128 iconv/iconv.c buf = safe_emalloc(1, max_line_len, 5); safe_emalloc 1903 imap/php_imap.c delim = safe_emalloc(2, sizeof(char), 0); safe_emalloc 2209 imap/php_imap.c delim = safe_emalloc(2, sizeof(char), 0); safe_emalloc 3922 imap/php_imap.c bufferTo = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 3951 imap/php_imap.c bufferCc = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 3977 imap/php_imap.c bufferBcc = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 4231 imap/php_imap.c charset = (char *) safe_emalloc((end + 1), 2, 0); safe_emalloc 107 interbase/ibase_blobs.c bl_data = safe_emalloc(1, max_len, 1); safe_emalloc 337 interbase/ibase_events.c event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); safe_emalloc 343 interbase/ibase_events.c event->events = (char **) safe_emalloc(sizeof(char *),ZEND_NUM_ARGS()-i,0); safe_emalloc 220 interbase/ibase_query.c ar = safe_emalloc(sizeof(ibase_array), *array_cnt, 0); safe_emalloc 820 interbase/ibase_query.c var->sqldata = safe_emalloc(sizeof(char), var->sqllen, 0); safe_emalloc 823 interbase/ibase_query.c var->sqldata = safe_emalloc(sizeof(char), var->sqllen + sizeof(short), 0); safe_emalloc 971 interbase/ibase_query.c bind_buf = safe_emalloc(sizeof(BIND_BUF), ib_query->in_sqlda->sqld, 0); safe_emalloc 1141 interbase/interbase.c ib_link = (ibase_db_link **) safe_emalloc(sizeof(ibase_db_link *),1+argn,0); safe_emalloc 1155 interbase/interbase.c teb = (ISC_TEB *) safe_emalloc(sizeof(ISC_TEB),argn,0); safe_emalloc 1156 interbase/interbase.c tpb = (char *) safe_emalloc(TPB_MAX_SIZE,argn,0); safe_emalloc 1249 interbase/interbase.c ib_trans = (ibase_trans *) safe_emalloc(link_cnt-1, sizeof(ibase_db_link *), sizeof(ibase_trans)); safe_emalloc 31 intl/intl_common.h # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) safe_emalloc 54 intl/msgformat/msgformat_format.c fargs = safe_emalloc(count, sizeof(zval *), 0); safe_emalloc 146 intl/msgformat/msgformat_helpers.cpp *args = (zval **)safe_emalloc(*count, sizeof(zval *), 0); safe_emalloc 407 intl/transliterator/transliterator_methods.c uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); safe_emalloc 422 intl/transliterator/transliterator_methods.c uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); safe_emalloc 251 json/JSON_parser.c jp->the_zstack = (zval **)safe_emalloc(depth, sizeof(zval), 0); safe_emalloc 421 json/json.c utf16 = (options & PHP_JSON_UNESCAPED_UNICODE) ? NULL : (unsigned short *) safe_emalloc(len, sizeof(unsigned short), 0); safe_emalloc 660 json/json.c utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1); safe_emalloc 616 ldap/ldap.c ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); safe_emalloc 679 ldap/ldap.c lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); safe_emalloc 680 ldap/ldap.c rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); safe_emalloc 1277 ldap/ldap.c ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); safe_emalloc 1278 ldap/ldap.c num_berval = safe_emalloc(num_attribs, sizeof(int), 0); safe_emalloc 1319 ldap/ldap.c ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); safe_emalloc 1766 ldap/ldap.c ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); safe_emalloc 3543 mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); safe_emalloc 3626 mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); safe_emalloc 3753 mbstring/mbstring.c convmap = (int *)safe_emalloc(i, sizeof(int), 0); safe_emalloc 4560 mbstring/mbstring.c entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); safe_emalloc 4566 mbstring/mbstring.c entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); safe_emalloc 1262 mssql/php_mssql.c result->data = (zval **) safe_emalloc(sizeof(zval *), MSSQL_ROWS_BLOCK*(++result->blocks_initialized), 0); safe_emalloc 1269 mssql/php_mssql.c result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0); safe_emalloc 1385 mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0); safe_emalloc 1927 mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0); safe_emalloc 2173 mssql/php_mssql.c result->data = (zval **) safe_emalloc(sizeof(zval *), MSSQL_ROWS_BLOCK, 0); safe_emalloc 2179 mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), num_fields, 0); safe_emalloc 1842 mysql/php_mysql.c Z_STRVAL_P(return_value) = (char *) safe_emalloc(str_len, 2, 1); safe_emalloc 1872 mysql/php_mysql.c new_str = safe_emalloc(str_len, 2, 1); safe_emalloc 2178 mysql/php_mysql.c fci.params = safe_emalloc(sizeof(zval*), htl->nNumOfElements, 0); safe_emalloc 1279 mysqli/mysqli.c fci.params = safe_emalloc(sizeof(zval*), params_ht->nNumOfElements, 0); safe_emalloc 1329 mysqli/mysqli.c a = (zval ***)safe_emalloc(c, sizeof(zval **), 0);\ safe_emalloc 143 mysqli/mysqli_api.c stmt->param.vars = (zval **)safe_emalloc(num_vars, sizeof(zval), 0); safe_emalloc 261 mysqli/mysqli_api.c args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0); safe_emalloc 443 mysqli/mysqli_api.c stmt->result.vars = (zval **)safe_emalloc((var_cnt), sizeof(zval), 0); safe_emalloc 501 mysqli/mysqli_api.c args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0); safe_emalloc 1904 mysqli/mysqli_api.c newstr = safe_emalloc(2, escapestr_len, 1); safe_emalloc 55 mysqli/mysqli_embedded.c arguments = safe_emalloc(sizeof(char *), argc + 1, 0); safe_emalloc 76 mysqli/mysqli_embedded.c groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(HASH_OF(grps)) + 1, 0); safe_emalloc 94 mysqli/mysqli_embedded.c groups = safe_emalloc(sizeof(char *), 1, 0); safe_emalloc 1418 oci8/oci8_interface.c columns = safe_emalloc(statement->ncolumns, sizeof(php_oci_out_column *), 0); safe_emalloc 1458 oci8/oci8_interface.c columns = safe_emalloc(statement->ncolumns, sizeof(php_oci_out_column *), 0); safe_emalloc 1459 oci8/oci8_interface.c outarrs = safe_emalloc(statement->ncolumns, sizeof(zval*), 0); safe_emalloc 1798 oci8/oci8_interface.c OCI_G(edition) = (char *)safe_emalloc(edition_len+1, sizeof(text), 0); safe_emalloc 676 oci8/oci8_statement.c buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); safe_emalloc 1527 oci8/oci8_statement.c bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); safe_emalloc 1532 oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1534 oci8/oci8_statement.c bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); safe_emalloc 1585 oci8/oci8_statement.c bind->array.elements = (ub4 *)safe_emalloc(max_table_length, sizeof(ub4), 0); safe_emalloc 1589 oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1623 oci8/oci8_statement.c bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); safe_emalloc 1627 oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1661 oci8/oci8_statement.c bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); safe_emalloc 1665 oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 397 odbc/birdstep.c res->values = (VResVal *)safe_emalloc(sizeof(VResVal), cols, 0); safe_emalloc 949 odbc/php_odbc.c result->values = (odbc_result_value *) safe_emalloc(sizeof(odbc_result_value), result->numcols, 0); safe_emalloc 1264 odbc/php_odbc.c params = (params_t *)safe_emalloc(sizeof(params_t), result->numparams, 0); safe_emalloc 4202 openssl/openssl.c pkeys = safe_emalloc(nkeys, sizeof(*pkeys), 0); safe_emalloc 4203 openssl/openssl.c eksl = safe_emalloc(nkeys, sizeof(*eksl), 0); safe_emalloc 4204 openssl/openssl.c eks = safe_emalloc(nkeys, sizeof(*eks), 0); safe_emalloc 4206 openssl/openssl.c key_resources = safe_emalloc(nkeys, sizeof(long), 0); safe_emalloc 767 pcntl/pcntl.c argv = safe_emalloc((argc + 2), sizeof(char *), 0); safe_emalloc 788 pcntl/pcntl.c envp = safe_emalloc((envc + 1), sizeof(char *), 0); safe_emalloc 635 pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 639 pcre/php_pcre.c match_sets = (zval **)safe_emalloc(num_subpats, sizeof(zval *), 0); safe_emalloc 1067 pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 1070 pcre/php_pcre.c result = safe_emalloc(alloc_len, sizeof(char), 0); safe_emalloc 1198 pcre/php_pcre.c new_buf = safe_emalloc(alloc_len, sizeof(char), 0); safe_emalloc 1519 pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 1677 pcre/php_pcre.c out_str = safe_emalloc(4, in_str_len, 1); safe_emalloc 1783 pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 473 pdo/pdo_dbh.c fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0); safe_emalloc 765 pdo/pdo_stmt.c fci->params = safe_emalloc(sizeof(zval**), ht->nNumOfElements, 0); safe_emalloc 810 pdo/pdo_stmt.c fci->params = safe_emalloc(sizeof(zval**), num_args, 0); safe_emalloc 824 pdo/pdo_stmt.c stmt->fetch.func.values = safe_emalloc(sizeof(zval*), stmt->column_count, 0); safe_emalloc 1903 pdo/pdo_stmt.c args = safe_emalloc(ZEND_NUM_ARGS(), sizeof(zval*), 0); safe_emalloc 147 pdo_dblib/dblib_driver.c *quoted = q = safe_emalloc(2, unquotedlen, 3); safe_emalloc 308 pdo_mysql/mysql_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 331 pdo_pgsql/pgsql_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 235 pdo_sqlite/sqlite_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 339 pdo_sqlite/sqlite_driver.c zargs = (zval ***)safe_emalloc(fake_argc, sizeof(zval **), 0); safe_emalloc 1725 pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 1932 pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 2563 pgsql/pgsql.c fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0); safe_emalloc 3255 pgsql/pgsql.c buf = (char *) safe_emalloc(sizeof(char), (buf_len+1), 0); safe_emalloc 4034 pgsql/pgsql.c to = (char *) safe_emalloc(from_len, 2, 1); safe_emalloc 4650 pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 4787 pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 5477 pgsql/pgsql.c tmp = (char *)safe_emalloc(Z_STRLEN_PP(val), 2, 1); safe_emalloc 243 phar/dirstream.c entry = (char *) safe_emalloc(found - str_key, 1, 1); safe_emalloc 248 phar/dirstream.c entry = (char *) safe_emalloc(keylen, 1, 1); safe_emalloc 280 phar/dirstream.c entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); safe_emalloc 287 phar/dirstream.c entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); safe_emalloc 468 phar/func_interceptors.c gids=(gid_t *)safe_emalloc(groups, sizeof(gid_t), 0); safe_emalloc 4033 phar/phar_object.c buf = safe_emalloc(len, 1, 1); safe_emalloc 164 phar/tar.c metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1); safe_emalloc 1975 reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 2962 reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 4304 reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 1635 session/session.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), 1, 0); safe_emalloc 1941 session/session.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), 1, 0); safe_emalloc 1001 soap/php_encoding.c str = (unsigned char *) safe_emalloc(Z_STRLEN_P(data) * 2, sizeof(char), 1); safe_emalloc 1143 soap/php_encoding.c str = (char *) safe_emalloc(EG(precision), 1, MAX_LENGTH_OF_DOUBLE + 1); safe_emalloc 2139 soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2196 soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2413 soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2511 soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2517 soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2710 soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 1406 soap/php_http.c http_buf = safe_emalloc(1, header_length, 1); safe_emalloc 1370 soap/php_sdl.c elements = safe_emalloc((i+1), sizeof(sdlTypePtr), 0); safe_emalloc 1599 soap/php_sdl.c types = safe_emalloc((i+1), sizeof(sdlTypePtr), 0); safe_emalloc 1612 soap/php_sdl.c encoders = safe_emalloc((i+1), sizeof(encodePtr), 0); safe_emalloc 1670 soap/php_sdl.c bindings = safe_emalloc(num_bindings, sizeof(sdlBindingPtr), 0); safe_emalloc 1696 soap/php_sdl.c functions = safe_emalloc(num_func, sizeof(sdlFunctionPtr), 0); safe_emalloc 1250 soap/soap.c service->soap_class.argv = safe_emalloc(sizeof(zval), service->soap_class.argc, 0); safe_emalloc 2877 soap/soap.c real_args = safe_emalloc(sizeof(zval *), arg_count, 0); safe_emalloc 3267 soap/soap.c tmp_parameters = safe_emalloc(num_of_params, sizeof(zval *), 0); safe_emalloc 3309 soap/soap.c tmp_parameters = safe_emalloc(num_of_params, sizeof(zval *), 0); safe_emalloc 546 spl/php_spl.c lc_name = safe_emalloc(func_name_len, 1, sizeof(long) + 1); safe_emalloc 657 spl/php_spl.c lc_name = safe_emalloc(func_name_len, 1, sizeof(long) + 1); safe_emalloc 2058 spl/spl_directory.c buf = safe_emalloc((intern->u.file.max_line_len + 1), sizeof(char), 0); safe_emalloc 2095 spl/spl_directory.c zval ***params = (zval***)safe_emalloc(num_args, sizeof(zval**), 0); safe_emalloc 231 spl/spl_heap.c heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element), PTR_HEAP_BLOCK_SIZE, 0); safe_emalloc 327 spl/spl_heap.c heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element),from->max_size,0); safe_emalloc 1321 spl/spl_iterators.c func_params = safe_emalloc(sizeof(zval **), arg_count, 0); safe_emalloc 709 sqlite3/sqlite3.c zargs = (zval ***)safe_emalloc(fake_argc, sizeof(zval **), 0); safe_emalloc 871 sqlite3/sqlite3.c zargs = (zval***)safe_emalloc(2, sizeof(zval**), 0); safe_emalloc 1785 standard/array.c elems = (Bucket **)safe_emalloc(n_elems, sizeof(Bucket *), 0); safe_emalloc 2111 standard/array.c repl = (zval ***)safe_emalloc(repl_num, sizeof(zval **), 0); safe_emalloc 2663 standard/array.c pads = (zval ***)safe_emalloc(num_pads, sizeof(zval **), 0); safe_emalloc 3094 standard/array.c lists = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3095 standard/array.c ptrs = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3511 standard/array.c lists = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3512 standard/array.c ptrs = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3894 standard/array.c indirect = (Bucket ***)safe_emalloc(array_size, sizeof(Bucket **), 0); safe_emalloc 3896 standard/array.c indirect[i] = (Bucket **)safe_emalloc((num_arrays + 1), sizeof(Bucket *), 0); safe_emalloc 4257 standard/array.c args = (zval **)safe_emalloc(n_arrays, sizeof(zval *), 0); safe_emalloc 4258 standard/array.c array_len = (int *)safe_emalloc(n_arrays, sizeof(int), 0); safe_emalloc 4259 standard/array.c array_pos = (HashPosition *)safe_emalloc(n_arrays, sizeof(HashPosition), 0); safe_emalloc 4291 standard/array.c params = (zval ***)safe_emalloc(n_arrays, sizeof(zval **), 0); safe_emalloc 203 standard/assert.c zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval **), 0); safe_emalloc 69 standard/base64.c result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1); safe_emalloc 150 standard/base64.c result = (unsigned char *)safe_emalloc(length, 1, 1); safe_emalloc 4163 standard/basic_functions.c paras = safe_emalloc(sizeof(opt_struct), count, 0); safe_emalloc 4218 standard/basic_functions.c argv = (char **) safe_emalloc(sizeof(char *), (argc + 1), 0); safe_emalloc 4824 standard/basic_functions.c method_args = (zval ***) safe_emalloc(sizeof(zval **), num_elems, 0); safe_emalloc 5073 standard/basic_functions.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), shutdown_function_entry.arg_count, 0); safe_emalloc 5674 standard/basic_functions.c tick_fe.arguments = (zval **) safe_emalloc(sizeof(zval *), tick_fe.arg_count, 0); safe_emalloc 250 standard/exec.c cmd = safe_emalloc(2, l, 1); safe_emalloc 340 standard/exec.c cmd = safe_emalloc(4, l, 3); /* worst case */ safe_emalloc 1094 standard/file.c buf = safe_emalloc(sizeof(char), (len + 1), 0); safe_emalloc 933 standard/filestat.c gids=(gid_t *)safe_emalloc(groups, sizeof(gid_t), 0); safe_emalloc 403 standard/formatted_print.c newargs = (zval ***)safe_emalloc(argc, sizeof(zval *), 0); safe_emalloc 206 standard/iptc.c poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1); safe_emalloc 45 standard/levenshtein.c p1 = safe_emalloc((l2 + 1), sizeof(int), 0); safe_emalloc 46 standard/levenshtein.c p2 = safe_emalloc((l2 + 1), sizeof(int), 0); safe_emalloc 189 standard/metaphone.c *phoned_word = safe_emalloc(sizeof(char), word_len, 1); safe_emalloc 192 standard/metaphone.c *phoned_word = safe_emalloc(sizeof(char), max_phonemes, 1); safe_emalloc 132 standard/pack.c formatcodes = safe_emalloc(formatlen, sizeof(*formatcodes), 0); safe_emalloc 133 standard/pack.c formatargs = safe_emalloc(formatlen, sizeof(*formatargs), 0); safe_emalloc 154 standard/quot_print.c ret = safe_emalloc(1, 3 * length + 3 * (((3 * length)/PHP_QPRINT_MAXL) + 1), 0); safe_emalloc 170 standard/scanf.c cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); safe_emalloc 172 standard/scanf.c cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0); safe_emalloc 327 standard/scanf.c nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); safe_emalloc 502 standard/scanf.c nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); safe_emalloc 381 standard/streamsfuncs.c read_buf = safe_emalloc(1, to_read, 1); safe_emalloc 134 standard/string.c result = (unsigned char *) safe_emalloc(oldlen, 2 * sizeof(char), 1); safe_emalloc 154 standard/string.c register unsigned char *str = (unsigned char *)safe_emalloc(target_length, sizeof(char), 1); safe_emalloc 924 standard/string.c newtext = safe_emalloc(chk, breakcharlen, textlen + 1); safe_emalloc 929 standard/string.c newtext = safe_emalloc(textlen, (breakcharlen + 1), 1); safe_emalloc 2142 standard/string.c dest = safe_emalloc((int)out_len, sizeof(char), 0); safe_emalloc 2597 standard/string.c str = safe_emalloc(2, old_len, 1); safe_emalloc 3241 standard/string.c char *new_str = safe_emalloc(4, (length?length:(length=strlen(str))), 1); safe_emalloc 3306 standard/string.c new_str = (char *) safe_emalloc(2, (length ? length : (length = strlen(str))), 1); safe_emalloc 3374 standard/string.c Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len + 1); safe_emalloc 3504 standard/string.c new_str = safe_emalloc(count, str_len - needle_len, length + 1); safe_emalloc 4035 standard/string.c tmp = target = safe_emalloc(repl_cnt, repl_len, str_len + 1); safe_emalloc 4655 standard/string.c result = (char *)safe_emalloc(input_len, mult, 1); safe_emalloc 496 standard/url.c start = to = (unsigned char *) safe_emalloc(3, len, 1); safe_emalloc 606 standard/url.c str = (unsigned char *) safe_emalloc(3, len, 1); safe_emalloc 74 standard/uuencode.c p = *dest = safe_emalloc((size_t) ceil(src_len * 1.38), 1, 46); safe_emalloc 132 standard/uuencode.c p = *dest = safe_emalloc((size_t) ceil(src_len * 0.75), 1, 1); safe_emalloc 750 standard/var.c s = (char *) safe_emalloc(PG(serialize_precision), 1, MAX_LENGTH_OF_DOUBLE + 1); safe_emalloc 156 standard/var_unserializer.c char *str = safe_emalloc(*len, 1, 1); safe_emalloc 37 standard/versioning.c char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; safe_emalloc 1212 sybase_ct/php_sybase_ct.c result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0); safe_emalloc 1313 sybase_ct/php_sybase_ct.c result->data = (zval **) safe_emalloc(sizeof(zval *), SYBASE_ROWS_BLOCK, 0); safe_emalloc 1321 sybase_ct/php_sybase_ct.c result->tmp_buffer = (char **) safe_emalloc(sizeof(char *), num_fields, 0); safe_emalloc 1322 sybase_ct/php_sybase_ct.c result->lengths = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1323 sybase_ct/php_sybase_ct.c result->indicators = (CS_SMALLINT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1324 sybase_ct/php_sybase_ct.c result->datafmt = (CS_DATAFMT *) safe_emalloc(sizeof(CS_DATAFMT), num_fields, 0); safe_emalloc 1325 sybase_ct/php_sybase_ct.c result->numerics = (unsigned char *) safe_emalloc(sizeof(unsigned char), num_fields, 0); safe_emalloc 1326 sybase_ct/php_sybase_ct.c result->types = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1390 sybase_ct/php_sybase_ct.c result->fields = (sybase_field *) safe_emalloc(sizeof(sybase_field), num_fields, 0); safe_emalloc 343 sysvmsg/sysvmsg.c messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); safe_emalloc 418 sysvmsg/sysvmsg.c messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf)); safe_emalloc 444 sysvmsg/sysvmsg.c messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); safe_emalloc 178 wddx/wddx.c stack->elements = (void **) safe_emalloc(sizeof(void **), STACK_BLOCK_SIZE, 0); safe_emalloc 173 xml/compat.c attrs = safe_emalloc((nb_attributes * 2) + 1, sizeof(int *), 0); safe_emalloc 515 xml/xml.c args = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 636 xml/xml.c newbuf = safe_emalloc(len, 4, 1); safe_emalloc 1482 xml/xml.c parser->ltags = safe_emalloc(XML_MAXLEVEL, sizeof(char *), 0); safe_emalloc 122 xsl/xsltprocessor.c value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); safe_emalloc 125 xsl/xsltprocessor.c value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); safe_emalloc 145 xsl/xsltprocessor.c params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); safe_emalloc 233 xsl/xsltprocessor.c fci.params = safe_emalloc(fci.param_count, sizeof(zval**), 0); safe_emalloc 234 xsl/xsltprocessor.c args = safe_emalloc(fci.param_count, sizeof(zval *), 0); safe_emalloc 1368 zip/php_zip.c buffer = safe_emalloc(len, 1, 1); safe_emalloc 2545 zip/php_zip.c buffer = safe_emalloc(len, 1, 2); safe_emalloc 43 zlib/zlib.c return (voidpf)safe_emalloc(items, size, 0);