]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: allow correct bounds-check of destination
authorKees Cook <keescook@chromium.org>
Fri, 16 Aug 2013 14:59:16 +0000 (07:59 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 3 Sep 2013 19:30:26 +0000 (13:30 -0600)
commit315c0ace7c220591a9b220ab7698e85624b430c0
tree949418163f0c60d0336867d530f53fc5a80ada72
parentff9d2efdbf1b3b5263f81e843c6724b8bead7f1f
bootm: allow correct bounds-check of destination

While nothing presently examines the destination size, it should at
least be correct so that future users of sys_mapmem() will not be
surprised. Without this, it might be possible to overflow memory.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
common/cmd_bootm.c