Peter Krempa b8bf1188eb storage: Fix crash when parsing backing store URI with schema
The code that parses the schema from the URI touches the "hosts[0]"
member of the storage file source structure in case the URI contains a
schema. The hosts array was not yet allocated at the point in the code
where the transport protocol was parsed and set. This lead to a crash of
libvirtd.

Fix the code by allocating the "hosts" array upfront and add a test case
to verify this scenario. (Unfortunately this requires shuffling the test
case numbers too).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1156288
(cherry picked from commit 98784369fd52ed6aa9bab2a9a9d213c52019e6ee)
2014-11-15 16:02:05 -05:00
..
2014-07-24 18:56:37 +04:00
2014-09-03 09:36:13 -06:00
2014-07-16 13:35:26 +02:00
2014-07-16 13:35:26 +02:00
2014-01-01 16:34:13 +00:00
2014-09-18 13:37:12 +04:00
2014-08-19 20:50:22 +04:00
2014-09-03 09:36:13 -06:00
2014-09-04 15:18:43 -06:00
2014-08-18 20:36:24 -06:00
2013-10-08 12:39:30 +01:00
2013-10-14 10:31:01 +01:00
2014-04-08 11:15:55 +01:00
2014-04-21 16:49:08 -06:00
2014-08-18 20:36:24 -06:00
2014-08-18 20:36:24 -06:00