OSDN Git Service

Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
authorrago <rago@google.com>
Wed, 30 Nov 2016 19:34:22 +0000 (19:34 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Wed, 30 Nov 2016 19:34:22 +0000 (19:34 +0000)
am: 4654f9ab8b

Change-Id: I6b12abacd19b3ac06c054d05c5f381d234756593

include/hardware/audio_effect.h

index ee48e4c..bd9a5b7 100644 (file)
@@ -895,6 +895,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