summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-09-21 12:27:23 +0800
committerFam Zheng <famz@redhat.com>2016-09-23 11:42:52 +0800
commit0d6ae94783b35a5c42d88872d1adb523f5fcc6f3 (patch)
treeba69bbf2e1483ccd91d54f85d8d35774946f2918 /monitor.c
parent9c5ce8db2e5c2769ed2fd3d91928dd1853b5ce7c (diff)
downloadqemu-0d6ae94783b35a5c42d88872d1adb523f5fcc6f3.tar.gz
uuid: Tighten uuid parse
sscanf is relatively loose (tolerate) on some invalid formats that we should fail instead of generating a wrong uuid structure, like with whitespaces and short strings. Add and use a helper function to first check the format. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-Id: <1474432046-325-11-git-send-email-famz@redhat.com>
Diffstat (limited to 'monitor.c')
0 files changed, 0 insertions, 0 deletions