/third_party/libxml2/ |
D | libxml2.spec | 32 Patch6014: backport-Avoid-double-free-if-malloc-fails-in-inputPush.patch 48 Patch6030: backport-malloc-fail-Fix-memory-leak-in-xmlCreatePushParserCt.patch 49 Patch6031: backport-malloc-fail-Fix-memory-leak-in-xmlStaticCopyNodeList.patch 50 Patch6032: backport-malloc-fail-Fix-memory-leak-in-xmlNewPropInternal.patch 51 Patch6033: backport-malloc-fail-Fix-memory-leak-in-xmlNewDocNodeEatName.patch 52 Patch6034: backport-malloc-fail-Fix-infinite-loop-in-xmlSkipBlankChars.patch 53 Patch6035: backport-malloc-fail-Fix-memory-leak-in-xmlSAX2ExternalSubset.patch 54 Patch6036: backport-malloc-fail-Fix-memory-leak-in-xmlParseReference.patch 55 Patch6037: backport-malloc-fail-Fix-use-after-free-in-xmlXIncludeAddNode.patch 56 Patch6038: backport-malloc-fail-Fix-memory-leak-in-xmlStringGetNodeList.patch [all …]
|
/third_party/unity/extras/memory/test/ |
D | unity_memory_Test.c | 59 m = malloc(10); in test_ForceMallocFail() 61 mfails = malloc(10); in test_ForceMallocFail() 68 void* m1 = malloc(10); in test_ReallocSmallerIsUnchanged() 77 void* m1 = malloc(10); in test_ReallocSameIsUnchanged() 87 void* m1 = malloc(10); in test_ReallocLargerNeeded() 104 void* m1 = malloc(10); in test_ReallocSizeZeroFreesMemAndReturnsNullPointer() 166 void* m = malloc(10); in test_DetectsLeak() 184 void* m = malloc(10); in test_BufferOverrunFoundDuringFree() 203 void* m = malloc(10); in test_BufferOverrunFoundDuringRealloc() 222 void* m = malloc(10); in test_BufferGuardWriteFoundDuringFree() [all …]
|
/third_party/musl/libc-test/src/regression/ |
D | test_src_regression.gni | 22 "malloc-0", 23 "malloc-brk-fail", 24 "malloc-double-free-check", 25 "malloc-oom", 26 "malloc-modify-pointer", 27 "malloc-multi-thread-performance", 28 "malloc-safe-unlink", 29 "malloc-encode-pointer", 30 "malloc-free-performance", 31 "malloc-pressure", [all …]
|
D | malloc-random.c | 33 void *p = malloc(MALLOC_SIZE_S); in main() 34 void *q = malloc(MALLOC_SIZE_S); in main() 35 void *r = malloc(MALLOC_SIZE_S); in main() 47 p = malloc(MALLOC_SIZE_L); in main() 48 q = malloc(MALLOC_SIZE_L); in main() 49 r = malloc(MALLOC_SIZE_L); in main()
|
/third_party/cJSON/tests/unity/extras/fixture/test/ |
D | unity_fixture_Test.c | 52 m = malloc(10); in TEST() 54 mfails = malloc(10); in TEST() 61 void* m1 = malloc(10); in TEST() 69 void* m1 = malloc(10); in TEST() 77 void* m1 = malloc(10); in TEST() 96 void* m1 = malloc(10); in TEST() 372 void* m = malloc(10); in TEST() 390 void* m = malloc(10); in TEST() 409 void* m = malloc(10); in TEST() 428 void* m = malloc(10); in TEST() [all …]
|
/third_party/lz4/ossfuzz/ |
D | round_trip_fuzzer.c | 25 char* const dstPlusLargePrefix = (char*)malloc(dstCapacity + largeSize); in LLVMFuzzerTestOneInput() 28 char* const largeDict = (char*)malloc(largeSize); in LLVMFuzzerTestOneInput() 32 char* const rt = (char*)malloc(size); in LLVMFuzzerTestOneInput() 46 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput() 57 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput() 68 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput() 79 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput() 90 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput() 101 char* const partial = (char*)malloc(partialCapacity); in LLVMFuzzerTestOneInput()
|
/third_party/musl/src/locale/ |
D | localeconv.c | 89 g_lconv_icures.decimal_point = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 90 g_lconv_icures.thousands_sep = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 91 g_lconv_icures.int_curr_symbol = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 92 g_lconv_icures.currency_symbol = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 93 g_lconv_icures.mon_decimal_point = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 94 g_lconv_icures.mon_thousands_sep = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 95 g_lconv_icures.positive_sign = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures() 96 g_lconv_icures.negative_sign = (char*)malloc(ICU_BUFFER_SIZE); in refresh_lconv_icures()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | test-repacker.cc | 78 void* out_buffer = malloc (buffer_size); in run_resolve_overflow_test() 787 void* buffer = malloc (buffer_size); in test_sort_kahn_1() 815 void* buffer = malloc (buffer_size); in test_sort_kahn_2() 849 void* buffer = malloc (buffer_size); in test_sort_shortest() 882 void* buffer = malloc (buffer_size); in test_duplicate_leaf() 918 void* buffer = malloc (buffer_size); in test_duplicate_interior() 960 void* buffer_1 = malloc (buffer_size); in test_serialize() 965 void* buffer_2 = malloc (buffer_size); in test_serialize() 983 void* buffer = malloc (buffer_size); in test_will_overflow_1() 996 void* buffer = malloc (buffer_size); in test_will_overflow_2() [all …]
|
/third_party/cJSON/tests/ |
D | minify_tests.c | 48 char* minified = (char*) malloc(sizeof(to_minify)); in cjson_minify_should_remove_single_line_comments() 62 char* minified = (char*) malloc(sizeof(to_minify)); in cjson_minify_should_remove_spaces() 76 char* minified = (char*) malloc(sizeof(to_minify)); in cjson_minify_should_remove_multiline_comments() 90 char* minified = (char*) malloc(sizeof(to_minify)); in cjson_minify_should_not_modify_strings() 146 char *buffer = (char*) malloc(sizeof(to_minify)); in cjson_minify_should_minify_json()
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cmsgtst.c | 67 testCasePatterns[i]=(UChar*)malloc(sizeof(UChar) * strSize); in InitStrings() 72 testResultStrings[i] = (UChar*)malloc(sizeof(UChar) * strSize); in InitStrings() 119 str=(UChar*)malloc(sizeof(UChar) * 7); in MessageFormatTest() 122 result=(UChar*)malloc(sizeof(UChar) * 1); in MessageFormatTest() 166 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest() 217 result = (UChar*) malloc(U_SIZEOF_UCHAR*resultLength+2); in MessageFormatTest() 290 str=(UChar*)malloc(sizeof(UChar) * 15); in TestSampleMessageFormat() 295 result=(UChar*)malloc(sizeof(UChar) * 1); in TestSampleMessageFormat() 423 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI() 501 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParseWithError() [all …]
|
D | cdtdptst.c | 64 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); in TestTwoDigitYearDSTParse() 78 s=(UChar*)malloc(sizeof(UChar) * (strlen("03-Apr-04 2:20:47 o'clock AM PST")+1) ); in TestTwoDigitYearDSTParse() 135 s=(UChar*)malloc(sizeof(UChar) * (strlen("01/01/1997 10:11:42 AM")+1) ); in TestPartialParse994() 169 str=(UChar*)malloc(sizeof(UChar) * (strlen(s) + 1) ); in tryPat994() 171 pat=(UChar*)malloc(sizeof(UChar) * (strlen(pattern) + 1) ); in tryPat994() 207 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("yyyyMMddHHmmssSSS")+1) ); in TestRunTogetherPattern985() 256 pattern=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestCzechMonths459() 260 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestCzechMonths459() 322 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("MM/dd/yyyy 'at' hh:mm:ss a zzz")+1) ); in TestQuotePattern161() 332 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestQuotePattern161() [all …]
|
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(sizeof(UChar) * (lneed+1) ); in TestCurrencySign() [all …]
|
/third_party/curl/packages/OS400/ |
D | os400sys.c | 132 buf->buf = malloc(size); in get_buffer() 263 enodename = malloc(nodenamelen); in Curl_getnameinfo_a() 269 eservname = malloc(servnamelen); in Curl_getnameinfo_a() 315 enodename = malloc(i + 1); in Curl_getaddrinfo_a() 326 eservname = malloc(i + 1); in Curl_getaddrinfo_a() 355 char *t = malloc(i); in Curl_gss_convert_in_place() 388 in.value = malloc(i + 1); in Curl_gss_import_name_a() 451 in.value = malloc(i + 1); in Curl_gss_init_sec_context_a() 528 ehost = malloc(i + 1); in Curl_ldap_init_a() 552 edn = malloc(i + 1); in Curl_ldap_simple_bind_s_a() [all …]
|
/third_party/selinux/libsepol/src/ |
D | node_record.c | 99 tmp_addr = malloc(4); in node_alloc_addr() 106 tmp_addr = malloc(16); in node_alloc_addr() 192 tmp_addr = malloc(INET_ADDRSTRLEN); in node_alloc_addr_string() 198 tmp_addr = malloc(INET6_ADDRSTRLEN); in node_alloc_addr_string() 281 tmp_key->addr = malloc(node->addr_sz); in sepol_node_key_extract() 282 tmp_key->mask = malloc(node->mask_sz); in sepol_node_key_extract() 379 char *tmp_buf = malloc(node->addr_sz); in sepol_node_get_addr_bytes() 422 char *tmp_addr = malloc(addr_sz); in sepol_node_set_addr_bytes() 464 char *tmp_buf = malloc(node->mask_sz); in sepol_node_get_mask_bytes() 507 char *tmp_mask = malloc(mask_sz); in sepol_node_set_mask_bytes() [all …]
|
/third_party/libuv/test/ |
D | test-ping-pong.c | 56 buf->base = malloc(size); in alloc_cb() 112 req = malloc(sizeof(*req)); in pinger_write_ping() 188 req = malloc(sizeof(*req)); in ponger_read_cb() 222 pinger = malloc(sizeof(*pinger)); in tcp_pinger_v6_new() 253 pinger = malloc(sizeof(*pinger)); in tcp_pinger_new() 282 pinger = malloc(sizeof(*pinger)); in pipe_pinger_new() 309 pinger = malloc(sizeof(*pinger)); in socketpair_pinger_new() 329 ponger = malloc(sizeof(*ponger)); in socketpair_pinger_new() 356 ponger = malloc(sizeof(*ponger)); in pipe2_pinger_new() 361 pinger = malloc(sizeof(*pinger)); in pipe2_pinger_new()
|
D | test-delayed-accept.c | 34 buf->base = malloc(size); in alloc_cb() 50 uv_tcp_t* accepted_handle = (uv_tcp_t*)malloc(sizeof *accepted_handle); in do_accept() 84 timer_handle = (uv_timer_t*)malloc(sizeof *timer_handle); in connection_cb() 102 uv_tcp_t* server = (uv_tcp_t*)malloc(sizeof *server); in start_server() 154 uv_tcp_t* client = (uv_tcp_t*)malloc(sizeof *client); in client_connect() 155 uv_connect_t* connect_req = malloc(sizeof *connect_req); in client_connect()
|
/third_party/pcre2/pcre2/src/ |
D | pcre2_context.c | 59 return malloc(size); in default_malloc() 89 void *yield = (memctl == NULL)? malloc(size) : in PRIV() 90 memctl->malloc(size, memctl->memory_data); in PRIV() 95 newmemctl->malloc = default_malloc; in PRIV() 123 gcontext->memctl.malloc = private_malloc; in pcre2_general_context_create() 232 gcontext->memctl.malloc(sizeof(pcre2_real_general_context), in pcre2_general_context_copy() 244 ccontext->memctl.malloc(sizeof(pcre2_real_compile_context), in pcre2_compile_context_copy() 256 mcontext->memctl.malloc(sizeof(pcre2_real_match_context), in pcre2_match_context_copy() 269 ccontext->memctl.malloc(sizeof(pcre2_real_convert_context), in pcre2_convert_context_copy()
|
/third_party/musl/src/hook/linux/ |
D | malloc_common.c | 36 void* malloc(size_t bytes) in malloc() function 45 return dispatch_table->malloc(bytes); in malloc() 51 return MuslFunc(malloc)(bytes); in malloc() 57 return MuslFunc(malloc)(bytes); in malloc() 59 return dispatch_table->malloc(bytes); in malloc() 64 return MuslFunc(malloc)(bytes); in malloc()
|
/third_party/musl/porting/linux/user/src/hook/ |
D | malloc_common.c | 21 void* malloc(size_t bytes) in malloc() function 30 return dispatch_table->malloc(bytes); in malloc() 36 return MuslFunc(malloc)(bytes); in malloc() 42 return MuslFunc(malloc)(bytes); in malloc() 44 return dispatch_table->malloc(bytes); in malloc() 49 return MuslFunc(malloc)(bytes); in malloc()
|
/third_party/cups-filters/ |
D | ohos_pdftoraster.patch | 74 - newdata = (unsigned char *)malloc(sizeof(char)*3*im.width()*im.height()); 76 - graydata=(unsigned char *)malloc(sizeof(char)*im.width()*im.height()); 78 - onebitdata=(unsigned char *)malloc(sizeof(char)*bytesPerLine*im.height()); 82 + newdata = (unsigned char *)malloc(sizeof(char)*3*header.cupsWidth*header.cupsHeight); 84 + graydata=(unsigned char *)malloc(sizeof(char)*header.cupsWidth*header.cupsHeight); 86 + onebitdata=(unsigned char *)malloc(sizeof(char)*bytesPerLine*header.cupsHeight); 93 - newdata = (unsigned char *)malloc(sizeof(char)*3*im.width()*im.height()); 96 - graydata=(unsigned char *)malloc(sizeof(char)*im.width()*im.height()); 99 + newdata = (unsigned char *)malloc(sizeof(char)*3*header.cupsWidth*header.cupsHeight); 102 + graydata=(unsigned char *)malloc(sizeof(char)*header.cupsWidth*header.cupsHeight); [all …]
|
/third_party/lz4/examples/ |
D | blockStreaming_lineByLine.c | 45 char* const cmpBuf = (char*) malloc(cmpBufBytes); in test_compress() 46 char* const inpBuf = (char*) malloc(ringBufferBytes); in test_compress() 93 char* const cmpBuf = (char*) malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); in test_decompress() 94 char* const decBuf = (char*) malloc(ringBufferBytes); in test_decompress() 128 char* const b0 = (char*) malloc(tempBufferBytes); in compare() 129 char* const b1 = (char*) malloc(tempBufferBytes); in compare()
|
/third_party/jerryscript/jerry-port/default/ |
D | default-module.c | 58 uint8_t *buffer_p = (uint8_t *) malloc (file_size); in jerry_port_read_source() 109 char *dir_p = (char *) malloc (_MAX_DIR); in jerry_port_normalize_path() 111 char *path_p = (char *) malloc (_MAX_PATH * 2); in jerry_port_normalize_path() 142 char *buffer_p = (char *) malloc (PATH_MAX); in jerry_port_normalize_path() 143 char *path_p = (char *) malloc (PATH_MAX); in jerry_port_normalize_path()
|
/third_party/pcre2/pcre2/testdata/ |
D | testoutputheap-8 | 7 malloc 20480 19 malloc 40960 37 malloc 128 38 malloc 20480
|
D | testoutputheap-16 | 7 malloc 20480 19 malloc 40960 37 malloc 128 38 malloc 20480
|
D | testoutputheap-32 | 7 malloc 20480 19 malloc 40960 37 malloc 128 38 malloc 20480
|