You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
validate_mem_reservations allow spilling into the next block #117
validate_mem_reservations checks offset >= header.off_dt_struct(), but it does so before including the terminating element. It means that the terminating element can be inside dt_struct.
This is a cosmetic error, really, because such FDT will be rejected anyway because we check whether the first token in dt_struct is FDT_BEGIN_NODE. It would be nice to fix that and return a correct error in such case (FdtErrorKind::MemReserveNotTerminated).
I would like to take this issue. I will adjust the memory-reservation boundary validation so the terminating element must remain inside the structure block, and add focused regression coverage for the correct error.
Activity
Daiyuanranfeng commentedon Nov 15, 2026
I would like to take this issue. I will adjust the memory-reservation boundary validation so the terminating element must remain inside the structure block, and add focused regression coverage for the correct error.