OSDN Git Service

Fix security vulnerability: potential OOB write in audioserver
[android-x86/system-media.git] / audio / include / system / audio_effect.h
index f4e982a..d7bb1a9 100644 (file)
@@ -514,6 +514,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