[PATCH] of: reject alias values that are not NUL-terminated
Sascha Hauer
s.hauer at pengutronix.de
Tue Oct 20 06:58:20 PDT 2026
On Thu, 15 Oct 2026 16:08:59 +0200, Ahmad Fatoum wrote:
> of_alias_resolve() passes the value of an /aliases property straight
> to of_find_node_by_path_from() as a C string. Unflattened property
> values are copied with their exact length, so a value without a
> terminating NUL makes the path lookup read past the end of the
> allocation.
>
> Only devicetrees barebox trusts get here.
> Still, let's skip such values like libfdt's fdt_get_alias_namelen()
> does.
>
> [...]
Applied, thanks!
[1/1] of: reject alias values that are not NUL-terminated
https://git.pengutronix.de/cgit/barebox/commit/?id=68cda0c04a34 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list