Commit 2649e4c0 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by David Leach
Browse files

sys: usermode: Document 0 size buffer memory check

Documenting that 0 size buffer has undefined behavior.
See: https://github.com/zephyrproject-rtos/zephyr/pull/23239

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent b455ab22
Loading
Loading
Loading
Loading
+2 −0
Changes for include/sys/arch_interface.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -572,6 +572,8 @@ void arch_mem_domain_destroy(struct k_mem_domain *domain);
 * if the supplied memory buffer spans multiple enabled memory management
 * regions (even if all such regions permit user access).
 *
 * @warning 0 size buffer has undefined behavior.
 *
 * @param addr start address of the buffer
 * @param size the size of the buffer
 * @param write If nonzero, additionally check if the area is writable.