
26 Aug
2017
26 Aug
'17
10:46 p.m.
On Sun, Aug 20, 2017 at 08:05:40PM -0400, Tom Rini wrote:
As part of fixing the previously reported issues, it was missed that in the case of mtdparts_init() we need to make sure that tmp_ep is long enough to contain PARTITION_MAXLEN and a NULL termination. Then, to be sure the buffer is NULL terminated, zero the entire buffer rather than just ensuring the first character is NULL.
Cc: Lothar Waßmann LW@KARO-electronics.de Cc: Maxime Ripard maxime.ripard@free-electrons.com Reported-by: Coverity (CID: 166329) Signed-off-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
--
Tom