Wrong out of range check in _lx_nand_flash_block_find
In _lx_nand_flash_block_find
/* Check the address range. */ if (block_mapping_index > nand_flash -> lx_nand_flash_block_mapping_table_size / sizeof(*nand_flash -> lx_nand_flash_block_mapping_table))
should be changed to
/* Check the address range. */ if (block_mapping_index >= nand_flash -> lx_nand_flash_block_mapping_table_size / sizeof(*nand_flash -> lx_nand_flash_block_mapping_table))
Can anyone in the @eclipse-threadx/iot-threadx-committers and @eclipse-threadx/iot-threadx-contributors groups can comment on this issue?
having a look at it.
regards Haithem.
this bug is confirmed and proposed fix is accepted.