aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-16 09:37:04 +0300
committerMoyster <oysterized@gmail.com>2016-11-07 13:46:52 +0100
commitbb223cd40a20cfb76954186bc3468af10a6fdae0 (patch)
tree72af5a4d0309686e0b9e57b158d5546e3a78f47b /net
parent2ca3197bcb410eb16e4645abd8cbbcec2a077e99 (diff)
ALSA: compress: fix an integer overflow check
I previously added an integer overflow check here but looking at it now, it's still buggy. The bug happens in snd_compr_allocate_buffer(). We multiply ".fragments" and ".fragment_size" and that doesn't overflow but then we save it in an unsigned int so it truncates the high bits away and we allocate a smaller than expected size. Fixes: b35cc8225845 ('ALSA: compress_core: integer overflow in snd_compr_allocate_buffer()') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions