Dr. David Alan Gilbert b3af1bc9d2 Add qemu_get_counted_string to read a string prefixed by a count byte
and use it in loadvm_state and ram_load.

Where ever it's used, check the return and error if it failed.

Minor: ram_load was using a 257 byte array for its string, the
       maximum length is 255 bytes + 0 terminator, so fix to 256

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-06-12 06:54:01 +02:00
..
2015-05-29 12:53:12 +02:00
2015-02-06 16:11:38 +00:00
2015-06-11 15:33:38 +01:00
2015-06-10 18:15:04 +02:00
2015-05-11 08:59:07 -04:00
2015-05-27 17:52:03 +02:00
2015-02-16 15:07:19 +00:00
2015-02-05 17:16:14 +01:00