Files
u-boot/drivers
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
..
2018-01-22 23:09:14 +01:00
2018-01-28 17:12:36 +01:00
2018-01-26 12:38:13 +01:00
2018-01-26 20:02:33 +05:30
2018-01-28 12:27:32 -05:00
2018-01-16 06:59:39 +01:00
2018-01-28 12:27:32 -05:00
2017-11-06 09:51:01 -05:00
2018-01-26 12:38:13 +01:00
2017-11-20 09:58:31 +01:00
2017-06-01 07:03:10 -06:00
2018-01-26 07:46:34 -05:00