Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong out of range check in _lx_nand_flash_block_find #53

Open
Chabrol opened this issue Jan 20, 2025 · 1 comment
Open

Wrong out of range check in _lx_nand_flash_block_find #53

Chabrol opened this issue Jan 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Chabrol
Copy link

Chabrol commented Jan 20, 2025

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 Chabrol added the bug Something isn't working label Jan 20, 2025
@fdesbiens
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants