diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-10-17 20:43:40 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-10-27 18:54:02 +0200 |
commit | 492fb99c4bef274a71178f5fab9b700c469a4230 (patch) | |
tree | db540505d7716078ecca46cce645d90cd9538dc7 /hw/virtio.c | |
parent | c57c846a80f9306aa2c6cf7efdef45ed42723fac (diff) |
migration: don't segfault on invalid input
host_from_stream_offset returns NULL on error,
return error instead of trying to use that address,
to avoid segfault on invalid stream.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio.c')
0 files changed, 0 insertions, 0 deletions