exec: use qemu_ram_ptr_length to access guest ram
commit04bf2526ce87f21b32c9acba1c5518708c243ad0
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 12 Jul 2017 12:38:40 +0000 (12 18:08 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 09:04:34 +0000 (14 11:04 +0200)
tree327929491c477bf1f2ba2da0c25efe64cc51637e
parent1a29cc8f5ebd657e159dbe4be340102595846d42
exec: use qemu_ram_ptr_length to access guest ram

When accessing guest's ram block during DMA operation, use
'qemu_ram_ptr_length' to get ram block pointer. It ensures
that DMA operation of given length is possible; And avoids
any OOB memory access situations.

Reported-by: Alex <broscutamaker@gmail.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170712123840.29328-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c