mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 08:17:40 -04:00
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.
6 lines
154 B
Text
6 lines
154 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
reserved-names = "aaaaaaaaaaaaaaaaaa\0bbbbbb\0ccccccccccccc";
|
|
reserved-ranges = < 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 >;
|
|
};
|