3 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
5 int a
[] = {1, 2, 3, 4};
11 for (p
= a
; p
< &a
[ARRAY_SIZE(a
)]; p
++)
17 * check-name: smatch array check #3
18 * check-command: smatch sm_array_overflow3.c
21 sm_array_overflow3.c:13 main() warn: buffer overflow 'a' 4 <= 5