1 #include "check_debug.h"
3 void strcpy(char *to
, char *from
, int size
);
5 void func (char *a
, char *b
)
22 * check-name: smatch strcpy overflow
23 * check-command: smatch -I.. sm_overflow3.c
26 sm_overflow3.c:14 func() error: buffer overflow 'a' 5 <= 5
27 sm_overflow3.c:15 func() error: strcpy() 'b' too large for 'c' (5 vs 4)
28 sm_overflow3.c:17 func() error: strcpy() '"1234"' too large for 'e' (5 vs 4)