| /optee_os/core/pta/tests/ |
| H A D | misc.c | 152 if (MUL_OVERFLOW(32, 30, &r_u32)) in self_test_mul_unsigned_overflow() 156 if (MUL_OVERFLOW(-32, -30, &r_u32)) in self_test_mul_unsigned_overflow() 161 if (MUL_OVERFLOW(UINTMAX_MAX, 1, &r_um)) in self_test_mul_unsigned_overflow() 165 if (MUL_OVERFLOW(UINTMAX_MAX / 4, 4, &r_um)) in self_test_mul_unsigned_overflow() 169 if (!MUL_OVERFLOW(UINTMAX_MAX / 4 + 1, 4, &r_um)) in self_test_mul_unsigned_overflow() 171 if (!MUL_OVERFLOW(UINTMAX_MAX, UINTMAX_MAX, &r_um)) in self_test_mul_unsigned_overflow() 173 if (!MUL_OVERFLOW(um_half_mask << um_half_shift, in self_test_mul_unsigned_overflow() 184 if (MUL_OVERFLOW(32, -30, &r)) in self_test_mul_signed_overflow() 188 if (MUL_OVERFLOW(-32, 30, &r)) in self_test_mul_signed_overflow() 192 if (MUL_OVERFLOW(32, 30, &r)) in self_test_mul_signed_overflow() [all …]
|
| /optee_os/core/kernel/ |
| H A D | delay.c | 39 if (MUL_OVERFLOW(diff, 1000000, &diff) || in timeout_elapsed_us()
|
| H A D | msg_param.c | 129 if (MUL_OVERFLOW(num_pages, sizeof(paddr_t), &msize)) in msg_param_mobj_from_noncontig()
|
| /optee_os/lib/libutils/ext/ |
| H A D | mempool.c | 172 if (MUL_OVERFLOW(nmemb, size, &sz)) in mempool_calloc()
|
| /optee_os/core/drivers/rtc/ |
| H A D | rtc.c | 111 if (diff_ms == LLONG_MAX || MUL_OVERFLOW(diff_ms, tick_rate, &res)) { in rtc_diff_calendar_tick()
|
| /optee_os/core/drivers/ |
| H A D | sp805_wdt.c | 35 if (MUL_OVERFLOW(timeout, pd->clk_rate, &load)) in sp805_setload()
|
| /optee_os/ta/remoteproc/src/ |
| H A D | elf_parser.c | 158 if (MUL_OVERFLOW(table->num, sizeof(*table->offset), &s) || in e32_parser_find_rsc_table()
|
| /optee_os/core/mm/ |
| H A D | fobj.c | 154 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_paged_iv_alloc() 268 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_unpaged_iv_alloc() 763 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in fobj_sec_mem_alloc()
|
| H A D | mobj_dyn_shm.c | 62 if (MUL_OVERFLOW(sizeof(paddr_t), nr_pages, &s)) in mobj_reg_shm_size()
|
| /optee_os/core/arch/arm/mm/ |
| H A D | sp_mem.c | 39 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in mobj_sp_size()
|
| H A D | mobj_ffa.c | 156 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in shm_size() 193 if (!num_pages || MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &sz) || in ffa_prm_new()
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | util.h | 223 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) macro
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | spmc_sp_handler.c | 334 if (MUL_OVERFLOW(num_mem_accs, mem_acc_size, &needed_size) || in spmc_sp_add_share() 366 if (MUL_OVERFLOW(addr_range_cnt, sizeof(*addr_range), &needed_size) || in spmc_sp_add_share() 1203 if (MUL_OVERFLOW(args->a2, SMALL_PAGE_SIZE, ®ion_size)) in handle_mem_perm_set()
|
| H A D | thread_spmc.c | 1007 if (MUL_OVERFLOW(size, count, &n) || ADD_OVERFLOW(offs, n, &n) || in spmc_read_mem_transaction() 1187 if (MUL_OVERFLOW(op.region_count, in add_mem_op() 1255 if (MUL_OVERFLOW(page_count, SMALL_PAGE_SIZE, &len)) in handle_mem_op_tmem()
|
| H A D | secure_partition.c | 890 if (MUL_OVERFLOW(pages_cnt, SMALL_PAGE_SIZE, &size)) in handle_fdt_load_relative_mem_regions() 1218 if (MUL_OVERFLOW(pages_cnt, SMALL_PAGE_SIZE, &size)) in handle_fdt_mem_regions()
|
| H A D | stmm_sp.c | 902 MUL_OVERFLOW(nr_pages, SMALL_PAGE_SIZE, &sz) || in spm_handle_set_mem_attr()
|
| /optee_os/core/crypto/ |
| H A D | signed_hdr.c | 187 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs()
|
| /optee_os/ldelf/ |
| H A D | ta_elf.c | 268 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz)) in check_hashtab() 296 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz) || in check_gnu_hashtab() 520 if (MUL_OVERFLOW(elf->e_phnum, elf->e_phentsize, &sz) || in init_elf() 1111 if (MUL_OVERFLOW(elf->e_shnum, elf->e_shentsize, &sz)) in copy_section_headers()
|
| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 1737 if (MUL_OVERFLOW(sizeof(struct utee_attribute), attr_count, &size)) in copy_in_attrs() 2017 if (MUL_OVERFLOW(sizeof(TEE_Attribute), attr_count, &alloc_size)) in syscall_cryp_obj_populate() 2454 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_obj_generate_key() 3703 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_cryp_derive_key() 3746 if (MUL_OVERFLOW(bin_size, 8, &alloc_size)) { in syscall_cryp_derive_key() 4458 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_operate() 4685 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_verify()
|
| H A D | tee_rpmb_fs.c | 1123 if (MUL_OVERFLOW(dev_info->rpmb_size_mult, in rpmb_set_dev_info()
|
| /optee_os/lib/libutils/isoc/ |
| H A D | bget_malloc.c | 442 if (MUL_OVERFLOW(pl_nmemb, pl_size, &s)) in raw_malloc_flags()
|
| /optee_os/core/drivers/clk/ |
| H A D | clk-stm32mp21.c | 2084 if (!refdiv || MUL_OVERFLOW(refclk, fbdiv, &freq)) in clk_get_pll1_fvco_rate()
|
| H A D | clk-stm32mp25.c | 2077 if (!refdiv || MUL_OVERFLOW(refclk, fbdiv, &freq)) in clk_get_pll1_fvco_rate()
|