| 57 | } |
| 58 | |
| 59 | void *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 | |
| 72 | void *av_realloc(void *ptr, size_t size) { |
| 73 | int has_memory; |
no outgoing calls
no test coverage detected