middle-end/90648 fend off builtin calls with not enough arguments from match
This adds guards to genmatch generated code before accessing call expression or stmt arguments that might be out of bounds when the user provided bogus prototypes for what we consider builtins. 2020-02-05 Richard Biener <rguenther@suse.de> PR middle-end/90648 * genmatch.c (dt_node::gen_kids_1): Emit number of argument checks before matching calls. * gcc.dg/pr90648.c: New testcase.
Showing
gcc/testsuite/gcc.dg/pr90648.c
0 → 100644
Please
register
or
sign in
to comment