u-boot-2016/drivers/mtd
Mario Six 5701ba8289 cfi_flash: Bound-check index before array access
In a while loop in cfi_flash.c the array "start" is accessed at the index
"sector" before the index variable "sector" is bounds-checked, which
might lead to accesses beyond the bounds of the array.

Swap the order of the checks in the "&&" expression, so that the
short-circuit evaluation prevents out-of-bounds array accesses.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Signed-off-by: Stefan Roese <sr@denx.de>
2018-01-29 07:48:59 +01:00
..
nand mtd: nand: mxs_nand_spl: Remove nand size print 2018-01-08 17:37:12 +01:00
onenand mtd: replace MTDDEBUG() with pr_debug() 2017-10-23 14:07:26 -04:00
spi sf_probe: Merge spi_flash_probe_tail into spi_flash_probe 2018-01-24 12:04:08 +05:30
ubi ubi: no NULL check needed before kmem_cache_destroy 2017-11-20 10:13:42 +01:00
ubispl
altera_qspi.c
cfi_flash.c cfi_flash: Bound-check index before array access 2018-01-29 07:48:59 +01:00
cfi_mtd.c
ftsmc020.c
jedec_flash.c
Kconfig
Makefile Drop CONFIG_HAS_DATAFLASH 2017-10-16 09:42:51 -04:00
mtd-uclass.c
mtd_uboot.c
mtdconcat.c
mtdcore.c mtd: add mtd_ooblayout_xxx() helper functions 2017-11-29 00:28:58 +09:00
mtdcore.h
mtdpart.c
mw_eeprom.c
pic32_flash.c flash: Fix spelling of "ERR_TIMOUT" 2018-01-29 07:48:59 +01:00
st_smi.c
stm32_flash.c mtd: stm32: use parameter instead of default value 2017-07-10 14:26:05 -04:00
stm32_flash.h