1 #include "check_debug.h"
3 void memdup(char *to
, int size
);
4 void strcpy(char *dest
, char *src
);
6 void func (char *a
, char *b
)
15 * check-name: smatch memdup overflow
16 * check-command: smatch -I.. sm_overflow5.c
19 sm_overflow5.c:12 func() error: buffer overflow 'a' 5 <= 5