[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b1158552-d899-49e5-9c4f-bf6a5b80c163@stanley.mountain>
Date: Thu, 12 Sep 2024 17:52:26 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Takashi Iwai <tiwai@...e.de>
Cc: Takashi Sakamoto <o-takashi@...amocchi.jp>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Mark Brown <broonie@...nel.org>, linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] ALSA: control: prevent some integer overflow issues
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
Powered by blists - more mailing lists