qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 08/26] RISC-V: Make sure rom has space for fd


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v6 08/26] RISC-V: Make sure rom has space for fdt
Date: Sat, 24 Mar 2018 21:25:53 +0000

On 24 March 2018 at 18:13, Michael Clark <address@hidden> wrote:
> Remove a potential buffer overflow (not seen in practice).
> Perhaps cpu_physical_memory_write already has bound checks.

cpu_physical_memory_write() writes to the guest address
space, so it won't overflow. If you ask it to write
off the end of a ROM then it will correctly write into
an unassigned part of the guest memory space (which does
nothing) or into whatever device or other ram is there.
You probably don't want to do that, but it is not a buffer
overflow.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]