[U-Boot] cmd/pxe.c: Rework initrd and bootargs handling slightly
Tom Rini
trini at konsulko.com
Sat Oct 7 13:09:13 UTC 2017
On Tue, Sep 26, 2017 at 08:44:32PM -0400, Tom Rini wrote:
> For the initrd portion of handling our bootm arguments we do not have a
> sufficiently long enough buffer for some improbable 64bit cases. Expand
> this buffer to allow for a 64bit address and almost 256MB initrd to be
> used. Make use of strncpy/strncat when constructing the values here
> since we know what the worst case valid values are, length wise.
>
> Similarly for bootargs themselves, we need to make use of strlen/sizeof
> and strncpy/strncat to ensure that we don't overflow bootargs itself.
>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Alexander Graf <agraf at suse.de>
> Reported-by: Coverity (CID: 131256)
> Signed-off-by: Tom Rini <trini at konsulko.com>
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/20171007/7ae2b658/attachment.sig>
More information about the U-Boot
mailing list