Home
last modified time | relevance | path

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

12345

/PHP-5.5/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(HASH_OF(grps)) + 1, 0); in PHP_FUNCTION()
94 groups = safe_emalloc(sizeof(char *), 1, 0); in PHP_FUNCTION()
/PHP-5.5/ext/bcmath/libbcmath/src/
H A Dnum2str.c54 str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch);
56 str = (char *) safe_emalloc (1, num->n_len, 1 + signch);
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-5.5/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.c110 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval *), 0); in saproxy_read_dimension()
170 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_read_dimension()
222 zval **args = safe_emalloc(proxy->dimensions + 2, sizeof(zval *), 0); in saproxy_write_dimension()
245 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_write_dimension()
429 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0); in saproxy_clone()
453 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0); in php_com_saproxy_create()
572 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
/PHP-5.5/ext/standard/
H A Dpassword.c125 buffer = (char *) safe_emalloc(raw_length, 1, 1); in php_password_make_salt()
160 result = safe_emalloc(length, 1, 1); in php_password_make_salt()
399 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
409 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
415 salt = safe_emalloc(required_salt_len, 1, 1); in PHP_FUNCTION()
426 hash = safe_emalloc(salt_len + hash_format_len, 1, 1); in PHP_FUNCTION()
H A Dlevenshtein.c45 p1 = safe_emalloc((l2 + 1), sizeof(int), 0); in reference_levdist()
46 p2 = safe_emalloc((l2 + 1), sizeof(int), 0); in reference_levdist()
H A Dbase64.c69 result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1); in php_base64_encode()
150 result = (unsigned char *)safe_emalloc(length, 1, 1); in php_base64_decode_ex()
H A Duuencode.c74 p = *dest = safe_emalloc((size_t) ceil(src_len * 1.38), 1, 46); in php_uuencode()
132 p = *dest = safe_emalloc((size_t) ceil(src_len * 0.75), 1, 1); in php_uudecode()
H A Dmetaphone.c189 *phoned_word = safe_emalloc(sizeof(char), word_len, 1); in metaphone()
192 *phoned_word = safe_emalloc(sizeof(char), max_phonemes, 1); in metaphone()
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()
327 nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); in ValidateFormat()
502 nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); in ValidateFormat()
/PHP-5.5/ext/intl/
H A Dintl_common.h31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
/PHP-5.5/ext/filter/
H A Dcallback_filter.c36 args = safe_emalloc(sizeof(zval **), 1, 0); in php_filter_callback()
H A Dsanitizing_filters.c90 p = str = (unsigned char *) safe_emalloc(3, Z_STRLEN_P(value), 1); in php_filter_encode_url()
121 buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); in php_filter_strip()
162 buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); in filter_map_apply()
/PHP-5.5/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-5.5/ext/ereg/
H A Dereg.c258 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_eprint()
268 message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0); in php_ereg_eprint()
438 buf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
514 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
529 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
742 tmp = safe_emalloc(string_len, 4, 1); in PHP_FUNCTION()
/PHP-5.5/ext/gd/libgd/
H A Dgd_color.c36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); in gdImageColorMatch()
H A Dwbmp.c128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp()
195 …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()
/PHP-5.5/ext/sysvmsg/
H A Dsysvmsg.c343 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
418 messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
444 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
/PHP-5.5/ext/interbase/
H A Dibase_events.c335 event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); in PHP_FUNCTION()
341 event->events = (char **) safe_emalloc(sizeof(char *),ZEND_NUM_ARGS()-i,0); in PHP_FUNCTION()
/PHP-5.5/ext/phar/
H A Ddirstream.c240 entry = (char *) safe_emalloc(found - str_key, 1, 1); in phar_make_dirstream()
245 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
277 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
284 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
/PHP-5.5/ext/oci8/
H A Doci8_statement.c676 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute()
1527 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); in php_oci_bind_array_helper_string()
1532 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_string()
1534 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); in php_oci_bind_array_helper_string()
1585 bind->array.elements = (ub4 *)safe_emalloc(max_table_length, sizeof(ub4), 0); in php_oci_bind_array_helper_number()
1589 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_number()
1623 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); in php_oci_bind_array_helper_double()
1627 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_double()
1661 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); in php_oci_bind_array_helper_date()
1665 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_date()
/PHP-5.5/ext/pcre/
H A Dphp_pcre.c665 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_match_impl()
669 match_sets = (zval **)safe_emalloc(num_subpats, sizeof(zval *), 0); in php_pcre_match_impl()
1107 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_replace_impl()
1110 result = safe_emalloc(alloc_len, sizeof(char), 0); in php_pcre_replace_impl()
1240 new_buf = safe_emalloc(alloc_len, sizeof(char), 0); in php_pcre_replace_impl()
1563 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_split_impl()
1721 out_str = safe_emalloc(4, in_str_len, 1); in PHP_FUNCTION()
1829 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_grep_impl()
/PHP-5.5/ext/hash/
H A Dhash.c179 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash()
307 char *hex_digest = safe_emalloc(ops->digest_size, 2, 1); in php_hash_do_hash_hmac()
546 char *hex_digest = safe_emalloc(digest_len,2,1); in PHP_FUNCTION()
677 result = safe_emalloc(loops, ops->digest_size, 0); in PHP_FUNCTION()
679 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
724 returnval = safe_emalloc(length, 1, 1); in PHP_FUNCTION()

Completed in 98 milliseconds

12345