GNOME Bugzilla – Bug 793331
gsubprocess: Fix a critical calling communicate() with no pipes
Last modified: 2018-02-13 16:29:41 UTC
Patch attached. Mostly changes to the unit tests.
Created attachment 368182 [details] [review] gsubprocess: Fix a critical calling communicate() with no pipes If calling g_subprocess_communicate() on a GSubprocess with no stdout/stderr pipe, a critical warning would be emitted from g_memory_output_stream_steal_as_bytes(), as it would be called on a NULL output stream. Fix that, improve the relevant GIR annotations, and expand the unit tests to cover it (and various other combinations of flags). Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 368182 [details] [review]: sure
Thanks. I will backport to glib-2-54 too. Attachment 368182 [details] pushed as 66ab836 - gsubprocess: Fix a critical calling communicate() with no pipes
Pushed to glib-2-54 as b4811aa15b27f368ff7359f77a5cd9dc33f82c35.