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

Function av_mallocz

tools/coverity.c:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void *av_mallocz(size_t size) {
60 int has_memory;
61 __coverity_negative_sink__(size);
62 if (has_memory) {
63 void *ptr = __coverity_alloc__(size);
64 __coverity_writeall0__(ptr);
65 __coverity_mark_as_afm_allocated__(ptr, "av_free");
66 return ptr;
67 } else {
68 return 0;
69 }
70}
71
72void *av_realloc(void *ptr, size_t size) {
73 int has_memory;

Callers 12

get_private_dataFunction · 0.70
handle_fileFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.70
handle_fileFunction · 0.70
alloc_planeFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.70
check_add_int16Function · 0.50
check_add_bytesFunction · 0.50
check_add_median_predFunction · 0.50
check_add_left_predFunction · 0.50
check_add_gradient_predFunction · 0.50
new_matrixFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected