Sign in
gnu
/
gcc.git
/
09a3da82125e07da504136841d577f103aa4ea13
/
.
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
taint-modulus-1.c
blob: ed286fa341cdeb769bc860a8cecdcc0e1c5d000a [
file
] [
log
] [
blame
]
#define
SIZE
16
char
buf
[
SIZE
];
__attribute__
((
tainted_args
))
char
test_sanitized_by_modulus
(
int
val
)
{
return
buf
[
val
%
SIZE
];
/* { dg-bogus "use of attacker-controlled value" } */
}