mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Properly handle embedded nul delimited string lists
For example: reserved-names="res1\0res2\0res3"; Where \0 is an actual embedded NUL in the source instead of a string escape. To achieve this, use the len given by the lexer instead of strlen. Without this patch dtc will mangle the output and possibly hang on realloc.
This commit is contained in:
parent
f9e91a48ba
commit
5d4a8b9c4c
4 changed files with 11 additions and 1 deletions
BIN
tests/embedded_nul.dts
Normal file
BIN
tests/embedded_nul.dts
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue