]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fdt] Allow paths and aliases to be terminated with separator characters
authorMichael Brown <mcb30@ipxe.org>
Wed, 11 Jun 2025 15:08:42 +0000 (16:08 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 11 Jun 2025 15:18:36 +0000 (16:18 +0100)
commit7e96e5f2ef074c6c17a75dad20beb2a61ecca2f8
tree27df9d63e1395cc4e25cc6e658e35889ac3f9eb5
parent1de3aef78c1a8c87cc921463bb2cf6054a442fa7
[fdt] Allow paths and aliases to be terminated with separator characters

Non-permitted name characters such as a colon are sometimes used to
separate alias names or paths from additional metadata, such as the
baud rate for a UART in the "/chosen/stdout-path" property.

Support the use of such alias names and paths by allowing any
character not permitted in a property name to terminate a property or
node name match.  (This is a very relaxed matching rule that will
produce false positive matches on invalid input, but this is unlikely
to cause problems in practice.)

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fdt.c
src/tests/fdt_test.c