Skip to content
Commit 53b40636 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Tom Rini
Browse files

DFU: Check the number of arguments and argument string strictly



When parsing the dfu_alt_info, check the number of arguments
and argument string strictly. If there is any garbage data
(which is not able to be parsed correctly) in dfu_alt_info,
that means something wrong and user may make a typo or mis-
understanding about the syntax. Since the dfu_alt_info is
used for updating the firmware, this mistake may lead to
brick the hardware.
Thus it should be checked strictly for making sure there
is no mistake.

Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu@linaro.org>
parent 8db74c15
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment