summaryrefslogtreecommitdiffstats
path: root/qtest.c
diff options
context:
space:
mode:
authorEric Blake2017-09-11 19:20:14 +0200
committerThomas Huth2017-09-15 09:05:19 +0200
commit7b899f4dd596dbb7d271f7fab36fbfffec84868e (patch)
tree2cc98be4af927083e26c8d40b25d93694eb8cf07 /qtest.c
parentlibqtest: Remove dead qtest_instances variable (diff)
downloadqemu-7b899f4dd596dbb7d271f7fab36fbfffec84868e.tar.gz
qemu-7b899f4dd596dbb7d271f7fab36fbfffec84868e.tar.xz
qemu-7b899f4dd596dbb7d271f7fab36fbfffec84868e.zip
qtest: Avoid passing raw strings through hmp()
hmp() passes its string argument through the sprintf() family; with a proper attribute, gcc -Wformat warns us when we do something dangerous like passing a non-constant format string. Fortunately, all our strings were safe, but checking whether the string can contain an unintended % is easy to avoid and therefore worth doing. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'qtest.c')
0 files changed, 0 insertions, 0 deletions