summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrago <rago@google.com>2016-11-30 19:49:23 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-11-30 19:49:23 +0000
commitcd6ebe9b271aaf6a76cd73415297bd274e6c2681 (patch)
treec7c077dd26f08c00ac5b43275eabf0d0b42a2716
parentf7eed1ea07e2785e80d2cdce0f905f08fb576ed1 (diff)
parentc1964331708d2a4d161dba904b60fabcf98b6a11 (diff)
downloadlibhardware-cd6ebe9b271aaf6a76cd73415297bd274e6c2681.tar.gz
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b
am: c196433170 Change-Id: Ib2c430673490d56347b7c5719ae9ac222129d046
-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