Skip to content
Snippets Groups Projects
Commit 6e748ea0 authored by Ken MacLeod's avatar Ken MacLeod Committed by Gerald Van Baren
Browse files

cmd_fdt.c: fix parse of byte streams and strings


Commit 4abd844d extended the fdt command parser to handle property
strings which are split across multiple arguments but it was broken for
byte streams and strings.

Byte stream parsing:

 * Fixes where it would terminate early or go into an endless loop.

 * Fixes a 0x00 being inserted into the data if there is a space after
   '[' or a separate argument.

 * Fixes dereferencing the argument pointer after the last argument.

 * Checks for bad characters.

String parsing:

 * Treat multiple arguments as a string list.  This fixes an issue where
   only the last argument was stored.

Signed-off-by: default avatarKen MacLeod <ken@bitsko.slc.ut.us>
parent 3887c3fb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment