[alsa-devel] [PATCH] ALSA: echoaudio: Fix memory allocation

Takashi Iwai tiwai at suse.de
Mon Jun 27 22:28:23 CEST 2016


On Mon, 27 Jun 2016 21:06:51 +0200,
Christophe JAILLET wrote:
> 
> 'commpage_bak' is allocated with 'sizeof(struct echoaudio)' bytes.
> We then copy 'sizeof(struct comm_page)' bytes in it.
> On my system, smatch complains because one is 2960 and the other is 3072.
> 
> This would result in memory corruption or a oops.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list