diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-07-16 09:37:04 +0300 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-11-07 13:44:29 +0100 |
| commit | 2f0e9a71b74fdaa06e33a50d0e6c3d7ec02c03e0 (patch) | |
| tree | aee7d3545c5fdf27459f8c42892f884931b30006 /tools/perf/scripts/python | |
| parent | fbea6269afa5250fb322ab089d19c61544f79acb (diff) | |
| download | android_kernel_m2note-2f0e9a71b74fdaa06e33a50d0e6c3d7ec02c03e0.tar.gz | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
