]> git.proxmox.com Git - qemu.git/commit
migration: don't segfault on invalid input
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 17 Oct 2010 18:43:40 +0000 (20:43 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 16:54:02 +0000 (18:54 +0200)
commit492fb99c4bef274a71178f5fab9b700c469a4230
treedb540505d7716078ecca46cce645d90cd9538dc7
parentc57c846a80f9306aa2c6cf7efdef45ed42723fac
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>
arch_init.c