[U-Boot] [PATCH v3 1/5] common: introduce maximum load size

Tom Rini
2014-04-11T14:46:07Z

On Thu, Apr 10, 2014 at 02:18:03PM -0500, Rob Herring wrote:

> From: Rob Herring <robh@kernel.org>
>
> Various commands that load images have no checks that a loaded image
> does not exceed the available RAM space and will happily continue
> overwriting u-boot or other RAM that should not be touched. Also,
> some commands such as USB DFU or fastboot need to know the maximum
> buffer size, but there is no common way to define this.
>
> Introduce a global load_size and environment variable loadsize to
> specify the size. The default is ~0UL which is effectively unlimited.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Reviewed-by: Tom Rini <trini@ti.com>

--
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/20140411/aa6b4417/attachment.pgp>