-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The loop below checks on the cache_size only, but accessing the nor_flash -> lx_nor_flash_extended_cache[i] array
incrementing the index without any check.
the fix is to change the while() condition as following
while((cache_size >= LX_NOR_SECTOR_SIZE) && i < LX_NOR_EXTENDED_CACHE_SIZE)
also replace the line
| if(i > LX_NOR_EXTENDED_CACHE_SIZE) |
with
if(i == LX_NOR_EXTENDED_CACHE_SIZE)
regards
haithem.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working