Re: [pulseaudio-discuss] [PATCH] alsa-ucm: disallow null mdev argument into pa_alsa_open_mixer_by_name()

2020-07-06 Thread Tanu Kaskinen
On Wed, 2020-07-01 at 11:20 +0300, Eero Nurkkala wrote: > It's possible for mdev to be NULL. In this case, an assert is taken > in pa_alsa_open_mixer_by_name() with debug builds, and a crash with > release builds. However, it's possible to bypass this trouble by taking > the error path if mdev is

[pulseaudio-discuss] [PATCH] alsa-ucm: disallow null mdev argument into pa_alsa_open_mixer_by_name()

2020-07-01 Thread Eero Nurkkala
It's possible for mdev to be NULL. In this case, an assert is taken in pa_alsa_open_mixer_by_name() with debug builds, and a crash with release builds. However, it's possible to bypass this trouble by taking the error path if mdev is NULL. Reported-by: Jarkko Sankala Signed-off-by: Eero Nurkkala