Searched refs:total_sz (Results 1 – 2 of 2) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | context_record.c | 276 size_t total_sz = 0, i; in sepol_context_to_string() local 286 if (__builtin_add_overflow(total_sz, sizes[i], &total_sz)) { in sepol_context_to_string() 292 str = (char *)malloc(total_sz); in sepol_context_to_string() 298 rc = snprintf(str, total_sz, "%s:%s:%s:%s", in sepol_context_to_string() 301 rc = snprintf(str, total_sz, "%s:%s:%s", in sepol_context_to_string() 309 if (rc < 0 || (size_t)rc >= total_sz) { in sepol_context_to_string()
|
/third_party/libbpf/src/ |
D | linker.c | 2754 size_t funcs_sz = 0, lines_sz = 0, core_relos_sz = 0, total_sz = 0; in finalize_btf_ext() local 2805 total_sz += sizeof(struct btf_ext_header); in finalize_btf_ext() 2808 total_sz += funcs_sz; in finalize_btf_ext() 2812 total_sz += lines_sz; in finalize_btf_ext() 2816 total_sz += core_relos_sz; in finalize_btf_ext() 2819 cur = data = calloc(1, total_sz); in finalize_btf_ext() 2889 linker->btf_ext = btf_ext__new(data, total_sz); in finalize_btf_ext()
|