Use-before-initialization in alsa-oss
dsp->oss_format was used before it was set correctly
spotted by running "aoss flite_time 10:00"
Signed-Off-By: Alexander E. Patrakov
alsa/pcm.c +1 -1
@@ -215,10 +215,10 @@unsigned int rate, periods_min;if (!pcm)continue ; + dsp->format =oss_format_to_alsa (dsp->oss_format); str->frame_bytes =snd_pcm_format_physical_width (dsp->format) * dsp->channels /8 ;snd_pcm_hw_params_alloca (&hw);snd_pcm_hw_params_any (pcm, hw); - dsp->format =oss_format_to_alsa (dsp->oss_format); err =snd_pcm_hw_params_set_format (pcm, hw, dsp->format);if (err <0 )
Signature · 1 line
Alexander E. Patrakov
Jaroslav Kysela
AppliedQuoted 4 lines · Alexander E. Patrakov
dsp->oss_formatwas used before it was set correctlyspotted by running "aoss
flite_time10:00"
Signed-Off-By: Alexander E. Patrakov
Applied. Thanks.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs