Re: [PATCH spice-gtk 2/2] clipboard: check that clipboard request does not belong to remote

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

 




On Thu, May 15, 2014 at 2:49 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
On Thu, May 15, 2014 at 01:12:43PM +0200, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
>
> Check clipboard owner, to avoid cyclic dependency of clipboard requests.
> ---
>  gtk/spice-gtk-session.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
> index 5b8639c..1b05b85 100644
> --- a/gtk/spice-gtk-session.c
> +++ b/gtk/spice-gtk-session.c
> @@ -814,6 +814,9 @@ static gboolean clipboard_request(SpiceMainChannel *main, guint selection,
>      GtkClipboard* cb;
>      int m;
>
> +    g_return_val_if_fail(s->clipboard_by_guest[selection] == FALSE, FALSE);
> +    g_return_val_if_fail(s->clip_grabbed, FALSE);

s->clip_grabbed[selection] ?

fixed and pushed, thanks


--
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]