tudasc/TypeART

TypeART-rt -- onAllocStack may push nullptr

ahueck opened this issue · 1 comments

If onAllocStack is called with a nullptr (should not happen), doAlloc will not create an entry in the memory map.
However, the stack vector will, which is errorneous.

doAlloc should be restructured to return an enum return code, which the onAlloc functions (heap, stack, global) can use for corner case handling.

Fixed in PR #22