levelx icon indicating copy to clipboard operation
levelx copied to clipboard

Wrong out of range check in _lx_nand_flash_block_find

Open Chabrol opened this issue 1 year ago • 3 comments

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))

Chabrol avatar Jan 20 '25 16:01 Chabrol

Can anyone in the @eclipse-threadx/iot-threadx-committers and @eclipse-threadx/iot-threadx-contributors groups can comment on this issue?

fdesbiens avatar Jan 22 '25 21:01 fdesbiens

having a look at it.

regards Haithem.

rahmanih avatar Oct 28 '25 14:10 rahmanih

this bug is confirmed and proposed fix is accepted.

rahmanih avatar Nov 04 '25 13:11 rahmanih