Searched hist:"06 a040a31bcfc2673ab0670ee95fb9b078c4fdda" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/cmd/ |
| H A D | mtdparts.c | 06a040a31bcfc2673ab0670ee95fb9b078c4fdda Tue Jul 12 18:28:23 UTC 2016 Ladislav Michl <ladis@linux-mips.org> 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>
|