[U-Boot] env: fix potential stack overflow in environment functions

Tom Rini trini at ti.com
Wed Apr 3 17:30:14 CEST 2013


On Fri, Mar 22, 2013 at 11:26:21AM -0000, Rob Herring wrote:

> From: Rob Herring <rob.herring at calxeda.com>
> 
> Most of the various environment functions create CONFIG_ENV_SIZE buffers on
> the stack. At least on ARM and PPC which have 4KB stacks, this can overflow
> the stack if we have large environment sizes. So move all the buffers off
> the stack to static buffers.
> 
> Signed-off-by: Rob Herring <rob.herring at calxeda.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130403/a3f8609c/attachment.pgp>


More information about the U-Boot mailing list