Re: [PATCH] ALSA: control: prevent some integer overflow issues

From: Dan Carpenter
Date: Thu Sep 12 2024 - 10:52:43 EST


Actually there is a check in snd_ctl_new() which means that although these
integer overflows do happen, we eventually return -ENOMEM and the whole
thing is harmless.

if (count == 0 || count > MAX_CONTROL_COUNT)

regards,
dan carpenter