[Spice-devel] [spice-gtk v2 2/2] channel-usbredir: prevent crash when calling without host

Victor Toso victortoso at redhat.com
Thu Dec 1 13:21:10 UTC 2016


Hi,

On Thu, Dec 01, 2016 at 01:33:56PM +0100, Christophe Fergeau wrote:
> On Wed, Nov 30, 2016 at 06:57:12PM +0100, Victor Toso wrote:
> > Hi,
> > 
> > On Wed, Nov 30, 2016 at 06:45:45PM +0100, Pavel Grunt wrote:
> > > imho this should be in usbredir
> > >
> > > It is not nice when library crashes your program
> > 
> > I don't disagree. Libraries should use guards accordingly.
> > 
> > But it doesn't make this correct. We should have initialized
> > usbredirhost before calling this API, making this a spice-gtk mistake.
> > 
> > Either way is fine to me... maybe both :)
> 
> I guess an usbredir patch adding such guards to public entry points
> would be accepted.
>
> Christophe

Okay, I'll look into the public APIs in usbredir and set some guards
there too.

  Cheers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161201/97246652/attachment.sig>


More information about the Spice-devel mailing list