summaryrefslogtreecommitdiffstats
path: root/testsuite/transko/varargs.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR10750: Enforce a reasonable limit on # of varargsJosh Stone2009-10-211-0/+10
If we leave the number of args unbounded, then an excessively-sized printf could cause a kernel stack overflow. I've arbitrarily chosen 32 as our new maximum. * translate.cxx (c_unparser::visit_print_format): Throw if >32 args. * testsuite/transko/varargs.stp: Assert that 33 args aren't allowed. * testsuite/transok/varargs.stp: Assert that 32 args are ok.