bootm: Avoid 256-byte overflow in fixup_silent_linux()
authorDoug Anderson <dianders@chromium.org>
Tue, 17 Jan 2012 09:37:41 +0000 (09:37 +0000)
committerTom Rini <trini@ti.com>
Fri, 17 May 2013 18:43:29 +0000 (14:43 -0400)
commita558ad71132fa6061ff950b9d3a12b0dad01b129
treeba00c0c1b29245d1e3435259a839b1fbe58e1261
parent8ac28563a059bea49c23bfc4ae88f749ad2b47d3
bootm: Avoid 256-byte overflow in fixup_silent_linux()

This makes fixup_silent_linux() use malloc() to allocate its
working space, meaning that our maximum kernel command line
should only be limited by malloc().  Previously it was silently
overflowing the stack.

Note that nothing about this change increases the kernel's maximum
command line length.  If you have a command line that is >256
bytes it's up to you to make sure that kernel can handle it.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
common/cmd_bootm.c