Hello, I want to find "malloc without null check" by Rule cpp/ql/src/JPL_C/LOC-3/Rule 14/CheckingReturnValues.ql
void heap_mem = malloc(20);
//right case
if (heap_mem != NULL){
use heap_mem
}
//fault case
use heap_mem without null check
The CheckingReturnValues.ql cannot find this fault malloc code case,
Does anyone know how to write rules to find this fault case of malloc without null check?