/php-src/ext/standard/ |
H A D | levenshtein.c | 43 p1 = safe_emalloc((ZSTR_LEN(string2) + 1), sizeof(zend_long), 0); in reference_levdist() 44 p2 = safe_emalloc((ZSTR_LEN(string2) + 1), sizeof(zend_long), 0); in reference_levdist()
|
H A D | scanf.c | 166 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet() 168 cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0); in BuildCharSet() 322 nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); in ValidateFormat() 497 nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); in ValidateFormat()
|
H A D | versioning.c | 31 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version()
|
/php-src/ext/intl/ |
H A D | intl_common.h | 31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
|
/php-src/ext/com_dotnet/ |
H A D | com_saproxy.c | 101 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval), 0); in saproxy_read_dimension() 166 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_read_dimension() 218 zval *args = safe_emalloc(proxy->dimensions + 2, sizeof(zval), 0); in saproxy_write_dimension() 244 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_write_dimension() 384 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval), 0); in saproxy_clone() 434 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval), 0); in php_com_saproxy_create() 545 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
|
H A D | com_olechar.c | 44 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); in php_com_string_to_olestring()
|
H A D | com_com.c | 484 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_byref() 496 byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); in php_com_do_invoke_byref() 594 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_by_id()
|
/php-src/ext/gd/libgd/ |
H A D | gd_color_match.c | 31 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * gdMaxColors, 0); in gdImageColorMatch()
|
H A D | wbmp.c | 128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp() 198 …if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == N… in readwbmp()
|
H A D | gd_png.c | 348 image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); in gdImageCreateFromPngCtx() 350 row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); in gdImageCreateFromPngCtx() 721 row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); in gdImagePngCtxEx() 724 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx() 757 row_pointers = safe_emalloc(height, sizeof(png_bytep), 0); in gdImagePngCtxEx()
|
H A D | gdxpm.c | 45 colors = (int *) safe_emalloc(number, sizeof(int), 0); in gdImageCreateFromXpm()
|
H A D | gd_topal.c | 711 boxlist = (boxptr) safe_emalloc(desired_colors, sizeof (box), 1); in select_colors() 1379 (int *) safe_emalloc ((MAXJSAMPLE * 2 + 1), sizeof (int), 0); in init_error_limit() 1528 cquantize->histogram = (hist3d) safe_emalloc (HIST_C0_ELEMS, sizeof (hist2d), 0); in gdImageTrueColorToPaletteBody() 1532 (hist2d) safe_emalloc (HIST_C1_ELEMS * HIST_C2_ELEMS, sizeof (histcell), 0); in gdImageTrueColorToPaletteBody() 1539 cquantize->fserrors = (FSERRPTR) safe_emalloc (3, sizeof (FSERROR), 0); in gdImageTrueColorToPaletteBody()
|
H A D | gd_jpeg.c | 223 row = (JSAMPROW) safe_emalloc(cinfo.image_width * cinfo.input_components, sizeof(JSAMPLE), 0); in _gdImageJpegCtx() 467 row = safe_emalloc(cinfo.output_width * channels, sizeof(JSAMPLE), 0); in gdImageCreateFromJpegCtxEx()
|
/php-src/ext/intl/msgformat/ |
H A D | msgformat_data.c | 84 UChar *npattern = safe_emalloc(sizeof(UChar)*2, *spattern_len, sizeof(UChar)); in msgformat_fix_quotes()
|
/php-src/ext/sysvmsg/ |
H A D | sysvmsg.c | 305 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION() 375 messagebuffer = safe_emalloc(ZSTR_LEN(msg_var.s), 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION() 404 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | recmul.c | 157 BC_VECTOR *buf = safe_emalloc(n1_arr_size + n2_arr_size + prod_arr_size, sizeof(BC_VECTOR), 0); in bc_standard_mul() 204 BC_VECTOR *buf = safe_emalloc(n1_arr_size + n1_arr_size + prod_arr_size, sizeof(BC_VECTOR), 0); in bc_standard_square()
|
/php-src/Zend/Optimizer/ |
H A D | compact_vars.c | 101 zend_string **names = safe_emalloc(sizeof(zend_string *), num_cvs, 0); in zend_optimizer_compact_vars()
|
/php-src/ext/intl/transliterator/ |
H A D | transliterator_methods.c | 357 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION() 372 uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
|
/php-src/ext/phar/ |
H A D | dirstream.c | 188 entry = safe_emalloc(keylen, 1, 1); in phar_make_dirstream() 211 entry = safe_emalloc(has_slash - save + dirlen, 1, 1); in phar_make_dirstream() 218 entry = safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
|
/php-src/ext/ldap/ |
H A D | ldap.c | 509 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in _php_ldap_control_from_array() 510 tmpstrings1 = safe_emalloc(num_attribs, sizeof(zend_string*), 0); in _php_ldap_control_from_array() 550 sort_keys = safe_emalloc((num_keys+1), sizeof(LDAPSortKey*), 0); in _php_ldap_control_from_array() 551 tmpstrings1 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array() 552 tmpstrings2 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array() 756 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array() 1465 ldap_attrs = safe_emalloc(num_attribs+1, sizeof(char *), 0); in php_ldap_do_search() 1550 lds = safe_emalloc(num_links, sizeof(ldap_linkdata), 0); in php_ldap_do_search() 1551 rcs = safe_emalloc(num_links, sizeof(*rcs), 0); in php_ldap_do_search() 2221 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); in php_ldap_do_modify() [all …]
|
/php-src/ext/dba/libcdb/ |
H A D | cdb_make.c | 172 c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0); in cdb_make_finish()
|
/php-src/main/streams/ |
H A D | glob_wrapper.c | 247 pglob->open_basedir_indexmap = (size_t *) safe_emalloc( in php_glob_stream_opener()
|
/php-src/Zend/ |
H A D | zend_stream.c | 164 *buf = safe_emalloc(1, file_size, ZEND_MMAP_AHEAD); in zend_stream_fixup()
|
H A D | zend_alloc.h | 154 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… macro 190 …, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, of…
|
/php-src/ext/dba/libflatfile/ |
H A D | flatfile.c | 89 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()
|