Home
last modified time | relevance | path

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

1234

/PHP-7.4/Zend/
H A Dzend_alloc.h160 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… macro
194 …, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, of…
H A Dzend_compile.c4726 jmp_opnums = safe_emalloc(sizeof(uint32_t), list->children - 1, 0); in zend_compile_if()
4857 jmpnz_opnums = safe_emalloc(sizeof(uint32_t), cases->children, 0); in zend_compile_switch()
4961 uint32_t *jmp_opnums = safe_emalloc(sizeof(uint32_t), catches->children, 0); in zend_compile_try()
5013 uint32_t *jmp_multicatch = safe_emalloc(sizeof(uint32_t), classes->children - 1, 0); in zend_compile_try()
5350 arg_infos = safe_emalloc(sizeof(zend_arg_info), list->children + 1, 0); in zend_compile_params()
5366 arg_infos = safe_emalloc(sizeof(zend_arg_info), list->children, 0); in zend_compile_params()
H A Dzend_stream.c153 *buf = safe_emalloc(1, file_size, ZEND_MMAP_AHEAD); in zend_stream_fixup()
/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_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()
H A Dcom_handlers.c397 args = (zval *)safe_emalloc(sizeof(zval), nargs, 0); in com_call_method()
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_typeinfo.c543 names = (BSTR*)safe_emalloc((func->cParams + 1), sizeof(BSTR), 0); in php_com_process_typeinfo()
H A Dcom_wrapper.c265 params = (zval *)safe_emalloc(sizeof(zval), pdp->cArgs, 0); in disp_invokeex()
/PHP-7.4/ext/dba/
H A Ddba.c663 args = safe_emalloc(ac, sizeof(zval), 0); in php_dba_open()
685 key = safe_emalloc(keylen, 1, 1); in php_dba_open()
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/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/dba/libflatfile/
H A Dflatfile.c93 value_datum.dptr = safe_emalloc(value_datum.dsize, 1, 1); in flatfile_fetch()
/PHP-7.4/ext/dom/
H A Dnode.c1801 inclusive_ns_prefixes = safe_emalloc(zend_hash_num_elements(Z_ARRVAL_P(ns_prefixes)) + 1, in dom_canonicalization()
H A Dxpath.c113 fci.params = safe_emalloc(fci.param_count, sizeof(zval), 0); in dom_xpath_ext_function_php()
/PHP-7.4/ext/exif/
H A Dexif.c1928 sections = safe_emalloc(ml, 1, 1); in exif_get_sectionlist()
2094 data = safe_emalloc(size, 1, 0); in exif_file_sections_add()
2227 info_value->list = safe_emalloc(length, sizeof(image_info_value), 0); in exif_iif_add_value()
2375 info_data->value.s = safe_emalloc(length, 1, 1); in exif_iif_add_buffer()
2803 value_ptr = safe_emalloc(max(byte_count, 4), 1, 0); in exif_ifd_make_value()
3016 (*result) = safe_emalloc(byte_count, 1, 1); in exif_process_string_raw()
3349 value_ptr = safe_emalloc(byte_count, 1, 0); in exif_process_IFD_TAG_impl()
4234 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4271 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
/PHP-7.4/ext/ftp/
H A Dftp.c2071 ret = safe_emalloc((lines + 1), sizeof(char*), size); in ftp_genlist()
/PHP-7.4/ext/gd/
H A Dgd.c1559 stylearr = safe_emalloc(sizeof(int), num_styles, 0); in PHP_FUNCTION()
3541 points = (gdPointPtr) safe_emalloc(npoints, sizeof(gdPoint), 0); in php_imagepolygon()
/PHP-7.4/ext/gd/libgd/
H A Dgd.c1965 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in gdImageFill()
2033 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in _gdImageFillTiled()
H A Dgd_color_match.c31 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * gdMaxColors, 0); in gdImageColorMatch()
H A Dgd_gd2.c718 chunkData = safe_emalloc(cs * bytesPerPixel, cs, 0); in _gdImageGd2()
733 chunkIdx = safe_emalloc(idxSize, sizeof(t_chunk_info), 0); in _gdImageGd2()
H A Dgd_gif_in.c361 tmp = safe_emalloc(3 * rv, sizeof(char), 1); in GetDataBlock()
H A Dgd_jpeg.c225 row = (JSAMPROW) safe_emalloc(cinfo.image_width * cinfo.input_components, sizeof(JSAMPLE), 0); in _gdImageJpegCtx()
470 row = safe_emalloc(cinfo.output_width * channels, sizeof(JSAMPLE), 0); in gdImageCreateFromJpegCtxEx()
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()

Completed in 121 milliseconds

1234