Skip to content
Snippets Groups Projects
Commit 06a040a3 authored by Ladislav Michl's avatar Ladislav Michl Committed by Tom Rini
Browse files

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: default avatarLadislav Michl <ladis@linux-mips.org>
parent c0ac3339
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment