Home
last modified time | relevance | path

Searched refs:size_add_overflow (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc99 zassert_false(size_add_overflow(2, 3, &result));
102 zassert_false(size_add_overflow(2, 0, &result));
105 zassert_false(size_add_overflow(0, 3, &result));
108 zassert_false(size_add_overflow(0, SIZE_MAX, &result));
110 zassert_true(size_add_overflow(1, SIZE_MAX, &result));
113 zassert_false(size_add_overflow(SIZE_MAX, 0, &result));
115 zassert_true(size_add_overflow(SIZE_MAX, 2, &result));
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h69 static bool size_add_overflow(size_t a, size_t b, size_t *result);
Dmath_extras_impl.h47 static inline bool size_add_overflow(size_t a, size_t b, size_t *result) in size_add_overflow() function
79 static inline bool size_add_overflow(size_t a, size_t b, size_t *result) in size_add_overflow() function
/Zephyr-latest/kernel/
Dmempool.c24 if (size_add_overflow(size, sizeof(heap_ref), &size)) { in z_heap_aligned_alloc()
135 if (size_add_overflow(size, sizeof(heap_ref), &size)) { in k_realloc()
Duserspace.c879 if (size_add_overflow(actual_len, 1, &actual_len)) { in k_usermode_string_alloc_copy()
913 if (size_add_overflow(actual_len, 1, &actual_len)) { in k_usermode_string_copy()
Dthread.c699 K_OOPS(K_SYSCALL_VERIFY_MSG(!size_add_overflow(K_THREAD_STACK_RESERVED, in z_vrfy_k_thread_create()
Dmmu.c600 if (size_add_overflow(size, CONFIG_MMU_PAGE_SIZE * 2, &total_size)) { in k_mem_map_phys_guard()
/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dicmsg_me.c40 if (size_add_overflow(user_buffer_len, HEADER_SIZE, &ret)) { in user_buffer_len_to_icmsg_buffer_len()
/Zephyr-latest/cmake/sca/eclair/ECL/
Dcall_properties.ecl20 -call_properties+={"name(size_add_overflow)", {"pointee_read(3=never)","pointee_write(3=always)","t…