Re: [Spice-devel] [PATCH spice-gtk v2 1/5] gio-pipe: fix NULL pointer dereferencing

2019-06-19 Thread Frediano Ziglio
> > In pipe_output_stream_is_writable, if the peer is already gone, > peer_closed is set to TRUE and in this case, peer->read should not be > accessed > as peer is NULL. > > Otherwise, the following sequence of calls (simplified) would trigger a > segfault: > > spice_make_pipe(p1, p2); >

[Spice-devel] [PATCH spice-gtk v2 1/5] gio-pipe: fix NULL pointer dereferencing

2019-06-19 Thread Jakub Janků
In pipe_output_stream_is_writable, if the peer is already gone, peer_closed is set to TRUE and in this case, peer->read should not be accessed as peer is NULL. Otherwise, the following sequence of calls (simplified) would trigger a segfault: spice_make_pipe(p1, p2); g_output_stream_write