test-linker-roles.c: In function 'module_role_tests': test-linker-roles.c:147:7: error: array subscript is above array bounds [-Werror=array-bounds] decls[2] = (test_find_decl_by_sym(base, SYM_TYPES,"tag_g_m2"))->decl_id; ^ --- libsepol/tests/test-linker-roles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsepol/tests/test-linker-roles.c b/libsepol/tests/test-linker-roles.c index 42f92d30f7f9..2c4a804704d6 100644 --- a/libsepol/tests/test-linker-roles.c +++ b/libsepol/tests/test-linker-roles.c @@ -101,7 +101,7 @@ void module_role_tests(policydb_t * base) { role_datum_t *role; avrule_decl_t *decl; - unsigned int decls[2]; + unsigned int decls[3]; char *types[3]; /* These tests are run when the base is linked with 2 modules, -- 2.1.0 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.