From 7b8d4c08afde96dbfc24c7f91227b0fcafdf7ef7 Mon Sep 17 00:00:00 2001 From: FFreestanding <62629010+FFreestanding@users.noreply.github.com> Date: Tue, 26 Mar 2024 09:42:09 +0800 Subject: [PATCH 1/1] fix issue 31 (#32) * fix out of bound write in __init_pile --------- Co-authored-by: ffreestanding --- lunaix-os/includes/lunaix/mm/cake.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lunaix-os/includes/lunaix/mm/cake.h b/lunaix-os/includes/lunaix/mm/cake.h index bf92b26..cf1c16e 100644 --- a/lunaix-os/includes/lunaix/mm/cake.h +++ b/lunaix-os/includes/lunaix/mm/cake.h @@ -24,7 +24,7 @@ struct cake_pile u32_t alloced_pieces; u32_t pieces_per_cake; u32_t pg_per_cake; - char pile_name[PILE_NAME_MAXLEN]; + char pile_name[PILE_NAME_MAXLEN+1]; pile_cb ctor; }; -- 2.27.0