safe_emalloc 856 Zend/zend_API.c *varargs = safe_emalloc(num_varargs, sizeof(zval **), 0); safe_emalloc 123 Zend/zend_alloc.h #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset)) safe_emalloc 159 Zend/zend_compile.c result->value.str.val = (char *) safe_emalloc(result->value.str.len, 1, 1); safe_emalloc 662 Zend/zend_language_scanner.c char *tmp = safe_emalloc(1, str->value.str.len, ZEND_MMAP_AHEAD); safe_emalloc 255 Zend/zend_stream.c file_handle->handle.stream.mmap.buf = *buf = safe_emalloc(1, size, ZEND_MMAP_AHEAD); safe_emalloc 130 ext/bcmath/libbcmath/src/div.c num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); safe_emalloc 136 ext/bcmath/libbcmath/src/div.c num2 = (unsigned char *) safe_emalloc (1, len2, 1); safe_emalloc 167 ext/bcmath/libbcmath/src/div.c mval = (unsigned char *) safe_emalloc (1, len2, 1); safe_emalloc 54 ext/bcmath/libbcmath/src/num2str.c str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch); safe_emalloc 56 ext/bcmath/libbcmath/src/num2str.c str = (char *) safe_emalloc (1, num->n_len, 1 + signch); safe_emalloc 494 ext/com_dotnet/com_com.c vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); safe_emalloc 506 ext/com_dotnet/com_com.c byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); safe_emalloc 595 ext/com_dotnet/com_com.c vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); safe_emalloc 384 ext/com_dotnet/com_handlers.c args = (zval ***)safe_emalloc(sizeof(zval *), nargs, 0); safe_emalloc 48 ext/com_dotnet/com_olechar.c olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); safe_emalloc 77 ext/com_dotnet/com_olechar.c string = (char*)safe_emalloc(length, sizeof(char), 0); safe_emalloc 110 ext/com_dotnet/com_saproxy.c args = safe_emalloc(proxy->dimensions + 1, sizeof(zval *), 0); safe_emalloc 170 ext/com_dotnet/com_saproxy.c indices = safe_emalloc(dims, sizeof(LONG), 0); safe_emalloc 222 ext/com_dotnet/com_saproxy.c zval **args = safe_emalloc(proxy->dimensions + 2, sizeof(zval *), 0); safe_emalloc 245 ext/com_dotnet/com_saproxy.c indices = safe_emalloc(dims, sizeof(LONG), 0); safe_emalloc 429 ext/com_dotnet/com_saproxy.c cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0); safe_emalloc 453 ext/com_dotnet/com_saproxy.c proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0); safe_emalloc 572 ext/com_dotnet/com_saproxy.c I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); safe_emalloc 498 ext/com_dotnet/com_typeinfo.c names = (BSTR*)safe_emalloc((func->cParams + 1), sizeof(BSTR), 0); safe_emalloc 268 ext/com_dotnet/com_wrapper.c params = (zval ***)safe_emalloc(sizeof(zval **), pdp->cArgs, 0); safe_emalloc 636 ext/dba/dba.c args = safe_emalloc(ac, sizeof(zval *), 0); safe_emalloc 652 ext/dba/dba.c key = safe_emalloc(keylen, 1, 1); safe_emalloc 166 ext/dba/dba_cdb.c new_entry = safe_emalloc(len, 1, 1); safe_emalloc 271 ext/dba/dba_cdb.c key = safe_emalloc(klen, 1, 1); safe_emalloc 303 ext/dba/dba_cdb.c key = safe_emalloc(klen, 1, 1); safe_emalloc 174 ext/dba/libcdb/cdb_make.c c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0); safe_emalloc 93 ext/dba/libflatfile/flatfile.c value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); safe_emalloc 1858 ext/dom/node.c inclusive_ns_prefixes = safe_emalloc(zend_hash_num_elements(Z_ARRVAL_P(ns_prefixes)) + 1, safe_emalloc 118 ext/dom/xpath.c fci.params = safe_emalloc(fci.param_count, sizeof(zval**), 0); safe_emalloc 119 ext/dom/xpath.c args = safe_emalloc(fci.param_count, sizeof(zval *), 0); safe_emalloc 258 ext/ereg/ereg.c buf = (char *)safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 268 ext/ereg/ereg.c message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0); safe_emalloc 438 ext/ereg/ereg.c buf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 514 ext/ereg/ereg.c nbuf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 529 ext/ereg/ereg.c nbuf = safe_emalloc(buf_len, sizeof(char), 0); safe_emalloc 742 ext/ereg/ereg.c tmp = safe_emalloc(string_len, 4, 1); safe_emalloc 84 ext/exif/exif.c #ifndef safe_emalloc safe_emalloc 1470 ext/exif/exif.c sections = safe_emalloc(ml, 1, 1); safe_emalloc 1622 ext/exif/exif.c data = safe_emalloc(size, 1, 0); safe_emalloc 1743 ext/exif/exif.c info_value->list = safe_emalloc(length, sizeof(image_info_value), 0); safe_emalloc 1886 ext/exif/exif.c info_data->value.s = safe_emalloc(length, 1, 1); safe_emalloc 2377 ext/exif/exif.c value_ptr = safe_emalloc(max(byte_count, 4), 1, 0); safe_emalloc 2587 ext/exif/exif.c (*result) = safe_emalloc(byte_count, 1, 1); safe_emalloc 2878 ext/exif/exif.c value_ptr = safe_emalloc(byte_count, 1, 0); safe_emalloc 3696 ext/exif/exif.c ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); safe_emalloc 3730 ext/exif/exif.c ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); safe_emalloc 1823 ext/fileinfo/libmagic/softmagic.c t = (char *) safe_emalloc(Z_STRLEN_P(pattern), 2, 5); safe_emalloc 36 ext/filter/callback_filter.c args = safe_emalloc(sizeof(zval **), 1, 0); safe_emalloc 90 ext/filter/sanitizing_filters.c p = str = (unsigned char *) safe_emalloc(3, Z_STRLEN_P(value), 1); safe_emalloc 121 ext/filter/sanitizing_filters.c buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); safe_emalloc 162 ext/filter/sanitizing_filters.c buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); safe_emalloc 1673 ext/ftp/ftp.c ret = safe_emalloc((lines + 1), sizeof(char*), size); safe_emalloc 1530 ext/gd/gd.c stylearr = safe_emalloc(sizeof(int), zend_hash_num_elements(HASH_OF(styles)), 0); safe_emalloc 3345 ext/gd/gd.c points = (gdPointPtr) safe_emalloc(npoints, sizeof(gdPoint), 0); safe_emalloc 1913 ext/gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); safe_emalloc 1980 ext/gd/libgd/gd.c stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); safe_emalloc 36 ext/gd/libgd/gd_color.c buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); safe_emalloc 696 ext/gd/libgd/gd_gd2.c chunkData = safe_emalloc(cs * bytesPerPixel, cs, 0); safe_emalloc 711 ext/gd/libgd/gd_gd2.c chunkIdx = safe_emalloc(idxSize, sizeof(t_chunk_info), 0); safe_emalloc 355 ext/gd/libgd/gd_gif_in.c tmp = safe_emalloc(3 * rv, sizeof(char), 1); safe_emalloc 205 ext/gd/libgd/gd_jpeg.c row = (JSAMPROW) safe_emalloc(cinfo.image_width * cinfo.input_components, sizeof(JSAMPLE), 0); safe_emalloc 437 ext/gd/libgd/gd_jpeg.c row = safe_emalloc(cinfo.output_width * channels, sizeof(JSAMPLE), 0); safe_emalloc 323 ext/gd/libgd/gd_png.c image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); safe_emalloc 325 ext/gd/libgd/gd_png.c row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); safe_emalloc 690 ext/gd/libgd/gd_png.c row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); safe_emalloc 693 ext/gd/libgd/gd_png.c *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); safe_emalloc 731 ext/gd/libgd/gd_png.c row_pointers = safe_emalloc(height, sizeof(png_bytep), 0); safe_emalloc 797 ext/gd/libgd/gd_topal.c boxlist = (boxptr) safe_emalloc(desired_colors, sizeof (box), 1); safe_emalloc 1603 ext/gd/libgd/gd_topal.c (int *) safe_emalloc ((MAXJSAMPLE * 2 + 1), sizeof (int), 0); safe_emalloc 1871 ext/gd/libgd/gd_topal.c cquantize->histogram = (hist3d) safe_emalloc (HIST_C0_ELEMS, sizeof (hist2d), 0); safe_emalloc 1875 ext/gd/libgd/gd_topal.c (hist2d) safe_emalloc (HIST_C1_ELEMS * HIST_C2_ELEMS, sizeof (histcell), 0); safe_emalloc 1926 ext/gd/libgd/gd_topal.c cquantize->fserrors = (FSERRPTR) safe_emalloc (3, sizeof (FSERROR), 0); safe_emalloc 40 ext/gd/libgd/gdxpm.c colors = (int *) safe_emalloc(number, sizeof(int), 0); safe_emalloc 128 ext/gd/libgd/wbmp.c if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) safe_emalloc 195 ext/gd/libgd/wbmp.c if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == NULL) safe_emalloc 178 ext/hash/hash.c char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); safe_emalloc 302 ext/hash/hash.c char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); safe_emalloc 541 ext/hash/hash.c char *hex_digest = safe_emalloc(digest_len,2,1); safe_emalloc 673 ext/hash/hash.c result = safe_emalloc(loops, ops->digest_size, 0); safe_emalloc 675 ext/hash/hash.c computed_salt = safe_emalloc(salt_len, 1, 4); safe_emalloc 720 ext/hash/hash.c returnval = safe_emalloc(length, 1, 1); safe_emalloc 1128 ext/iconv/iconv.c buf = safe_emalloc(1, max_line_len, 5); safe_emalloc 1902 ext/imap/php_imap.c delim = safe_emalloc(2, sizeof(char), 0); safe_emalloc 2208 ext/imap/php_imap.c delim = safe_emalloc(2, sizeof(char), 0); safe_emalloc 3921 ext/imap/php_imap.c bufferTo = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 3950 ext/imap/php_imap.c bufferCc = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 3976 ext/imap/php_imap.c bufferBcc = (char *)safe_emalloc(bt_len, 1, 1); safe_emalloc 4230 ext/imap/php_imap.c charset = (char *) safe_emalloc((end + 1), 2, 0); safe_emalloc 107 ext/interbase/ibase_blobs.c bl_data = safe_emalloc(1, max_len, 1); safe_emalloc 337 ext/interbase/ibase_events.c event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); safe_emalloc 343 ext/interbase/ibase_events.c event->events = (char **) safe_emalloc(sizeof(char *),ZEND_NUM_ARGS()-i,0); safe_emalloc 220 ext/interbase/ibase_query.c ar = safe_emalloc(sizeof(ibase_array), *array_cnt, 0); safe_emalloc 820 ext/interbase/ibase_query.c var->sqldata = safe_emalloc(sizeof(char), var->sqllen, 0); safe_emalloc 823 ext/interbase/ibase_query.c var->sqldata = safe_emalloc(sizeof(char), var->sqllen + sizeof(short), 0); safe_emalloc 971 ext/interbase/ibase_query.c bind_buf = safe_emalloc(sizeof(BIND_BUF), ib_query->in_sqlda->sqld, 0); safe_emalloc 1141 ext/interbase/interbase.c ib_link = (ibase_db_link **) safe_emalloc(sizeof(ibase_db_link *),1+argn,0); safe_emalloc 1155 ext/interbase/interbase.c teb = (ISC_TEB *) safe_emalloc(sizeof(ISC_TEB),argn,0); safe_emalloc 1156 ext/interbase/interbase.c tpb = (char *) safe_emalloc(TPB_MAX_SIZE,argn,0); safe_emalloc 1249 ext/interbase/interbase.c ib_trans = (ibase_trans *) safe_emalloc(link_cnt-1, sizeof(ibase_db_link *), sizeof(ibase_trans)); safe_emalloc 694 ext/intl/converter/converter.c temp = safe_emalloc(sizeof(UChar), temp_len, sizeof(UChar)); safe_emalloc 713 ext/intl/converter/converter.c dest = safe_emalloc(sizeof(char), dest_len, sizeof(char)); safe_emalloc 31 ext/intl/intl_common.h # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) safe_emalloc 648 ext/intl/msgformat/msgformat_helpers.cpp *args = (zval **)safe_emalloc(*count, sizeof(zval *), 0); safe_emalloc 407 ext/intl/transliterator/transliterator_methods.c uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); safe_emalloc 422 ext/intl/transliterator/transliterator_methods.c uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); safe_emalloc 251 ext/json/JSON_parser.c jp->the_zstack = (zval **)safe_emalloc(depth, sizeof(zval), 0); safe_emalloc 435 ext/json/json.c utf16 = (options & PHP_JSON_UNESCAPED_UNICODE) ? NULL : (unsigned short *) safe_emalloc(len, sizeof(unsigned short), 0); safe_emalloc 671 ext/json/json.c utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1); safe_emalloc 616 ext/ldap/ldap.c ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); safe_emalloc 679 ext/ldap/ldap.c lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); safe_emalloc 680 ext/ldap/ldap.c rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); safe_emalloc 1277 ext/ldap/ldap.c ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); safe_emalloc 1278 ext/ldap/ldap.c num_berval = safe_emalloc(num_attribs, sizeof(int), 0); safe_emalloc 1319 ext/ldap/ldap.c ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); safe_emalloc 1766 ext/ldap/ldap.c ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); safe_emalloc 3543 ext/mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); safe_emalloc 3626 ext/mbstring/mbstring.c stack = (zval ***)safe_emalloc(stack_max, sizeof(zval **), 0); safe_emalloc 3753 ext/mbstring/mbstring.c convmap = (int *)safe_emalloc(i, sizeof(int), 0); safe_emalloc 4560 ext/mbstring/mbstring.c entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); safe_emalloc 4566 ext/mbstring/mbstring.c entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); safe_emalloc 1267 ext/mssql/php_mssql.c result->data = (zval **) safe_emalloc(sizeof(zval *), MSSQL_ROWS_BLOCK*(++result->blocks_initialized), 0); safe_emalloc 1274 ext/mssql/php_mssql.c result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0); safe_emalloc 1390 ext/mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0); safe_emalloc 1932 ext/mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), result->num_fields, 0); safe_emalloc 2178 ext/mssql/php_mssql.c result->data = (zval **) safe_emalloc(sizeof(zval *), MSSQL_ROWS_BLOCK, 0); safe_emalloc 2184 ext/mssql/php_mssql.c result->fields = (mssql_field *) safe_emalloc(sizeof(mssql_field), num_fields, 0); safe_emalloc 1846 ext/mysql/php_mysql.c Z_STRVAL_P(return_value) = (char *) safe_emalloc(str_len, 2, 1); safe_emalloc 1876 ext/mysql/php_mysql.c new_str = safe_emalloc(str_len, 2, 1); safe_emalloc 2182 ext/mysql/php_mysql.c fci.params = safe_emalloc(sizeof(zval*), htl->nNumOfElements, 0); safe_emalloc 1296 ext/mysqli/mysqli.c fci.params = safe_emalloc(sizeof(zval*), params_ht->nNumOfElements, 0); safe_emalloc 144 ext/mysqli/mysqli_api.c stmt->param.vars = (zval **)safe_emalloc(num_vars, sizeof(zval), 0); safe_emalloc 262 ext/mysqli/mysqli_api.c args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0); safe_emalloc 444 ext/mysqli/mysqli_api.c stmt->result.vars = (zval **)safe_emalloc((var_cnt), sizeof(zval), 0); safe_emalloc 502 ext/mysqli/mysqli_api.c args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0); safe_emalloc 1936 ext/mysqli/mysqli_api.c newstr = safe_emalloc(2, escapestr_len, 1); safe_emalloc 55 ext/mysqli/mysqli_embedded.c arguments = safe_emalloc(sizeof(char *), argc + 1, 0); safe_emalloc 76 ext/mysqli/mysqli_embedded.c groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(HASH_OF(grps)) + 1, 0); safe_emalloc 94 ext/mysqli/mysqli_embedded.c groups = safe_emalloc(sizeof(char *), 1, 0); safe_emalloc 1418 ext/oci8/oci8_interface.c columns = safe_emalloc(statement->ncolumns, sizeof(php_oci_out_column *), 0); safe_emalloc 1458 ext/oci8/oci8_interface.c columns = safe_emalloc(statement->ncolumns, sizeof(php_oci_out_column *), 0); safe_emalloc 1459 ext/oci8/oci8_interface.c outarrs = safe_emalloc(statement->ncolumns, sizeof(zval*), 0); safe_emalloc 1798 ext/oci8/oci8_interface.c OCI_G(edition) = (char *)safe_emalloc(edition_len+1, sizeof(text), 0); safe_emalloc 676 ext/oci8/oci8_statement.c buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); safe_emalloc 1527 ext/oci8/oci8_statement.c bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); safe_emalloc 1532 ext/oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1534 ext/oci8/oci8_statement.c bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); safe_emalloc 1585 ext/oci8/oci8_statement.c bind->array.elements = (ub4 *)safe_emalloc(max_table_length, sizeof(ub4), 0); safe_emalloc 1589 ext/oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1623 ext/oci8/oci8_statement.c bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); safe_emalloc 1627 ext/oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 1661 ext/oci8/oci8_statement.c bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); safe_emalloc 1665 ext/oci8/oci8_statement.c bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); safe_emalloc 397 ext/odbc/birdstep.c res->values = (VResVal *)safe_emalloc(sizeof(VResVal), cols, 0); safe_emalloc 949 ext/odbc/php_odbc.c result->values = (odbc_result_value *) safe_emalloc(sizeof(odbc_result_value), result->numcols, 0); safe_emalloc 1264 ext/odbc/php_odbc.c params = (params_t *)safe_emalloc(sizeof(params_t), result->numparams, 0); safe_emalloc 4349 ext/openssl/openssl.c pkeys = safe_emalloc(nkeys, sizeof(*pkeys), 0); safe_emalloc 4350 ext/openssl/openssl.c eksl = safe_emalloc(nkeys, sizeof(*eksl), 0); safe_emalloc 4351 ext/openssl/openssl.c eks = safe_emalloc(nkeys, sizeof(*eks), 0); safe_emalloc 4353 ext/openssl/openssl.c key_resources = safe_emalloc(nkeys, sizeof(long), 0); safe_emalloc 767 ext/pcntl/pcntl.c argv = safe_emalloc((argc + 2), sizeof(char *), 0); safe_emalloc 788 ext/pcntl/pcntl.c envp = safe_emalloc((envc + 1), sizeof(char *), 0); safe_emalloc 642 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 646 ext/pcre/php_pcre.c match_sets = (zval **)safe_emalloc(num_subpats, sizeof(zval *), 0); safe_emalloc 1078 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 1081 ext/pcre/php_pcre.c result = safe_emalloc(alloc_len, sizeof(char), 0); safe_emalloc 1209 ext/pcre/php_pcre.c new_buf = safe_emalloc(alloc_len, sizeof(char), 0); safe_emalloc 1530 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 1688 ext/pcre/php_pcre.c out_str = safe_emalloc(4, in_str_len, 1); safe_emalloc 1794 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); safe_emalloc 476 ext/pdo/pdo_dbh.c fci.params = safe_emalloc(sizeof(zval*), ht->nNumOfElements, 0); safe_emalloc 765 ext/pdo/pdo_stmt.c fci->params = safe_emalloc(sizeof(zval**), ht->nNumOfElements, 0); safe_emalloc 810 ext/pdo/pdo_stmt.c fci->params = safe_emalloc(sizeof(zval**), num_args, 0); safe_emalloc 824 ext/pdo/pdo_stmt.c stmt->fetch.func.values = safe_emalloc(sizeof(zval*), stmt->column_count, 0); safe_emalloc 1903 ext/pdo/pdo_stmt.c args = safe_emalloc(ZEND_NUM_ARGS(), sizeof(zval*), 0); safe_emalloc 150 ext/pdo_dblib/dblib_driver.c *quoted = q = safe_emalloc(2, unquotedlen, 3); safe_emalloc 308 ext/pdo_mysql/mysql_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 331 ext/pdo_pgsql/pgsql_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 235 ext/pdo_sqlite/sqlite_driver.c *quoted = safe_emalloc(2, unquotedlen, 3); safe_emalloc 339 ext/pdo_sqlite/sqlite_driver.c zargs = (zval ***)safe_emalloc(fake_argc, sizeof(zval **), 0); safe_emalloc 1804 ext/pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 2011 ext/pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 2642 ext/pgsql/pgsql.c fci.params = safe_emalloc(sizeof(zval***), ht->nNumOfElements, 0); safe_emalloc 3334 ext/pgsql/pgsql.c buf = (char *) safe_emalloc(sizeof(char), (buf_len+1), 0); safe_emalloc 4113 ext/pgsql/pgsql.c to = (char *) safe_emalloc(from_len, 2, 1); safe_emalloc 4745 ext/pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 4900 ext/pgsql/pgsql.c params = (char **)safe_emalloc(sizeof(char *), num_params, 0); safe_emalloc 5126 ext/pgsql/pgsql.c escaped = (char *)safe_emalloc(strlen(tmp_name2), 2, 1); safe_emalloc 5138 ext/pgsql/pgsql.c escaped = (char *)safe_emalloc(strlen(tmp_name), 2, 1); safe_emalloc 5646 ext/pgsql/pgsql.c tmp = (char *)safe_emalloc(Z_STRLEN_PP(val), 2, 1); safe_emalloc 239 ext/phar/dirstream.c entry = (char *) safe_emalloc(found - str_key, 1, 1); safe_emalloc 244 ext/phar/dirstream.c entry = (char *) safe_emalloc(keylen, 1, 1); safe_emalloc 276 ext/phar/dirstream.c entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); safe_emalloc 283 ext/phar/dirstream.c entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); safe_emalloc 468 ext/phar/func_interceptors.c gids=(gid_t *)safe_emalloc(groups, sizeof(gid_t), 0); safe_emalloc 3961 ext/phar/phar_object.c buf = safe_emalloc(len, 1, 1); safe_emalloc 164 ext/phar/tar.c metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1); safe_emalloc 1973 ext/reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 2960 ext/reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 4327 ext/reflection/php_reflection.c params = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 1765 ext/session/session.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), 1, 0); safe_emalloc 2078 ext/session/session.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), 1, 0); safe_emalloc 1001 ext/soap/php_encoding.c str = (unsigned char *) safe_emalloc(Z_STRLEN_P(data) * 2, sizeof(char), 1); safe_emalloc 1143 ext/soap/php_encoding.c str = (char *) safe_emalloc(EG(precision), 1, MAX_LENGTH_OF_DOUBLE + 1); safe_emalloc 2139 ext/soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2196 ext/soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2404 ext/soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2502 ext/soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2508 ext/soap/php_encoding.c dims = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 2701 ext/soap/php_encoding.c pos = safe_emalloc(sizeof(int), dimension, 0); safe_emalloc 1468 ext/soap/php_http.c http_buf = safe_emalloc(1, header_length, 1); safe_emalloc 1370 ext/soap/php_sdl.c elements = safe_emalloc((i+1), sizeof(sdlTypePtr), 0); safe_emalloc 1599 ext/soap/php_sdl.c types = safe_emalloc((i+1), sizeof(sdlTypePtr), 0); safe_emalloc 1612 ext/soap/php_sdl.c encoders = safe_emalloc((i+1), sizeof(encodePtr), 0); safe_emalloc 1670 ext/soap/php_sdl.c bindings = safe_emalloc(num_bindings, sizeof(sdlBindingPtr), 0); safe_emalloc 1696 ext/soap/php_sdl.c functions = safe_emalloc(num_func, sizeof(sdlFunctionPtr), 0); safe_emalloc 1286 ext/soap/soap.c service->soap_class.argv = safe_emalloc(sizeof(zval), service->soap_class.argc, 0); safe_emalloc 2928 ext/soap/soap.c real_args = safe_emalloc(sizeof(zval *), arg_count, 0); safe_emalloc 3318 ext/soap/soap.c tmp_parameters = safe_emalloc(num_of_params, sizeof(zval *), 0); safe_emalloc 3360 ext/soap/soap.c tmp_parameters = safe_emalloc(num_of_params, sizeof(zval *), 0); safe_emalloc 132 ext/sockets/conversions.c void *ret = safe_emalloc(nmemb, alloc_size, offset); safe_emalloc 1231 ext/sockets/conversions.c char *buf = safe_emalloc(1, len, 1); safe_emalloc 546 ext/spl/php_spl.c lc_name = safe_emalloc(func_name_len, 1, sizeof(long) + 1); safe_emalloc 657 ext/spl/php_spl.c lc_name = safe_emalloc(func_name_len, 1, sizeof(long) + 1); safe_emalloc 2066 ext/spl/spl_directory.c buf = safe_emalloc((intern->u.file.max_line_len + 1), sizeof(char), 0); safe_emalloc 2103 ext/spl/spl_directory.c zval ***params = (zval***)safe_emalloc(num_args, sizeof(zval**), 0); safe_emalloc 231 ext/spl/spl_heap.c heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element), PTR_HEAP_BLOCK_SIZE, 0); safe_emalloc 327 ext/spl/spl_heap.c heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element),from->max_size,0); safe_emalloc 1323 ext/spl/spl_iterators.c func_params = safe_emalloc(sizeof(zval **), arg_count, 0); safe_emalloc 709 ext/sqlite3/sqlite3.c zargs = (zval ***)safe_emalloc(fake_argc, sizeof(zval **), 0); safe_emalloc 879 ext/sqlite3/sqlite3.c zargs = (zval***)safe_emalloc(2, sizeof(zval**), 0); safe_emalloc 1750 ext/standard/array.c elems = (Bucket **)safe_emalloc(n_elems, sizeof(Bucket *), 0); safe_emalloc 2076 ext/standard/array.c repl = (zval ***)safe_emalloc(repl_num, sizeof(zval **), 0); safe_emalloc 2719 ext/standard/array.c pads = (zval ***)safe_emalloc(num_pads, sizeof(zval **), 0); safe_emalloc 3139 ext/standard/array.c lists = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3140 ext/standard/array.c ptrs = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3556 ext/standard/array.c lists = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3557 ext/standard/array.c ptrs = (Bucket ***)safe_emalloc(arr_argc, sizeof(Bucket **), 0); safe_emalloc 3939 ext/standard/array.c indirect = (Bucket ***)safe_emalloc(array_size, sizeof(Bucket **), 0); safe_emalloc 3941 ext/standard/array.c indirect[i] = (Bucket **)safe_emalloc((num_arrays + 1), sizeof(Bucket *), 0); safe_emalloc 4291 ext/standard/array.c args = (zval **)safe_emalloc(n_arrays, sizeof(zval *), 0); safe_emalloc 4292 ext/standard/array.c array_len = (int *)safe_emalloc(n_arrays, sizeof(int), 0); safe_emalloc 4293 ext/standard/array.c array_pos = (HashPosition *)safe_emalloc(n_arrays, sizeof(HashPosition), 0); safe_emalloc 4325 ext/standard/array.c params = (zval ***)safe_emalloc(n_arrays, sizeof(zval **), 0); safe_emalloc 203 ext/standard/assert.c zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval **), 0); safe_emalloc 69 ext/standard/base64.c result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1); safe_emalloc 150 ext/standard/base64.c result = (unsigned char *)safe_emalloc(length, 1, 1); safe_emalloc 4215 ext/standard/basic_functions.c paras = safe_emalloc(sizeof(opt_struct), count, 0); safe_emalloc 4270 ext/standard/basic_functions.c argv = (char **) safe_emalloc(sizeof(char *), (argc + 1), 0); safe_emalloc 4876 ext/standard/basic_functions.c method_args = (zval ***) safe_emalloc(sizeof(zval **), num_elems, 0); safe_emalloc 5125 ext/standard/basic_functions.c shutdown_function_entry.arguments = (zval **) safe_emalloc(sizeof(zval *), shutdown_function_entry.arg_count, 0); safe_emalloc 5726 ext/standard/basic_functions.c tick_fe.arguments = (zval **) safe_emalloc(sizeof(zval *), tick_fe.arg_count, 0); safe_emalloc 250 ext/standard/exec.c cmd = safe_emalloc(2, l, 1); safe_emalloc 340 ext/standard/exec.c cmd = safe_emalloc(4, l, 3); /* worst case */ safe_emalloc 1097 ext/standard/file.c buf = safe_emalloc(sizeof(char), (len + 1), 0); safe_emalloc 933 ext/standard/filestat.c gids=(gid_t *)safe_emalloc(groups, sizeof(gid_t), 0); safe_emalloc 403 ext/standard/formatted_print.c newargs = (zval ***)safe_emalloc(argc, sizeof(zval *), 0); safe_emalloc 206 ext/standard/iptc.c poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1); safe_emalloc 45 ext/standard/levenshtein.c p1 = safe_emalloc((l2 + 1), sizeof(int), 0); safe_emalloc 46 ext/standard/levenshtein.c p2 = safe_emalloc((l2 + 1), sizeof(int), 0); safe_emalloc 189 ext/standard/metaphone.c *phoned_word = safe_emalloc(sizeof(char), word_len, 1); safe_emalloc 192 ext/standard/metaphone.c *phoned_word = safe_emalloc(sizeof(char), max_phonemes, 1); safe_emalloc 132 ext/standard/pack.c formatcodes = safe_emalloc(formatlen, sizeof(*formatcodes), 0); safe_emalloc 133 ext/standard/pack.c formatargs = safe_emalloc(formatlen, sizeof(*formatargs), 0); safe_emalloc 125 ext/standard/password.c buffer = (char *) safe_emalloc(raw_length, 1, 1); safe_emalloc 160 ext/standard/password.c result = safe_emalloc(length, 1, 1); safe_emalloc 399 ext/standard/password.c salt = safe_emalloc(required_salt_len, 1, 1); safe_emalloc 409 ext/standard/password.c salt = safe_emalloc(required_salt_len, 1, 1); safe_emalloc 415 ext/standard/password.c salt = safe_emalloc(required_salt_len, 1, 1); safe_emalloc 426 ext/standard/password.c hash = safe_emalloc(salt_len + hash_format_len, 1, 1); safe_emalloc 154 ext/standard/quot_print.c ret = safe_emalloc(3, length + (((3 * length)/(PHP_QPRINT_MAXL-9)) + 1), 1); safe_emalloc 170 ext/standard/scanf.c cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); safe_emalloc 172 ext/standard/scanf.c cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0); safe_emalloc 327 ext/standard/scanf.c nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); safe_emalloc 502 ext/standard/scanf.c nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); safe_emalloc 381 ext/standard/streamsfuncs.c read_buf = safe_emalloc(1, to_read, 1); safe_emalloc 140 ext/standard/string.c result = (unsigned char *) safe_emalloc(oldlen, 2 * sizeof(char), 1); safe_emalloc 160 ext/standard/string.c register unsigned char *str = (unsigned char *)safe_emalloc(target_length, sizeof(char), 1); safe_emalloc 931 ext/standard/string.c newtext = safe_emalloc(chk, breakcharlen, textlen + 1); safe_emalloc 936 ext/standard/string.c newtext = safe_emalloc(textlen, (breakcharlen + 1), 1); safe_emalloc 2149 ext/standard/string.c dest = safe_emalloc((int)out_len, sizeof(char), 0); safe_emalloc 2604 ext/standard/string.c str = safe_emalloc(2, old_len, 1); safe_emalloc 2896 ext/standard/string.c patterns = safe_emalloc(num_pats, sizeof(*patterns), 0); safe_emalloc 2969 ext/standard/string.c res->shift = safe_emalloc(SHIFT_TAB_SIZE, sizeof(*res->shift->entries), sizeof(*res->shift)); safe_emalloc 2973 ext/standard/string.c res->hash = safe_emalloc(HASH_TAB_SIZE, sizeof(*res->hash->entries), sizeof(*res->hash)); safe_emalloc 2976 ext/standard/string.c res->patterns = safe_emalloc(patnum, sizeof(*res->patterns), 0); safe_emalloc 2986 ext/standard/string.c res->prefix = safe_emalloc(patnum, sizeof(*res->prefix), 0); safe_emalloc 3469 ext/standard/string.c char *new_str = safe_emalloc(4, (length?length:(length=strlen(str))), 1); safe_emalloc 3534 ext/standard/string.c new_str = (char *) safe_emalloc(2, (length ? length : (length = strlen(str))), 1); safe_emalloc 3602 ext/standard/string.c Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len + 1); safe_emalloc 3732 ext/standard/string.c new_str = safe_emalloc(count, str_len - needle_len, length + 1); safe_emalloc 4263 ext/standard/string.c tmp = target = safe_emalloc(repl_cnt, repl_len, str_len + 1); safe_emalloc 4883 ext/standard/string.c result = (char *)safe_emalloc(input_len, mult, 1); safe_emalloc 496 ext/standard/url.c start = to = (unsigned char *) safe_emalloc(3, len, 1); safe_emalloc 606 ext/standard/url.c str = (unsigned char *) safe_emalloc(3, len, 1); safe_emalloc 74 ext/standard/uuencode.c p = *dest = safe_emalloc((size_t) ceil(src_len * 1.38), 1, 46); safe_emalloc 132 ext/standard/uuencode.c p = *dest = safe_emalloc((size_t) ceil(src_len * 0.75), 1, 1); safe_emalloc 752 ext/standard/var.c s = (char *) safe_emalloc(PG(serialize_precision), 1, MAX_LENGTH_OF_DOUBLE + 1); safe_emalloc 181 ext/standard/var_unserializer.c char *str = safe_emalloc(*len, 1, 1); safe_emalloc 37 ext/standard/versioning.c char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; safe_emalloc 1212 ext/sybase_ct/php_sybase_ct.c result->data[i] = (zval *) safe_emalloc(sizeof(zval), result->num_fields, 0); safe_emalloc 1313 ext/sybase_ct/php_sybase_ct.c result->data = (zval **) safe_emalloc(sizeof(zval *), SYBASE_ROWS_BLOCK, 0); safe_emalloc 1321 ext/sybase_ct/php_sybase_ct.c result->tmp_buffer = (char **) safe_emalloc(sizeof(char *), num_fields, 0); safe_emalloc 1322 ext/sybase_ct/php_sybase_ct.c result->lengths = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1323 ext/sybase_ct/php_sybase_ct.c result->indicators = (CS_SMALLINT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1324 ext/sybase_ct/php_sybase_ct.c result->datafmt = (CS_DATAFMT *) safe_emalloc(sizeof(CS_DATAFMT), num_fields, 0); safe_emalloc 1325 ext/sybase_ct/php_sybase_ct.c result->numerics = (unsigned char *) safe_emalloc(sizeof(unsigned char), num_fields, 0); safe_emalloc 1326 ext/sybase_ct/php_sybase_ct.c result->types = (CS_INT *) safe_emalloc(sizeof(CS_INT), num_fields, 0); safe_emalloc 1390 ext/sybase_ct/php_sybase_ct.c result->fields = (sybase_field *) safe_emalloc(sizeof(sybase_field), num_fields, 0); safe_emalloc 343 ext/sysvmsg/sysvmsg.c messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); safe_emalloc 418 ext/sysvmsg/sysvmsg.c messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf)); safe_emalloc 444 ext/sysvmsg/sysvmsg.c messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); safe_emalloc 178 ext/wddx/wddx.c stack->elements = (void **) safe_emalloc(sizeof(void **), STACK_BLOCK_SIZE, 0); safe_emalloc 173 ext/xml/compat.c attrs = safe_emalloc((nb_attributes * 2) + 1, sizeof(int *), 0); safe_emalloc 515 ext/xml/xml.c args = safe_emalloc(sizeof(zval **), argc, 0); safe_emalloc 636 ext/xml/xml.c newbuf = safe_emalloc(len, 4, 1); safe_emalloc 1492 ext/xml/xml.c parser->ltags = safe_emalloc(XML_MAXLEVEL, sizeof(char *), 0); safe_emalloc 122 ext/xsl/xsltprocessor.c value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); safe_emalloc 125 ext/xsl/xsltprocessor.c value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); safe_emalloc 145 ext/xsl/xsltprocessor.c params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); safe_emalloc 233 ext/xsl/xsltprocessor.c fci.params = safe_emalloc(fci.param_count, sizeof(zval**), 0); safe_emalloc 234 ext/xsl/xsltprocessor.c args = safe_emalloc(fci.param_count, sizeof(zval *), 0); safe_emalloc 1375 ext/zip/php_zip.c buffer = safe_emalloc(len, 1, 1); safe_emalloc 2553 ext/zip/php_zip.c buffer = safe_emalloc(len, 1, 2); safe_emalloc 43 ext/zlib/zlib.c return (voidpf)safe_emalloc(items, size, 0); safe_emalloc 235 main/network.c *sal = safe_emalloc((n + 1), sizeof(*sal), 0); safe_emalloc 262 main/network.c *sal = safe_emalloc(2, sizeof(*sal), 0);