Skip to content

Commit 2649e4c

Browse files
Flavio Ceolindleach02
authored andcommitted
sys: usermode: Document 0 size buffer memory check
Documenting that 0 size buffer has undefined behavior. See: #23239 Signed-off-by: Flavio Ceolin <[email protected]>
1 parent b455ab2 commit 2649e4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/sys/arch_interface.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ void arch_mem_domain_destroy(struct k_mem_domain *domain);
572572
* if the supplied memory buffer spans multiple enabled memory management
573573
* regions (even if all such regions permit user access).
574574
*
575+
* @warning 0 size buffer has undefined behavior.
576+
*
575577
* @param addr start address of the buffer
576578
* @param size the size of the buffer
577579
* @param write If nonzero, additionally check if the area is writable.

0 commit comments

Comments
 (0)