Fam Zheng
0d6ae94783
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>
2016-09-23 11:42:52 +08:00
..
2016-07-12 16:19:16 +02:00
2016-03-22 22:20:15 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-05-19 16:42:28 +02:00
2016-09-14 12:25:14 +02:00
2016-02-04 17:01:04 +00:00
2016-06-07 18:19:24 +03:00
2016-03-22 19:11:15 +01:00
2016-03-22 19:11:15 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-09-13 19:09:45 +02:00
2016-02-04 17:01:04 +00:00
2016-05-26 11:31:30 +05:30
2016-04-22 16:43:56 +02:00
2016-04-22 16:43:56 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-06-16 15:20:37 +02:00
2016-04-06 09:52:07 +08:00
2016-02-04 17:01:04 +00:00
2016-03-22 22:20:17 +01:00
2016-08-03 18:44:57 +02:00
2016-09-14 22:52:44 +02:00
2016-09-23 11:42:52 +08:00
2016-06-16 18:39:03 +02:00
2016-07-12 16:19:16 +02:00
2016-09-20 22:12:03 +02:00
2016-02-04 17:01:04 +00:00
2016-07-13 13:26:02 +02:00
2016-08-02 12:03:58 +02:00
2016-08-02 12:03:58 +02:00
2016-03-22 22:20:17 +01:00
2016-08-03 18:44:56 +02:00
2016-02-04 17:01:04 +00:00
2016-07-13 13:26:02 +02:00
2016-09-05 19:06:48 +02:00
2016-07-13 13:26:02 +02:00
2016-09-05 19:06:48 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-04-28 08:18:56 +02:00
2016-02-04 17:01:04 +00:00
2016-09-13 19:08:42 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-08-02 12:03:58 +02:00
2016-07-04 16:49:33 +03:00
2016-02-04 17:01:04 +00:00
2016-03-22 22:20:17 +01:00
2016-05-16 15:29:44 -07:00
2016-08-05 09:59:06 +01:00
2016-05-18 15:04:27 +03:00
2016-08-12 10:36:01 +01:00
2016-03-22 22:20:17 +01:00
2016-06-07 18:19:24 +03:00
2016-09-23 11:42:52 +08:00