Home
last modified time | relevance | path

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

1234

/PHP-7.4/ext/standard/
H A Dlevenshtein.c45 p1 = safe_emalloc((l2 + 1), sizeof(zend_long), 0); in reference_levdist()
46 p2 = safe_emalloc((l2 + 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.c33 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version()
/PHP-7.4/ext/intl/
H A Dintl_common.h33 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
/PHP-7.4/ext/bcmath/libbcmath/src/
H A Ddiv.c129 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
134 num2 = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
164 mval = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
/PHP-7.4/ext/com_dotnet/
H A Dcom_olechar.c46 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); in php_com_string_to_olestring()
81 string = (char*)safe_emalloc(length, sizeof(char), 0); in php_com_olestring_to_string()
H A Dcom_saproxy.c104 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval), 0); in saproxy_read_dimension()
169 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_read_dimension()
221 zval *args = safe_emalloc(proxy->dimensions + 2, sizeof(zval), 0); in saproxy_write_dimension()
247 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_write_dimension()
401 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval), 0); in saproxy_clone()
451 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval), 0); in php_com_saproxy_create()
564 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
H A Dcom_com.c507 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_byref()
519 byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); in php_com_do_invoke_byref()
617 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_by_id()
/PHP-7.4/ext/dba/
H A Ddba_cdb.c164 new_entry = safe_emalloc(len, 1, 1); in DBA_FETCH_FUNC()
269 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
301 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
/PHP-7.4/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.c128 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 Dgd_png.c343 image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); in gdImageCreateFromPngCtx()
345 row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); in gdImageCreateFromPngCtx()
716 row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); in gdImagePngCtxEx()
719 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx()
752 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-7.4/ext/intl/msgformat/
H A Dmsgformat_data.c86 UChar *npattern = safe_emalloc(sizeof(UChar)*2, *spattern_len, sizeof(UChar)); in msgformat_fix_quotes()
/PHP-7.4/ext/sysvmsg/
H A Dsysvmsg.c367 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
440 messagebuffer = safe_emalloc(ZSTR_LEN(msg_var.s), 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
469 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
/PHP-7.4/ext/phar/
H A Ddirstream.c228 entry = (char *) safe_emalloc(found - ZSTR_VAL(str_key), 1, 1); in phar_make_dirstream()
233 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
262 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
269 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
/PHP-7.4/ext/opcache/Optimizer/
H A Dcompact_vars.c101 zend_string **names = safe_emalloc(sizeof(zend_string *), num_cvs, 0); in zend_optimizer_compact_vars()
/PHP-7.4/ext/intl/transliterator/
H A Dtransliterator_methods.c402 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
417 uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
/PHP-7.4/ext/oci8/
H A Doci8_statement.c777 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
1761 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); in php_oci_bind_array_helper_string()
1766 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_string()
1768 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); in php_oci_bind_array_helper_string()
1835 …bind->array.elements = (oci_phpsized_int *)safe_emalloc(max_table_length, sizeof(oci_phpsized_int… in php_oci_bind_array_helper_number()
1839 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_number()
1876 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); in php_oci_bind_array_helper_double()
1880 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_double()
1918 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); in php_oci_bind_array_helper_date()
1922 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_date()
/PHP-7.4/ext/xsl/
H A Dxsltprocessor.c120 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
123 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
143 params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); in php_xsl_xslt_make_params()
229 args = safe_emalloc(fci.param_count, sizeof(zval), 0); in xsl_ext_function_php()
/PHP-7.4/ext/dba/libcdb/
H A Dcdb_make.c174 c->split = (struct cdb_hp *) safe_emalloc(memsize, sizeof(struct cdb_hp), 0); in cdb_make_finish()
/PHP-7.4/ext/ldap/
H A Dldap.c409 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in _php_ldap_control_from_array()
450 sort_keys = safe_emalloc((num_keys+1), sizeof(LDAPSortKey*), 0); in _php_ldap_control_from_array()
451 tmpstrings1 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
452 tmpstrings2 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
655 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array()
1473 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
1541 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
1542 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
2228 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
2758 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
[all …]
/PHP-7.4/Zend/
H A Dzend_stream.c153 *buf = safe_emalloc(1, file_size, ZEND_MMAP_AHEAD); in zend_stream_fixup()
/PHP-7.4/ext/dba/libflatfile/
H A Dflatfile.c93 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()

Completed in 77 milliseconds

1234