/optee_os-3.20.0/core/pta/tests/ |
A D | misc.c | 147 if (MUL_OVERFLOW(32, 30, &r_u32)) in self_test_mul_unsigned_overflow() 151 if (MUL_OVERFLOW(-32, -30, &r_u32)) in self_test_mul_unsigned_overflow() 156 if (MUL_OVERFLOW(UINTMAX_MAX, 1, &r_um)) in self_test_mul_unsigned_overflow() 179 if (MUL_OVERFLOW(32, -30, &r)) in self_test_mul_signed_overflow() 183 if (MUL_OVERFLOW(-32, 30, &r)) in self_test_mul_signed_overflow() 187 if (MUL_OVERFLOW(32, 30, &r)) in self_test_mul_signed_overflow() 192 if (MUL_OVERFLOW(INTMAX_MAX, 1, &r)) in self_test_mul_signed_overflow() 196 if (MUL_OVERFLOW(INTMAX_MAX / 4, 4, &r)) in self_test_mul_signed_overflow() 204 if (MUL_OVERFLOW(INTMAX_MIN + 1, 1, &r)) in self_test_mul_signed_overflow() 212 if (MUL_OVERFLOW(0, INTMAX_MIN, &r)) in self_test_mul_signed_overflow() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | msg_param.c | 129 if (MUL_OVERFLOW(num_pages, sizeof(paddr_t), &msize)) in msg_param_mobj_from_noncontig()
|
/optee_os-3.20.0/core/drivers/ |
A D | sp805_wdt.c | 35 if (MUL_OVERFLOW(timeout, pd->clk_rate, &load)) in sp805_setload()
|
/optee_os-3.20.0/lib/libutils/ext/ |
A D | mempool.c | 171 if (MUL_OVERFLOW(nmemb, size, &sz)) in mempool_calloc()
|
/optee_os-3.20.0/core/mm/ |
A D | fobj.c | 153 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_paged_iv_alloc() 266 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_unpaged_iv_alloc() 759 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in fobj_sec_mem_alloc()
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | util.h | 152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) macro
|
/optee_os-3.20.0/core/arch/arm/mm/ |
A D | sp_mem.c | 39 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in mobj_sp_size()
|
A D | mobj_dyn_shm.c | 51 if (MUL_OVERFLOW(sizeof(paddr_t), nr_pages, &s)) in mobj_reg_shm_size()
|
A D | mobj_ffa.c | 55 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in shm_size()
|
/optee_os-3.20.0/core/crypto/ |
A D | signed_hdr.c | 172 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs()
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | thread_spmc.c | 554 if (MUL_OVERFLOW(sizeof(struct ffa_mem_access), num_mem_accs, &n) || in mem_share_init() 678 if (MUL_OVERFLOW(share.region_count, in add_mem_share() 736 if (MUL_OVERFLOW(page_count, SMALL_PAGE_SIZE, &len)) in handle_mem_share_tmem()
|
A D | spmc_sp_handler.c | 312 if (MUL_OVERFLOW(num_mem_accs, sizeof(*mem_acc), &needed_size) || in spmc_sp_add_share() 973 if (MUL_OVERFLOW(args->a2, SMALL_PAGE_SIZE, ®ion_size)) in handle_mem_perm_set()
|
A D | stmm_sp.c | 538 if (!va || !nr_pages || MUL_OVERFLOW(nr_pages, SMALL_PAGE_SIZE, &sz)) in sp_svc_set_mem_attr()
|
A D | secure_partition.c | 713 if (MUL_OVERFLOW(pages_cnt, SMALL_PAGE_SIZE, &size)) in handle_fdt_mem_regions()
|
/optee_os-3.20.0/ldelf/ |
A D | ta_elf.c | 261 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz)) in check_hashtab() 289 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz) || in check_gnu_hashtab() 513 if (MUL_OVERFLOW(elf->e_phnum, elf->e_phentsize, &sz) || in init_elf() 1100 if (MUL_OVERFLOW(elf->e_shnum, elf->e_shentsize, &sz)) in copy_section_headers()
|
/optee_os-3.20.0/core/tee/ |
A D | tee_svc_cryp.c | 1635 if (MUL_OVERFLOW(sizeof(struct utee_attribute), attr_count, &size)) in copy_in_attrs() 1922 if (MUL_OVERFLOW(sizeof(TEE_Attribute), attr_count, &alloc_size)) in syscall_cryp_obj_populate() 2318 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_obj_generate_key() 3383 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_cryp_derive_key() 3425 if (MUL_OVERFLOW(bin_size, 8, &alloc_size)) { in syscall_cryp_derive_key() 4064 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_operate() 4247 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_verify()
|
A D | tee_rpmb_fs.c | 1131 if (MUL_OVERFLOW(dev_info.rpmb_size_mult, in tee_rpmb_init()
|
/optee_os-3.20.0/lib/libutils/isoc/ |
A D | bget_malloc.c | 471 if (MUL_OVERFLOW(pl_nmemb, pl_size, &s)) in raw_calloc()
|