Re: [Qemu-devel] [PULL 02/21] roms: assert if max rom size is less than the used size

2019-05-16 Thread Thomas Huth
On 15/05/2019 22.50, Paolo Bonzini wrote: > From: Igor Mammedov > > It would ensure that we would notice attempt to write beyond > the allocated buffer. In case of MemoryRegion backed ROM it's > the host buffer and the guest RAM otherwise. > > assert can be triggered with: > dd if=/dev/zero of

[Qemu-devel] [PULL 02/21] roms: assert if max rom size is less than the used size

2019-05-15 Thread Paolo Bonzini
From: Igor Mammedov It would ensure that we would notice attempt to write beyond the allocated buffer. In case of MemoryRegion backed ROM it's the host buffer and the guest RAM otherwise. assert can be triggered with: dd if=/dev/zero of=/tmp/blob bs=63k count=1 qemu-system-x86_64 `for i in