Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kmm_realloc: fix crash issue case of oldmem is NULL
if oldmem argument is NULL, we should call the malloc(). It is posix rule. But now, if oldmem is NULL, mm_get_heap returns NULL. So we get crash. So, Add checking NULL. And Change to so that, if oldmem is out of heap address, we can get a assertion. Signed-off-by: eunwoo.nam <[email protected]>
- Loading branch information