Home
last modified time | relevance | path

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

1234

/PHP-7.1/ext/mysqli/
H A Dmysqli_embedded.c55 arguments = safe_emalloc(sizeof(char *), argc + 1, 0); in PHP_FUNCTION()
76 groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(Z_ARRVAL_P(grps)) + 1, 0); in PHP_FUNCTION()
94 groups = safe_emalloc(sizeof(char *), 1, 0); in PHP_FUNCTION()
/PHP-7.1/ext/standard/
H A Dpassword.c123 buffer = (char *) safe_emalloc(raw_length, 1, 1); in php_password_make_salt()
131 result = safe_emalloc(length, 1, 1); in php_password_make_salt()
336 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
345 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
351 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
361 hash = safe_emalloc(salt_len + hash_format_len, 1, 1); in PHP_FUNCTION()
H A Dlevenshtein.c46 p1 = safe_emalloc((l2 + 1), sizeof(zend_long), 0); in reference_levdist()
47 p2 = safe_emalloc((l2 + 1), sizeof(zend_long), 0); in reference_levdist()
H A Dscanf.c170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet()
172 cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0); in BuildCharSet()
326 nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); in ValidateFormat()
501 nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); in ValidateFormat()
H A Dversioning.c37 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version()
/PHP-7.1/ext/com_dotnet/
H A Dcom_olechar.c48 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); in php_com_string_to_olestring()
83 string = (char*)safe_emalloc(length, sizeof(char), 0); in php_com_olestring_to_string()
H A Dcom_saproxy.c105 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval), 0); in saproxy_read_dimension()
165 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_read_dimension()
217 zval *args = safe_emalloc(proxy->dimensions + 2, sizeof(zval), 0); in saproxy_write_dimension()
240 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_write_dimension()
392 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0); in saproxy_clone()
442 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0); in php_com_saproxy_create()
553 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
H A Dcom_com.c503 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_byref()
515 byref_vals = (VARIANT*)safe_emalloc(sizeof(VARIANT), byref_count, 0); in php_com_do_invoke_byref()
611 vargs = (VARIANT*)safe_emalloc(sizeof(VARIANT), nargs, 0); in php_com_do_invoke_by_id()
/PHP-7.1/ext/intl/
H A Dintl_common.h33 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
/PHP-7.1/ext/bcmath/libbcmath/src/
H A Ddiv.c130 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
136 num2 = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
167 mval = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
/PHP-7.1/ext/filter/
H A Dcallback_filter.c36 args = safe_emalloc(sizeof(zval), 1, 0); in php_filter_callback()
/PHP-7.1/ext/dba/
H A Ddba_cdb.c166 new_entry = safe_emalloc(len, 1, 1); in DBA_FETCH_FUNC()
271 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
303 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
/PHP-7.1/ext/gd/libgd/
H A Dgd_color.c36 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.c323 image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); in gdImageCreateFromPngCtx()
325 row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); in gdImageCreateFromPngCtx()
690 row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); in gdImagePngCtxEx()
693 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx()
731 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()
/PHP-7.1/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.1/ext/sysvmsg/
H A Dsysvmsg.c349 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
425 messagebuffer = safe_emalloc(ZSTR_LEN(msg_var.s), 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
454 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
/PHP-7.1/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.1/ext/interbase/
H A Dibase_events.c329 event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); in PHP_FUNCTION()
336 event->events = (char **) safe_emalloc(sizeof(char *), 15, 0); in PHP_FUNCTION()
/PHP-7.1/ext/oci8/
H A Doci8_statement.c790 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
1789 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); in php_oci_bind_array_helper_string()
1794 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_string()
1796 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); in php_oci_bind_array_helper_string()
1850 …bind->array.elements = (oci_phpsized_int *)safe_emalloc(max_table_length, sizeof(oci_phpsized_int… in php_oci_bind_array_helper_number()
1854 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_number()
1891 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); in php_oci_bind_array_helper_double()
1895 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_double()
1933 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); in php_oci_bind_array_helper_date()
1937 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_date()
/PHP-7.1/ext/intl/transliterator/
H A Dtransliterator_methods.c403 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
418 uresult = safe_emalloc( uresult_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
/PHP-7.1/ext/xsl/
H A Dxsltprocessor.c122 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
125 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr()
145 params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); in php_xsl_xslt_make_params()
228 args = safe_emalloc(fci.param_count, sizeof(zval), 0); in xsl_ext_function_php()
/PHP-7.1/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.1/ext/ldap/
H A Dldap.c784 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
846 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
847 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
1492 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); in php_ldap_do_modify()
1493 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
1536 ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); in php_ldap_do_modify()
1895 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
1900 ldap_mods[i] = safe_emalloc(1, sizeof(LDAPMod), 0); in PHP_FUNCTION()
1941 ldap_mods[i]->mod_bvalues = safe_emalloc((num_modvals+1), sizeof(struct berval *), 0); in PHP_FUNCTION()
1950 ldap_mods[i]->mod_bvalues[j] = safe_emalloc(1, sizeof(struct berval), 0); in PHP_FUNCTION()
[all …]

Completed in 129 milliseconds

1234