[U-Boot] [U-Boot, 1/1] fw_printenv: Fix crash due to incorrect size for malloc'ed string.

Tom Rini trini at konsulko.com
Wed Apr 11 14:05:51 UTC 2018


On Wed, Apr 04, 2018 at 10:09:57AM +0200, Kristian Amlie wrote:

> Using sizeof gives the size of the pointer only, not the string. This
> could easily lead to crashes when using -l argument.
> 
> Signed-off-by: Kristian Amlie <kristian.amlie at northern.tech>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180411/ea5f9877/attachment.sig>


More information about the U-Boot mailing list