Mercurial > illumos > git > illumos-gate
view usr/src/tools/smatch/src/validation/check_access-store.c @ 19241:79022555a4a9
11972 resync smatch
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
author | John Levon <john.levon@joyent.com> |
---|---|
date | Mon, 11 Nov 2019 16:23:50 +0000 |
parents | |
children |
line wrap: on
line source
extern int a[1]; static int r(void) { return a[1]; } static void w(void) { a[1] = 2; } /* * check-name: check_access-store * check-known-to-fail * * check-error-start check_access-store.c:5:17: warning: invalid access past the end of 'a' (4 4) check_access-store.c:10:17: warning: invalid access past the end of 'a' (4 4) * check-error-end */