cpu: verify that block->host is set
commitb78accf6147a87a3d9c1cd4287d7a1ff805f358e
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 12 Nov 2014 09:44:47 +0000 (12 11:44 +0200)
committerAmit Shah <amit.shah@redhat.com>
Tue, 16 Dec 2014 12:17:35 +0000 (16 17:47 +0530)
treee727590c0469230e7c3ae61774b6435d2f57f020
parentfd5f3b636788f79843d42188ed843c0416643326
cpu: verify that block->host is set

If it isn't, access at an offset will cause memory corruption.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
include/exec/cpu-all.h