[U-Boot] [PATCH] cmd_sf: add size checking to spi flash commands
Mike Frysinger
vapier at gentoo.org
Tue Apr 3 21:31:29 CEST 2012
On Tue, Apr 3, 2012 at 07:34, Gerlando Falauto wrote:
> SPI flash operations inadvertently stretching beyond the flash size will
> result in a wraparound. This may be particularly dangerous when burning
> u-boot, because the flash contents will be corrupted rendering the board
> unusable, without any warning being issued.
> So add a consistency checking so not to overflow past the flash size.
looks OK to me. i'll test it locally and merge it into my SF branch. cheers!
-mike
More information about the U-Boot
mailing list