[PATCH 3/4] kernelbase: Validate pointers before calling heap functions.