commit | 760042a37074ac0e13dbfaf1d73051652b5f6547 | [log] [tgz] |
---|---|---|
author | Ladislav Michl <ladis@linux-mips.org> | Tue Jul 12 20:28:23 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 22 14:46:13 2016 -0400 |
tree | 7de16f1bbfc6b506446c3f5014cabfabb3950918 | |
parent | 07fdfb5aabf6e076ed6c39ca695ac99d0cafceaa [diff] |
cmd: mtdparts: fix null pointer dereference in parse_mtdparts In case there is no mtdparts variable in relocated environment, NULL is assigned to p, which is later fed to strncpy. Also function parameter mtdparts is completely ignored, so use it in case mtdparts variable is not found in environment. This parameter is checked not to be NULL in caller. Signed-off-by: Ladislav Michl <ladis@linux-mips.org>