Home
last modified time | relevance | path

Searched refs:safe_emalloc (Results 1 – 25 of 83) sorted by relevance

1234

/PHP-8.2/ext/standard/
H A Dlevenshtein.c35 p1 = safe_emalloc((ZSTR_LEN(string2) + 1), sizeof(zend_long), 0); in reference_levdist()
36 p2 = safe_emalloc((ZSTR_LEN(string2) + 1), sizeof(zend_long), 0); in reference_levdist()
H A Dscanf.c166 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 Dversioning.c31 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version()
/PHP-8.2/ext/intl/
H A Dintl_common.h31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
/PHP-8.2/ext/com_dotnet/
H A Dcom_saproxy.c101 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()
546 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
H A Dcom_olechar.c44 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); in php_com_string_to_olestring()
H A Dcom_com.c485 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_byref()
497 byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); in php_com_do_invoke_byref()
595 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_by_id()
/PHP-8.2/ext/bcmath/libbcmath/src/
H A Ddiv.c125 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
130 num2 = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
160 mval = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
/PHP-8.2/ext/gd/libgd/
H A Dgd_color_match.c31 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * gdMaxColors, 0); in gdImageColorMatch()
H A Dwbmp.c129 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp()
199 …if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == N… in readwbmp()
H A Dgd_png.c348 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 Dgdxpm.c45 colors = (int *) safe_emalloc(number, sizeof(int), 0); in gdImageCreateFromXpm()
H A Dgd_topal.c711 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()
/PHP-8.2/ext/intl/msgformat/
H A Dmsgformat_data.c84 UChar *npattern = safe_emalloc(sizeof(UChar)*2, *spattern_len, sizeof(UChar)); in msgformat_fix_quotes()
/PHP-8.2/ext/sysvmsg/
H A Dsysvmsg.c306 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
384 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
413 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
/PHP-8.2/ext/phar/
H A Ddirstream.c217 entry = (char *) safe_emalloc(found - ZSTR_VAL(str_key), 1, 1); in phar_make_dirstream()
222 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
251 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
258 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
/PHP-8.2/Zend/Optimizer/
H A Dcompact_vars.c101 zend_string **names = safe_emalloc(sizeof(zend_string *), num_cvs, 0); in zend_optimizer_compact_vars()
/PHP-8.2/ext/oci8/
H A Doci8_statement.c773 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
1759 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); in php_oci_bind_array_helper_string()
1764 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_string()
1766 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); in php_oci_bind_array_helper_string()
1833 …bind->array.elements = (oci_phpsized_int *)safe_emalloc(max_table_length, sizeof(oci_phpsized_int… in php_oci_bind_array_helper_number()
1837 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_number()
1874 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); in php_oci_bind_array_helper_double()
1878 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_double()
1916 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); in php_oci_bind_array_helper_date()
1920 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_date()
/PHP-8.2/ext/intl/transliterator/
H A Dtransliterator_methods.c360 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
375 uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
/PHP-8.2/ext/xsl/
H A Dxsltprocessor.c42 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
45 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
65 params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); in php_xsl_xslt_make_params()
151 args = safe_emalloc(fci.param_count, sizeof(zval), 0); in xsl_ext_function_php()
/PHP-8.2/ext/ldap/
H A Dldap.c513 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in _php_ldap_control_from_array()
554 sort_keys = safe_emalloc((num_keys+1), sizeof(LDAPSortKey*), 0); in _php_ldap_control_from_array()
555 tmpstrings1 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
556 tmpstrings2 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
759 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array()
1398 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
1468 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
1469 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
2134 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
2666 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
[all …]
/PHP-8.2/ext/dba/libcdb/
H A Dcdb_make.c172 c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0); in cdb_make_finish()
/PHP-8.2/main/streams/
H A Dglob_wrapper.c246 pglob->open_basedir_indexmap = (size_t *) safe_emalloc( in php_glob_stream_opener()
/PHP-8.2/Zend/
H A Dzend_stream.c164 *buf = safe_emalloc(1, file_size, ZEND_MMAP_AHEAD); in zend_stream_fixup()
/PHP-8.2/ext/dba/libflatfile/
H A Dflatfile.c89 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()

Completed in 72 milliseconds

1234