[pulseaudio-discuss] [PATCH v2 4/6] source-output: Avoid potential NULL dereference

Tanu Kaskinen tanuk at iki.fi
Wed Aug 31 20:14:21 UTC 2016


On Tue, 2016-08-30 at 15:04 +0200, Peter Meerwald-Stadler wrote:
> if data->source is NULL, pa_source_output_new_data_set_source() may fail to set data->source;
> the false retval is ignored, leading to a NULL dereference in pa_source_get_state(data->source) below

I don't believe NULL dereference is possible. As I explained earlier,
it should never happen that data->format is set, but data->source
isn't.

-- 
Tanu


More information about the pulseaudio-discuss mailing list