[alsa-devel] Undefined behaviour in ac97_codec.c - shift exponent 68 is too large for 32-bit type 'int'

Meelis Roos mroos at linux.ee
Fri Nov 23 18:02:06 CET 2018


>> [   19.668078] UBSAN: Undefined behaviour in sound/pci/ac97/ac97_codec.c:836:7
>> [   19.668268] shift exponent 68 is too large for 32-bit type 'int'
> 
> Wow, this is an old bug.
> 
> The patch below should fix the problem.

Yes, it does - thank you!

I also found another machine (with SiS ac97 audio) that gave the same warning and the
warning is gone there too.

Can not test actual audio since both machines are remote for now, but aplay thinks it
plays WAV files fine.

Tested-by: Meelis Roos <mroos at linux.ee>

-- 
Meelis Roos <mroos at linux.ee>


More information about the Alsa-devel mailing list