Kevin Wolf
6d33e8e7dc
qcow2: Fix backing file name length check
...
len could become negative and would pass the check then. Nothing bad
happened because bdrv_pread() happens to return an error for negative
length values, but make variables for sizes unsigned anyway.
This patch also changes the behaviour to error out on invalid lengths
instead of silently truncating it to 1023.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-04-01 14:19:09 +02:00
..
2014-03-26 12:42:31 +02:00
2014-03-27 19:22:49 +04:00
2013-10-28 17:34:42 +01:00
2014-03-11 09:07:42 -04:00
2014-04-01 14:19:09 +02:00
2014-03-15 13:54:18 +04:00
2014-02-01 13:56:31 +04:00
2014-03-24 12:37:36 +02:00
2013-11-07 13:58:58 +01:00
2013-11-19 10:28:14 +01:00
2014-02-21 22:18:26 +01:00
2013-04-13 19:40:25 +00:00
2013-12-24 17:27:17 +01:00
2014-02-14 16:22:33 +01:00
2014-02-14 16:22:33 +01:00
2014-02-17 23:10:02 +01:00
2014-01-22 12:07:16 +01:00
2014-02-17 23:10:02 +01:00
2013-11-19 10:28:14 +01:00
2014-02-20 13:05:48 +00:00
2014-01-22 12:07:16 +01:00
2014-02-14 21:07:13 +01:00
2014-03-13 21:12:07 +01:00
2014-03-13 21:12:07 +01:00
2014-02-17 23:10:02 +01:00
2014-03-20 02:40:13 +01:00
2014-02-14 20:50:19 +01:00
2014-02-14 16:22:33 +01:00
2014-03-12 20:13:02 +01:00
2014-02-28 18:59:06 +01:00
2014-03-13 01:21:45 +01:00
2014-02-17 23:10:02 +01:00
2014-02-14 16:22:33 +01:00
2014-03-13 01:21:57 +01:00
2014-03-13 14:42:24 +01:00
2013-11-05 19:59:43 -08:00
2013-11-28 10:30:52 +01:00
2013-02-04 14:38:33 -06:00
2013-01-25 18:18:35 +01:00
2014-03-02 17:20:37 +04:00
2013-02-17 14:28:58 +00:00
2013-11-05 19:59:43 -08:00
2013-08-16 18:44:33 +02:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-11 09:07:42 -04:00
2014-03-13 14:42:21 +01:00
2014-02-17 11:57:23 -05:00
2014-02-20 13:05:48 +00:00
2013-08-22 19:10:27 +02:00
2013-10-26 13:01:57 +04:00
2014-03-03 11:16:45 -05:00
2014-01-13 14:04:53 +01:00
2013-01-27 14:34:27 +01:00
2013-02-01 08:32:20 +01:00
2014-02-17 23:10:02 +01:00
2014-02-14 21:02:27 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 21:12:07 +01:00
2014-02-14 21:01:03 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:56 +01:00
2014-03-13 01:21:57 +01:00
2014-02-14 16:22:33 +01:00