Open
Description
sound/soc/sof/ipc4-topology.c: In function ‘sof_ipc4_prepare_copier_module’:
sound/soc/sof/ipc4-topology.c:1810:34: error: use of uninitialized value ‘((int *)<unknown>)[2]’ [CWE-457] [-Werror=analyzer-use-of-uninitialized-value]
1810 | struct snd_pcm_hw_params ref_params;
| ^~~~~~~~~~
‘sof_ipc4_prepare_copier_module’: events 1-4
|
| 1810 | struct snd_pcm_hw_params ref_params;
| | ^~~~~~~~~~
| | |
| | (1) region created on stack here
| | (2) following ‘true’ branch...
| | (3) ...to here
| | (4) use of uninitialized value ‘((int *)<unknown>)[2]’ here
|
This is bogus, ref_params
is always initialized before use.