summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrago <rago@google.com>2016-11-29 10:29:39 -0800
committergitbuildkicker <android-build@google.com>2017-01-24 16:41:31 -0800
commit740a332d27113ede617c93973763c39d7707e746 (patch)
tree86210829de1bac32907cff0d4d6c23a902a5d0bf
parent8b3d5a64c3c8d010ad4517f652731f09107ae9c5 (diff)
downloadlibhardware-740a332d27113ede617c93973763c39d7707e746.tar.gz
Fix security vulnerability: potential OOB write in audioserverandroid-6.0.1_r79
Bug: 32705438 Bug: 32703959 Test: cts security test Change-Id: I920a74cb0a809c623ddf802f3d2808f0f1bd537c (cherry picked from commit 3f9a6d3bd97966999fa35b9423b8c0042c8198b3)
-rw-r--r--include/hardware/audio_effect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/audio_effect.h b/include/hardware/audio_effect.h
index 41cd2e61..854f0c15 100644
--- a/include/hardware/audio_effect.h
+++ b/include/hardware/audio_effect.h
@@ -896,6 +896,9 @@ typedef struct effect_param_s {
char data[]; // Start of Parameter + Value data
} effect_param_t;
+// Maximum effect_param_t size
+#define EFFECT_PARAM_SIZE_MAX 65536
+
// structure used by EFFECT_CMD_OFFLOAD command
typedef struct effect_offload_param_s {
bool isOffload; // true if the playback thread the effect is attached to is offloaded