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>
Loading