Loader: Fix BusFault in handling of OOM #3992
+8
−8
Merged
Task list completed / task-list-completed
succeeded
Dec 18, 2024 in 0s
3 / 3 tasks completed
All tasks have been completed
Details
Required Tasks
Task | Status |
---|---|
during OOM propagation, ELF file has small chance of trying to free relocation data that is not allocated: | Incomplete |
elf_load_section_data() does not allocate fast_rel->data if not enough ram |
Incomplete |
but elf_preload_section() allocated fast_rel itself, so both would try to be freed when only 1 exists |
Incomplete |
in particular, this was observable in upython app | Incomplete |
try to run upython app | Incomplete |
either it opens, or it gives out of memory message, not crash | Incomplete |
PR has description of feature/bug or link to Confluence/Jira task | Completed |
Description contains actions to verify feature/bugfix | Completed |
I've built this code, uploaded it to the device and verified feature/bugfix | Completed |
Loading