diff options
author | Josh Stone <jistone@redhat.com> | 2009-10-09 17:32:26 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-10-21 09:08:07 -0700 |
commit | 8f805d3329e985f0ea0851fa1522ab447765af27 (patch) | |
tree | 47144dc67421664c8f0d17f4bb831781d2036459 /runtime/staprun/stapio.c | |
parent | a8f1332f49206b314871fbdea50ab1045401a024 (diff) | |
download | systemtap-steved-8f805d3329e985f0ea0851fa1522ab447765af27.tar.gz systemtap-steved-8f805d3329e985f0ea0851fa1522ab447765af27.tar.xz systemtap-steved-8f805d3329e985f0ea0851fa1522ab447765af27.zip |
PR10750: Enforce a reasonable limit on # of varargs
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.
Diffstat (limited to 'runtime/staprun/stapio.c')
0 files changed, 0 insertions, 0 deletions