12 static void func (void)
43 d
= malloc(sizeof(*d
));
52 * check-name: Null Dereferences
53 * check-command: smatch sm_null_deref.c
56 sm_null_deref.c:18 func() error: potentially derefencing uninitialized 'aa'.
57 sm_null_deref.c:23 func() error: we previously assumed 'a' could be null (see line 20)
58 sm_null_deref.c:25 func() warn: variable dereferenced before check 'a' (see line 23)
59 sm_null_deref.c:30 func() error: we previously assumed 'b' could be null (see line 25)
60 sm_null_deref.c:48 func() error: potential null derefence 'd'.