Searched refs:size_mul_overflow (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/tests/unit/math_extras/ |
D | tests.inc | 123 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/ |
D | math_extras.h | 115 static bool size_mul_overflow(size_t a, size_t b, size_t *result);
|
D | math_extras_impl.h | 105 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/ |
D | malloc.c | 296 if (size_mul_overflow(nmemb, size, &size)) { in calloc() 314 if (size_mul_overflow(nmemb, size, &size)) { in reallocarray()
|
/Zephyr-latest/kernel/ |
D | mempool.c | 101 if (size_mul_overflow(nmemb, size, &bounds)) { in k_calloc()
|
D | kheap.c | 126 if (!size_mul_overflow(num, size, &bounds)) { in k_heap_calloc()
|
D | stack.c | 73 K_OOPS(K_SYSCALL_VERIFY(!size_mul_overflow(num_entries, sizeof(stack_data_t), in z_vrfy_k_stack_alloc_init()
|
D | msg_q.c | 74 if (size_mul_overflow(msg_size, max_msgs, &total_size)) { in z_impl_k_msgq_alloc_init()
|
/Zephyr-latest/lib/os/zvfs/ |
D | zvfs_poll.c | 193 if (size_mul_overflow(nfds, sizeof(struct zvfs_pollfd), &fds_size)) { in z_vrfy_zvfs_poll()
|
/Zephyr-latest/include/zephyr/internal/ |
D | syscall_handler.h | 480 K_SYSCALL_VERIFY_MSG(!size_mul_overflow((size_t)(nmemb), \
|
/Zephyr-latest/cmake/sca/eclair/ECL/ |
D | call_properties.ecl | 19 -call_properties+={"name(size_mul_overflow)", {"pointee_read(3=never)","pointee_write(3=always)","t…
|
/Zephyr-latest/drivers/adc/ |
D | adc_stm32wb0.c | 267 if (size_mul_overflow(round_size, samplings, &needed_buf_size)) { in validate_adc_sequence()
|