Skip to content
Commit 15d8f914 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Michael Roth
Browse files

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: default avatarAlex <broscutamaker@gmail.com>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170712123840.29328-1-ppandit@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 04bf2526)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent f9c313f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment