aboutsummaryrefslogtreecommitdiff
path: root/cmd/time.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-09-26 20:44:32 -0400
committerTom Rini <trini@konsulko.com>2017-10-06 11:28:21 -0400
commit48ee0a87bc46a6f863ffd9e0396b7a068dd68c50 (patch)
tree92149ed9436f7883998392f912cfa2a1906ac896 /cmd/time.c
parentc667723ffb50b00585b729ee0da7b0e8c93ffa13 (diff)
downloadu-boot-48ee0a87bc46a6f863ffd9e0396b7a068dd68c50.zip
u-boot-48ee0a87bc46a6f863ffd9e0396b7a068dd68c50.tar.gz
u-boot-48ee0a87bc46a6f863ffd9e0396b7a068dd68c50.tar.bz2
cmd/pxe.c: Rework initrd and bootargs handling slightly
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@chromium.org> Cc: Alexander Graf <agraf@suse.de> Reported-by: Coverity (CID: 131256) Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/time.c')
0 files changed, 0 insertions, 0 deletions