Home
last modified time | relevance | path

Searched refs:size_mul_overflow (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc123 zassert_false(size_mul_overflow(2, 3, &result));
126 zassert_false(size_mul_overflow(SIZE_MAX, 1, &result));
128 zassert_true(size_mul_overflow(SIZE_MAX, 2, &result));
131 zassert_false(size_mul_overflow(1, SIZE_MAX, &result));
133 zassert_true(size_mul_overflow(2, SIZE_MAX, &result));
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h115 static bool size_mul_overflow(size_t a, size_t b, size_t *result);
Dmath_extras_impl.h105 static inline bool size_mul_overflow(size_t a, size_t b, size_t *result) in size_mul_overflow() function
137 static inline bool size_mul_overflow(size_t a, size_t b, size_t *result) in size_mul_overflow() function
/Zephyr-latest/lib/libc/common/source/stdlib/
Dmalloc.c296 if (size_mul_overflow(nmemb, size, &size)) { in calloc()
314 if (size_mul_overflow(nmemb, size, &size)) { in reallocarray()
/Zephyr-latest/kernel/
Dmempool.c101 if (size_mul_overflow(nmemb, size, &bounds)) { in k_calloc()
Dkheap.c126 if (!size_mul_overflow(num, size, &bounds)) { in k_heap_calloc()
Dstack.c73 K_OOPS(K_SYSCALL_VERIFY(!size_mul_overflow(num_entries, sizeof(stack_data_t), in z_vrfy_k_stack_alloc_init()
Dmsg_q.c74 if (size_mul_overflow(msg_size, max_msgs, &total_size)) { in z_impl_k_msgq_alloc_init()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_poll.c193 if (size_mul_overflow(nfds, sizeof(struct zvfs_pollfd), &fds_size)) { in z_vrfy_zvfs_poll()
/Zephyr-latest/include/zephyr/internal/
Dsyscall_handler.h480 K_SYSCALL_VERIFY_MSG(!size_mul_overflow((size_t)(nmemb), \
/Zephyr-latest/cmake/sca/eclair/ECL/
Dcall_properties.ecl19 -call_properties+={"name(size_mul_overflow)", {"pointee_read(3=never)","pointee_write(3=always)","t…
/Zephyr-latest/drivers/adc/
Dadc_stm32wb0.c267 if (size_mul_overflow(round_size, samplings, &needed_buf_size)) { in validate_adc_sequence()