MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_malloc

Function av_malloc

tools/coverity.c:46–57  ·  view source on GitHub ↗

Based on https://scan.coverity.com/models

Source from the content-addressed store, hash-verified

44
45// Based on https://scan.coverity.com/models
46void *av_malloc(size_t size) {
47 int has_memory;
48 __coverity_negative_sink__(size);
49 if (has_memory) {
50 void *ptr = __coverity_alloc__(size);
51 __coverity_mark_as_uninitialized_buffer__(ptr);
52 __coverity_mark_as_afm_allocated__(ptr, "av_free");
53 return ptr;
54 } else {
55 return 0;
56 }
57}
58
59void *av_mallocz(size_t size) {
60 int has_memory;

Callers 14

mainFunction · 0.70
mainFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.70
mainFunction · 0.70
checkasm_check_av_txFunction · 0.50
checkasm_check_vf_gblurFunction · 0.50
check_yuv2yuvXFunction · 0.50
vf_blend.cFile · 0.50
mainFunction · 0.50
video_decodeFunction · 0.50
compute_crc_of_packetsFunction · 0.50

Calls

no outgoing calls

Tested by 5

mainFunction · 0.40
video_decodeFunction · 0.40
compute_crc_of_packetsFunction · 0.40
run_testFunction · 0.40
video_decode_exampleFunction · 0.40