Commit 36e03d2
bricks/_common/micropython.c: Handle unaligned module size
Because the storage layer rounds up code size to a multiple of
the word size, it is possible for the set of code modules to have
trailing padding. Previously, this could cause the module search
function to not terminate as expected, read out of bounds, and crash.1 parent 109cd61 commit 36e03d2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments