trace: dynamic width format syntax not validated
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
The dtrace via stap backend cannot support the dynamic '*' width format.
Eric noted in https:/
https:/
section 9.2 printf, states:
"The printf formatting directives are similar to those of C, except that
they are fully checked for type by the translator."
and does NOT list handling for '*' under precision or width.
Some trace events have been merged without checking this:
$ git ls-files|fgrep trace-event|xargs git grep '*\("\|x\)'
hw/block/
hw/block/
hw/block/
hw/block/
hw/mips/
hw/mips/
| Changed in qemu: | |
| status: | New → Fix Committed |

Fixed in v4.2.0 (commits abc7cf3655 & 10f9f1fbed).