From 24c0fe3a452b107765867619276bbddbc3a5b5dd Mon Sep 17 00:00:00 2001 From: Weiyin Jiang Date: Tue, 7 Apr 2015 11:36:35 +0800 Subject: post_proc: remove unnecessary command size check Up bound check for command size of EFFECT_CMD_SET_PARAM is not applicable for DSP effect bundle. Remove the check to avoid parameter not taking effect. Change-Id: I7e8f73377699f11bdc1f62a05f6bea03c9c24151 CRs-Fixed: 816053 --- post_proc/bundle.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/post_proc/bundle.c b/post_proc/bundle.c index 556a2d73..96c80d0b 100644 --- a/post_proc/bundle.c +++ b/post_proc/bundle.c @@ -660,8 +660,6 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, } break; case EFFECT_CMD_SET_PARAM: { if (pCmdData == NULL || - cmdSize > (int)(sizeof(effect_param_t) + sizeof(uint32_t) + - sizeof(uint32_t)) || cmdSize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) + sizeof(uint16_t)) || pReplyData == NULL || *replySize != sizeof(int32_t)) { -- cgit v1.2.3