qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v1] exec: handle NULL pointer in flatview_read_c


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v1] exec: handle NULL pointer in flatview_read_continue
Date: Thu, 9 Aug 2018 16:37:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 09/08/2018 16:24, Olaf Hering wrote:
> Am Thu,  9 Aug 2018 16:14:03 +0200 schrieb Olaf Hering
> <address@hidden>:
> 
>> The codepaths behind qemu_ram_ptr_length can return NULL.
>
> While that might be a bug by itself, the question is why in that case
> no memset(buf, 0xff, l) is done?

If no RAM is allocated (i.e. xen_map_cache will return NULL), however,
the memory should not be registered as RAM with the memory API.  So I
think the bug is in Xen code.

Paolo

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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