1 #include "check_debug.h"
3 void strndup(char *to
, int size
);
4 void strcpy(char *dest
, char *src
);
6 void func (char *a
, char *b
)
14 * check-name: smatch strndup overflow
15 * check-command: smatch -I.. sm_overflow4.c
18 sm_overflow4.c:11 func() error: strcpy() 'a' too large for 'c' (6 vs 5)