
7 Jun
2012
7 Jun
'12
7:27 p.m.
On 06/07/2012 12:19 PM, Steve Sakoman wrote:
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
Applied to u-boot-nand-flash, thanks!
This was missed in testing because U-Boot on PowerPC unfortunately has a valid mapping at NULL.
-Scott