blob: ed286fa341cdeb769bc860a8cecdcc0e1c5d000a (
plain)
1
2
3
4
5
6
7
8
|
#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" } */
}
|