rav Pandit
> Subject: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size
>
> In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size should
> be idx + 1 and g_ptr_array_set_size should be called with idx + 1.
>
> This wrong GPtrArray size causes fet
u.org; m...@redhat.com; Parav Pandit
Subject: Re: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size
External email: Use caution opening links or attachments
Yajun Wu writes:
> In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size
> should be
Yajun Wu writes:
> In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size
> should be idx + 1 and g_ptr_array_set_size should be called with idx + 1.
>
> This wrong GPtrArray size causes fetch_or_create_notifier return an invalid
> address. Passing this invalid pointer to vhost_u
In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size
should be idx + 1 and g_ptr_array_set_size should be called with idx + 1.
This wrong GPtrArray size causes fetch_or_create_notifier return an invalid
address. Passing this invalid pointer to vhost_user_host_notifier_remove
cause