diff options
author | Weiyin Jiang <wjiang@codeaurora.org> | 2016-03-16 12:51:03 +0800 |
---|---|---|
committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-05-06 12:06:24 -0700 |
commit | 7966b0d08e3fcb0025fa1599332146a15347cd10 (patch) | |
tree | 58adc6e9d7178d297a82ba2daf90498246ff9250 /include | |
parent | 05a8698e52da34ab83aff8d68409a20ea46e3bbc (diff) |
ASoC: msm: audio-effects: fix stack overread and heap overwrite
Fix overwrite of updt_params allocated in heap, and stack overread
where param pointer is passed from user space.
CRs-Fixed: 989628
Change-Id: Ida8bdb7da2fcb97023dce3b6eafe4b899a51cb66
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/msm-audio-effects-q6-v2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sound/msm-audio-effects-q6-v2.h b/include/sound/msm-audio-effects-q6-v2.h index cbdea328d46c..6bc2338bcf55 100644 --- a/include/sound/msm-audio-effects-q6-v2.h +++ b/include/sound/msm-audio-effects-q6-v2.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -16,6 +16,8 @@ #include <sound/audio_effects.h> +#define MAX_PP_PARAMS_SZ 128 + bool msm_audio_effects_is_effmodule_supp_in_top(int effect_module, int topology); |