RTEMS | riscv: fix FDT length check and FDT pointer type (!1227)

Mohamed Ayman (@mohamedayman23) gitlab at rtems.org
Sat May 2 00:43:14 UTC 2026



Mohamed Ayman created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1227

Project:Branches: mohamedayman23/rtems:fix-fdt-len-check-and-pointer-type to rtems/rtos/rtems:main
Author:   Mohamed Ayman



## Summary

riscv: fix FDT length check and FDT pointer type

Fix incorrect comparison between fdt_getprop() length (bytes) and address cells count. The check now uses ac \* sizeof(uint32_t) to avoid reading invalid data.

Also change FDT pointer type from const char \* to const void \* to match libfdt API.

No functional changes.

AI Usage: None

AI Prompt: None

AI Model: None

How AI Used: None

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1227
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260502/c4688ea7/attachment-0001.htm>


More information about the bugs mailing list