forked from luck/tmp_suning_uos_patched
233d84c46c
'cs4398_regs' in 'struct xonar_cs43xx' is an array of 'u8' with a size of 8. So, this code in sound/pci/oxygen/xonar_cs43xx.c::dump_d1_registers() for (i = 2; i <= 8; ++i) snd_iprintf(buffer, " %02x", data->cs4398_regs[i]); will overrun the array when 'i == 8'. I guess that what's needed to fix it is the trivial patch below, but I must admit that I have no idea about this code, so I may very well be wrong. Additionally, I have no way to actually test this, so all I know is that the below compiles. Someone who actually knows this code should take a look before anything is comitted - consider the below (not much more than) a bug report. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Clemens Ladisch <clemens@ladisch.de Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
---|---|---|
.. | ||
ak4396.h | ||
cm9780.h | ||
cs2000.h | ||
cs4245.h | ||
cs4362a.h | ||
cs4398.h | ||
Makefile | ||
oxygen_io.c | ||
oxygen_lib.c | ||
oxygen_mixer.c | ||
oxygen_pcm.c | ||
oxygen_regs.h | ||
oxygen.c | ||
oxygen.h | ||
pcm1796.h | ||
virtuoso.c | ||
wm8766.h | ||
wm8776.h | ||
wm8785.h | ||
xonar_cs43xx.c | ||
xonar_dg.c | ||
xonar_dg.h | ||
xonar_hdmi.c | ||
xonar_lib.c | ||
xonar_pcm179x.c | ||
xonar_wm87x6.c | ||
xonar.h |