Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PR10750: Enforce a reasonable limit on # of varargs | Josh Stone | 2009-10-21 | 1 | -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. |