[alsa-devel] Undefined behaviour in ac97_codec.c - shift exponent 68 is too large for 32-bit type 'int'
Takashi Iwai
tiwai at suse.de
Fri Nov 23 18:11:19 CET 2018
On Fri, 23 Nov 2018 18:02:06 +0100,
Meelis Roos wrote:
>
> >> [ 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>
Good to hear. I queued the fix patch now.
thanks,
Takashi
More information about the Alsa-devel
mailing list