mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 21:34:35 +03:00
Furi: Add "out of memory" and "malloc(0)" crash messages (#3574)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
c31b60c7b7
commit
6b120a3b09
@ -486,7 +486,7 @@ void* pvPortMalloc(size_t xWantedSize) {
|
||||
|
||||
configASSERT((((size_t)pvReturn) & (size_t)portBYTE_ALIGNMENT_MASK) == 0);
|
||||
|
||||
furi_check(pvReturn);
|
||||
furi_check(pvReturn, xWantedSize ? "out of memory" : "malloc(0)");
|
||||
pvReturn = memset(pvReturn, 0, to_wipe);
|
||||
return pvReturn;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user