/third_party/backends/backend/ |
H A D | mustek_usb2_reflective.c | 633 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3); in Reflective_AdjustAD() 636 DBG (DBG_FUNC, "Reflective_AdjustAD: lpCalData malloc error\n"); in Reflective_AdjustAD() 654 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Reflective_AdjustAD() 1142 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight); in Reflective_FindTopLeft() 1145 DBG (DBG_FUNC, "Reflective_FindTopLeft: lpCalData malloc error\n"); in Reflective_FindTopLeft() 1196 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Reflective_FindTopLeft() 1390 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize); in Reflective_LineCalibration16Bits() 1391 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize); in Reflective_LineCalibration16Bits() 1396 "Reflective_LineCalibration16Bits: lpWhiteData or lpDarkData malloc error \n"); in Reflective_LineCalibration16Bits() 1515 SANE_Byte * lpBuf = (SANE_Byte *) malloc (5 in Reflective_LineCalibration16Bits() [all...] |
H A D | mustek_usb2_transparent.c | 669 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3); in Transparent_AdjustAD() 689 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Transparent_AdjustAD() 693 "Transparent_AdjustAD: Leave Transparent_AdjustAD for malloc fail!\n"); in Transparent_AdjustAD() 1156 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight); in Transparent_FindTopLeft() 1159 DBG (DBG_FUNC, "Transparent_FindTopLeft: lpCalData malloc fail\n"); in Transparent_FindTopLeft() 1185 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Transparent_FindTopLeft() 1328 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize); in Transparent_LineCalibration16Bits() 1329 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize); in Transparent_LineCalibration16Bits() 1333 "Transparent_LineCalibration16Bits: lpWhiteData or lpDarkData malloc fail\n"); in Transparent_LineCalibration16Bits() 1369 SANE_Byte * lpBuf = (SANE_Byte *) malloc (5 in Transparent_LineCalibration16Bits() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cnmdptst.c | 90 unewp=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestPatterns() 104 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestPatterns() 142 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestQuotes() 171 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestQuotes() 256 upat=(UChar*)malloc(sizeof(UChar) * (strlen(pat[p])+1) ); in TestExponential() 275 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestExponential() 307 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestExponential() 353 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("*#,##0.00;-*#,##0.00") + 1) ); in TestCurrencySign() 364 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestCurrencySign() 374 pat=(UChar*)malloc(sizeo in TestCurrencySign() [all...] |
H A D | capitst.c | 369 disName=(UChar*)malloc(sizeof(UChar) * (len+1)); in TestProperty() 397 UChar *buffer = (UChar *)malloc(200000*sizeof(UChar)); in TestProperty() 438 disName=(UChar*)malloc(sizeof(UChar) * (len+1)); in TestProperty() 579 test1=(UChar*)malloc(sizeof(UChar) * 6); in TestCompare() 580 test2=(UChar*)malloc(sizeof(UChar) * 6); in TestCompare() 948 buffer = (uint8_t *) malloc(size); in TestCloneBinary() 967 k1 = (uint8_t *) malloc(sizeof(uint8_t) * l1); in TestCloneBinary() 968 k2 = (uint8_t *) malloc(sizeof(uint8_t) * l2); in TestCloneBinary() 1015 sortKey1 = (uint8_t*)malloc(sortKeyLen1+1); in TestBengaliSortKey() 1021 sortKey2 = (uint8_t*)malloc(sortKeyLen in TestBengaliSortKey() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | session.c | 463 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_syn_reply() 534 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_goaway() 591 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_data() 619 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_data() 756 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_rst_stream() 801 if(NULL == (session->write_buffer = malloc(total_size))) in SPDYF_handler_write_window_update() 1190 if(NULL == (control_frame = malloc(sizeof(struct SPDYF_Control_Frame)))) in SPDYF_session_idle() 1225 if(NULL == (data_frame = malloc(sizeof(struct SPDYF_Data_Frame)))) in SPDYF_session_idle() 1414 if (NULL == (session = malloc (sizeof (struct SPDY_Session)))) in SPDYF_session_accept() 1435 if (NULL == (session->read_buffer = malloc (sessio in SPDYF_session_accept() [all...] |
/third_party/musl/scripts/build_lite/ |
H A D | Makefile | 146 mv -f src/malloc/liteos_a/user_debug/* src/malloc/ && \ 166 --with-malloc=oldmalloc \ 176 --with-malloc=oldmalloc \ 213 mv -f src/malloc/jemalloc/linux/* src/malloc/jemalloc/ && \ 214 mv -f src/malloc/linux/* src/malloc/ && \ 236 --with-malloc=oldmalloc \
|
/third_party/mesa3d/src/mesa/main/ |
H A D | debug.c | 278 buffer = malloc(img->Width * img->Height in write_texture_image() 329 buffer = malloc(rb->Width * rb->Height * 4); in _mesa_write_renderbuffer_image() 461 buf = malloc(w * h * 4); in _mesa_dump_color_buffer() 493 buf = malloc(w * h * 4); /* 4 bpp */ in _mesa_dump_depth_buffer() 494 buf2 = malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_depth_buffer() 529 buf = malloc(w * h); /* 1 bpp */ in _mesa_dump_stencil_buffer() 530 buf2 = malloc(w * h * 3); /* 3 bpp */ in _mesa_dump_stencil_buffer() 574 GLubyte *buf = malloc(w * h * 4 * sizeof(GLubyte)); in _mesa_dump_image() 585 GLubyte *buf = malloc(w * h * sizeof(GLubyte)); in _mesa_dump_image()
|
/test/xts/acts/applications/kitframework_ipcamera/ |
H A D | kitfwk_oem_api_test.cpp | 82 char* serverInfo = (char*)malloc(MAX_SERVER_INFO_LEN + 1);
in HWTEST_F() 84 LOG("malloc fail, can't do test!");
in HWTEST_F() 153 char* statusRead = (char*)malloc(len + 1);
in HWTEST_F() 155 LOG("malloc fail, can't do test!");
in HWTEST_F() 202 char* ticketRead = (char*)malloc(len + 1);
in HWTEST_F() 204 LOG("malloc fail, can't do test!");
in HWTEST_F() 250 char* tokenRead = (char*)malloc(len + 1);
in HWTEST_F() 252 LOG("malloc fail, can't do test!");
in HWTEST_F() 331 char* tokenRead = (char*)malloc(len + 1);
in HWTEST_F() 333 LOG("malloc fai in HWTEST_F() [all...] |
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/ |
H A D | hackbench.c | 242 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) + num_fds * sizeof(int)); in group() 244 barf("malloc()"); in group() 250 struct receiver_context *ctx = malloc(sizeof(*ctx)); in group() 253 barf("malloc()"); in group() 328 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in main() 329 snd_ctx_tab = malloc(num_groups * sizeof(void *)); in main() 330 rev_ctx_tab = malloc(num_groups * num_fds * sizeof(void *)); in main() 332 barf("main:malloc()"); in main()
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format_bptc.c | 61 temp_block = malloc(width * height * 4 * sizeof(uint8_t)); in util_format_bptc_rgba_unorm_unpack_rgba_float() 82 temp_block = malloc(width * height * 4 * sizeof(uint8_t)); in util_format_bptc_rgba_unorm_pack_rgba_float() 139 temp_block = malloc(width * height * 4 * sizeof(uint8_t)); in util_format_bptc_srgba_unpack_rgba_float() 184 temp_block = malloc(width * height * 4 * sizeof(float)); in util_format_bptc_rgb_float_unpack_rgba_8unorm() 247 temp_block = malloc(width * height * 4 * sizeof(float)); in util_format_bptc_rgb_ufloat_unpack_rgba_8unorm()
|
/third_party/curl/lib/ |
H A D | curl_memory.h | 31 * that use memory related functions strdup, malloc, calloc, realloc 43 * clone implementation while using malloc. Extra care needed inside 64 #undef malloc macro 144 * libcurl's 'memory tracking' system defines strdup, malloc, calloc, 154 #undef malloc macro 155 #define malloc(size) Curl_cmalloc(size) macro
|
/third_party/libuv/docs/code/tcp-echo-server/ |
H A D | main.c | 24 buf->base = (char*) malloc(suggested_size); in alloc_buffer() 41 write_req_t *req = (write_req_t*) malloc(sizeof(write_req_t)); in echo_read() 62 uv_tcp_t *client = (uv_tcp_t*) malloc(sizeof(uv_tcp_t)); in on_new_connection()
|
/third_party/musl/src/thread/ |
H A D | pthread_atfork.c | 6 #define malloc __libc_malloc macro 33 // The gwpasan child will unlock malloc mutex, so execute it first to avoid deadlocks. in __fork_handler() 47 struct atfork_funcs *new = malloc(sizeof *new); in pthread_atfork_for_gwpasan() 61 struct atfork_funcs *new = malloc(sizeof *new); in pthread_atfork()
|
/third_party/ltp/tools/sparse/sparse-src/validation/ |
H A D | integer-const-expr.c | 1 extern void *malloc(unsigned long); 66 TEST(0, malloc(8)); in main() 67 TEST(0, v = malloc(8)); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | readlink.c | 33 buf = malloc(sb.st_size + MALLOCLENGTH); in readlink_0100() 66 buf = malloc(sb.st_size + MALLOCLENGTH); in readlink_0200() 97 buf = malloc(sb.st_size + MALLOCLENGTH); in readlink_0300()
|
/third_party/popt/src/ |
H A D | system.h | 45 #define xmalloc(_size) (malloc(_size) ? : vmefail()) 48 #define xstrdup(_str) (strcpy((malloc(strlen(_str)+1) ? : vmefail()), (_str))) 50 #define xmalloc(_size) malloc(_size)
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | PlacementAllocatedTests.cpp | 61 void* ptr = malloc(sizeof(Foo)); in TEST_F() 78 void* ptr = malloc(sizeof(Bar)); in TEST_F() 99 void* ptr = malloc(sizeof(Bar)); in TEST_F()
|
/third_party/qrcodegen/c/ |
H A D | qrcodegen-demo.c | 144 uint8_t *segBuf0 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, strlen(silver0)) * sizeof(uint8_t)); in doSegmentDemo() 145 uint8_t *segBuf1 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, strlen(silver1)) * sizeof(uint8_t)); in doSegmentDemo() 147 perror("malloc"); in doSegmentDemo() 185 uint8_t *bytes = malloc(strlen(golden0) * sizeof(uint8_t)); in doSegmentDemo() 187 perror("malloc"); in doSegmentDemo() 192 uint8_t *segBuf0 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_BYTE, strlen(golden0)) * sizeof(uint8_t)); in doSegmentDemo() 193 uint8_t *segBuf1 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_NUMERIC, strlen(golden1)) * sizeof(uint8_t)); in doSegmentDemo() 194 uint8_t *segBuf2 = malloc(qrcodegen_calcSegmentBufferSize(qrcodegen_Mode_ALPHANUMERIC, strlen(golden2)) * sizeof(uint8_t)); in doSegmentDemo() 196 perror("malloc"); in doSegmentDemo()
|
/test/xts/acts/arkui/libuv/src/ |
H A D | ActsLibuvTest.cpp | 117 uv_req_t* req = (uv_req_t *)malloc(sizeof(uv_req_t)); in HWTEST_F() 118 uv_req_t* setReq = (uv_req_t *)malloc(sizeof(uv_req_t)); in HWTEST_F() 152 uv_udp_t* handle = (uv_udp_t *)malloc(sizeof(uv_udp_t)); in HWTEST_F() 199 uv_lib_t *lib = (uv_lib_t *)malloc(sizeof(uv_lib_t)); in HWTEST_F()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | iconvndk.cpp | 22 #include <malloc.h>
36 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in Iconv() 60 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in IconvOpen() 87 char *inbuf = static_cast<char *>(malloc(sizeof("hello,world!")));
in IconvClose()
|
/third_party/elfutils/libelf/ |
H A D | elf_getdata_rawchunk.c | 101 rawchunk = malloc (size); in elf_getdata_rawchunk() 111 rawchunk = malloc (size); in elf_getdata_rawchunk() 142 /* A malloc'd block is always sufficiently aligned. */ in elf_getdata_rawchunk() 145 buffer = malloc (size); in elf_getdata_rawchunk() 160 buffer = malloc (size); in elf_getdata_rawchunk()
|
/third_party/ffmpeg/tools/ |
H A D | yuvcmp.c | 56 Y[i] = malloc(lsiz); in main() 57 C[0][i] = malloc(csiz); in main() 58 C[1][i] = malloc(csiz); in main() 74 mberrors = malloc(mb_x * mb_y); in main()
|
/third_party/nghttp2/fuzz/ |
H A D | fuzz_frames.cc | 15 uint8_t *n = (uint8_t *)malloc(s1.size()); in fuzz_make_nv() 18 uint8_t *v = (uint8_t *)malloc(s2.size()); in fuzz_make_nv() 56 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in check_frame_pack_headers() 116 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in check_frame_push_promise()
|
/third_party/musl/src/locale/ |
H A D | locale_map.c | 10 #define malloc __libc_malloc macro 98 if (!new && (new = malloc(sizeof *new))) { in __get_locale() 123 new = malloc(sizeof *new); in __get_locale() 143 if (!new && (new = malloc(sizeof *new))) { in __get_locale()
|
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/ |
H A D | SendRequestTest.cpp | 185 demoFeature->latestRequest = (char *)malloc(requestLen * sizeof(char)); in FEATURE_OnMessage() 389 request.data = malloc(request.len); in HWTEST_F() 429 request.data = malloc(request.len); in HWTEST_F() 468 request.data = malloc(request.len); in HWTEST_F() 501 request.data = malloc(request.len); in HWTEST_F() 541 request.data = malloc(request.len); in HWTEST_F() 579 request.data = malloc(strlen(body) + 1); in HWTEST_F() 599 request2.data = malloc(request2.len); in HWTEST_F() 630 request.data = malloc(request.len); in HWTEST_F() 677 request.data = malloc(reques in HWTEST_F() [all...] |