ALSA: compress: info leak in snd_compr_get_caps()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 21 Apr 2013 11:07:29 +0000 (14:07 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Apr 2013 08:34:46 +0000 (10:34 +0200)
commit1c62e9f2b5a97c53aaae490f844949d32cca6dc6
tree8a69eaf2daf2872b21b3617fe9072ead3422fa09
parentf0283b58d01d36910fcd195d1fc365a3356b2be0
ALSA: compress: info leak in snd_compr_get_caps()

If the ->get_caps() function doesn't clear the buffer then there would
stack information leaked to userspace.  For example,
soc_compr_get_caps() can return success without clearing the buffer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c