Re: [client 1/2 v2] streaming: Check the stream id in display_update_stream_report() too

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

 



On Mon, 8 Aug 2016, Frediano Ziglio wrote:
[...]
> > +    g_return_if_fail(c != NULL);
> > +    g_return_if_fail(c->streams != NULL);
> 
> I think these means a bug in the client, I would abort.

My understanding is that this code will end up in libspice-client-*.so 
and thus may be run in applications we have no knowledge about. Having 
been on the receiving end of a library crashing my application (libvaapi 
crashing the Spice server), I'm wary of causing unknown applications to 
crash.

In any case all the other places where we check streams use 
g_return_if_fail() so I think this patch should go as is and if there's 
consensus to actually force an abort in this case then that should be 
done everywhere in a separate patch (probably not by me).


-- 
Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]