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" } */
}