From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 11 Apr 2014 10:46:07 -0400 Subject: [U-Boot] [PATCH v3 1/5] common: introduce maximum load size In-Reply-To: <1397157488-8695-2-git-send-email-robherring2@gmail.com> References: <1397157488-8695-1-git-send-email-robherring2@gmail.com> <1397157488-8695-2-git-send-email-robherring2@gmail.com> Message-ID: <20140411144607.GA23803@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Apr 10, 2014 at 02:18:03PM -0500, Rob Herring wrote: > From: Rob Herring > > 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: