commit | 736d325e2c28089cd12c26566fcf14dab5a6f516 | [log] [tgz] |
---|---|---|
author | Steve Sakoman <steve@sakoman.com> | Thu Jun 07 10:19:18 2012 -0700 |
committer | Scott Wood <scott@tyr.buserror.net> | Fri Jun 08 14:57:24 2012 -0500 |
tree | 056e850371fcdb988da4d3e33e362c3bfc37de6b | |
parent | 4389319d3bb68d080ef3b53f48950b8fb9236a54 [diff] |
cmd_nand: fix crashing bug in nand read/write Commit 418396e212b59bf907dbccad997ff50f7eb61b16 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>