mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-05 04:06:34 -05:00
pcm: fix signed overflow in pcm_softvol
This fixes functionality on specific setups with UBSan. Signed-off-by: q66 <q66@chimera-linux.org>
This commit is contained in:
parent
10bd599970
commit
b2e5297c6d
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ static inline int MULTI_DIV_32x16(int a, unsigned short b)
|
|||
y.i = 0;
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
x.i = (unsigned short)v.s[0];
|
||||
x.i *= b;
|
||||
x.i *= (unsigned int)b;
|
||||
y.s[0] = x.s[1];
|
||||
y.i += (int)v.s[1] * b;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue