]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: fix buffer overflow in snd_pcm_chmap_print()
authorAnssi Hannula <anssi.hannula@iki.fi>
Tue, 30 Dec 2014 18:46:11 +0000 (20:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Dec 2014 09:02:20 +0000 (10:02 +0100)
commitb2ed0aa9f28979f125a9db0548cfd38ac2334775
treee5ed02c0944261525804250381fe9469022e891d
parent93b0e9ca85762c2b863434b2617147f806c7e3e3
pcm: fix buffer overflow in snd_pcm_chmap_print()

The size argument is wrong for one of the snprintf() calls in
snd_pcm_chmap_print(), allowing an overflow to happen (the user-provided
buffer may be written data up to 2x its actual size).

Seen in an user report here: http://trac.kodi.tv/ticket/15641

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm.c