diff options
| author | Fam Zheng | 2016-09-21 06:27:23 +0200 |
|---|---|---|
| committer | Fam Zheng | 2016-09-23 05:42:52 +0200 |
| commit | 0d6ae94783b35a5c42d88872d1adb523f5fcc6f3 (patch) | |
| tree | ba69bbf2e1483ccd91d54f85d8d35774946f2918 /qapi-schema.json | |
| parent | vl: Switch qemu_uuid to QemuUUID (diff) | |
| download | qemu-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 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions
