Markus Armbruster
58e19e6e79
log: Clean up misuse of Range for -dfilter
...
Range encodes an integer interval [a,b] as { begin = a, end = b + 1 },
where a \in [0,2^64-1] and b \in [1,2^64]. Thus, zero end is to be
interpreted as 2^64.
The implementation of -dfilter (commit 3514552 ) uses Range
differently: it encodes [a,b] as { begin = a, end = b }. The code
works, but it contradicts the specification of Range in range.h.
Switch to the specified representation. Since it can't represent
[0,UINT64_MAX], we have to reject that now. Add a test for it.
While we're rejecting anyway: observe that we reject -dfilter LOB..UPB
where LOB > UPB when UPB is zero, but happily create an empty Range
when it isn't. Reject it then, too, and add a test for it.
While there, add a positive test for the problematic upper bound
UINT64_MAX.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2016-07-04 16:49:33 +03:00
..
2016-06-24 08:22:07 +03:00
2016-06-08 15:19:30 +08:00
2015-12-17 13:37:15 +00:00
2016-02-08 17:29:54 +01:00
2016-06-20 11:44:12 +01:00
2015-01-26 12:22:44 +01:00
2016-03-18 10:29:26 +01:00
2016-06-28 22:53:03 -04:00
2015-07-07 13:13:22 +01:00
2016-05-18 15:04:27 +03:00
2016-06-11 17:11:16 -07:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-24 05:13:57 +03:00
2016-06-07 18:19:24 +03:00
2016-02-23 12:43:05 +00:00
2016-02-16 12:05:18 +02:00
2016-01-07 21:30:16 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2015-09-15 15:05:09 +01:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-03-22 22:20:15 +01:00
2015-12-18 12:18:31 +00:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-16 09:50:07 +05:30
2016-02-23 12:43:05 +00:00
2016-06-07 18:19:24 +03:00
2016-06-27 15:37:32 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2016-06-16 18:39:03 +02:00
2016-06-17 15:57:59 +10:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2015-01-13 11:47:55 +00:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-17 15:23:51 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 16:34:45 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-13 12:41:17 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-03-17 14:41:15 +00:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:25 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-29 16:49:41 +02:00
2016-02-16 14:29:27 +00:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-04 16:49:33 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 11:25:06 -05:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-30 15:24:36 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 16:34:45 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-03-22 22:20:17 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-17 11:25:46 +01:00
2016-06-29 16:49:40 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:19:18 +01:00
2016-06-20 16:38:13 +02:00
2016-06-20 16:19:18 +01:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:19:18 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00