summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorFam Zheng2016-09-21 06:27:23 +0200
committerFam Zheng2016-09-23 05:42:52 +0200
commit0d6ae94783b35a5c42d88872d1adb523f5fcc6f3 (patch)
treeba69bbf2e1483ccd91d54f85d8d35774946f2918 /linux-user
parentvl: Switch qemu_uuid to QemuUUID (diff)
downloadqemu-0d6ae94783b35a5c42d88872d1adb523f5fcc6f3.tar.gz
qemu-0d6ae94783b35a5c42d88872d1adb523f5fcc6f3.tar.xz
qemu-0d6ae94783b35a5c42d88872d1adb523f5fcc6f3.zip
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 'linux-user')
0 files changed, 0 insertions, 0 deletions