You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to improve this might be to check offset against self.len() each iteration, or maybe there is a way to pre-compute if the offset + length of the iterator exceeds the flash length?
The text was updated successfully, but these errors were encountered:
It seems the function
UnlockedFlash::program()
can write outside the bounds of the flash memory if given an invalid offset:stm32f4xx-hal/src/flash.rs
Lines 239 to 241 in 6d0c292
One way to improve this might be to check
offset
againstself.len()
each iteration, or maybe there is a way to pre-compute if theoffset
+ length of the iterator exceeds the flash length?The text was updated successfully, but these errors were encountered: