Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02bdc831 authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

DO NOT MERGE Fix AudioEffect reply overflow am: 7ffa39c4

am: 0dac1009

* commit '0dac1009':
  DO NOT MERGE Fix AudioEffect reply overflow

Change-Id: I8fe27c646bbcf6f6ba04edf43cb8a82d4e64b864
parents 1e95cf3e 0dac1009
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -559,7 +559,9 @@ static int fx_command(effect_handle_t self,
            if (pCmdData == NULL ||
                    cmdSize < (int)sizeof(effect_param_t) ||
                    pReplyData == NULL ||
                    *replySize < (int)sizeof(effect_param_t)) {
                    *replySize < (int)sizeof(effect_param_t) ||
                    // constrain memcpy below
                    ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t)) {
                ALOGV("fx_command() EFFECT_CMD_GET_PARAM invalid args");
                return -EINVAL;
            }