1 #include "check_debug.h"
3 void strncpy(char *to
, char *from
, int size
);
5 void func (char *a
, char *b
)
11 * check-name: smatch strncpy() overflow
12 * check-command: smatch --spammy -I.. sm_overflow2.c
15 sm_overflow2.c +8 func(3) error: buffer overflow 'a' 5 <= 5