Skip to content
Snippets Groups Projects
Commit 60d7d5a6 authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

env: fix potential stack overflow in environment functions


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: default avatarRob Herring <rob.herring@calxeda.com>
parent c17b94ec
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment