commit | 5d4a8b9c4c5145bd509bff20780270e00547c80a | [log] [tgz] |
---|---|---|
author | Jack Miller <jack@codezen.org> | Wed Aug 06 15:52:03 2014 -0500 |
committer | David Gibson <david@gibson.dropbear.id.au> | Fri Aug 08 19:17:31 2014 +1000 |
tree | 9e0b277511b2a377ef10c2cb3f2de527875bac95 | |
parent | f9e91a48ba509e77aadcb5349885e1777ef17372 [diff] |
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.