Forked from
Reform / reform-boundary-uboot
Source project has a limited visibility.
-
Steve Sakoman authored
Commit 418396e2 introduced a bug that causes nand read and nand write to crash in strcmp due to a null pointer. Root cause is that strchr(cmd, '.') returns a null pointer when the input string does not contain a '.' The strcmp function does not check for null pointers, resulting in a crash. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Scott Wood <scott@tyr.buserror.net>
Steve Sakoman authoredCommit 418396e2 introduced a bug that causes nand read and nand write to crash in strcmp due to a null pointer. Root cause is that strchr(cmd, '.') returns a null pointer when the input string does not contain a '.' The strcmp function does not check for null pointers, resulting in a crash. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Scott Wood <scott@tyr.buserror.net>