[PATCH v2 2/5] DFU: Accept redundant spaces and tabs in dfu_alt_info

Tom Rini trini at konsulko.com
Fri Feb 11 18:06:37 CET 2022


On Mon, Jan 31, 2022 at 11:52:29AM +0900, Masami Hiramatsu wrote:

> If dfu_alt_info has repeated spaces or tab (for indentation or
> readability), the dfu fails to parse it. For example, if
> dfu_alt_info="mtd nor1=image raw  100000 200000" (double spaces
> after "raw"), the image entity start address is '0' and the size
> '0x100000'. This is because the repeated space is not skipped.
> 
> Use space and tab as a separater and apply skip_spaces() to
> skip redundant spaces and tabs.
> 
> Signed-off-by: Masami Hiramatsu <masami.hiramatsu at linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220211/75bc53cc/attachment.sig>


More information about the U-Boot mailing list