FPII-2680 : Fix security vulnerability: Effect command might allow negative indexes CVE-2017-0385 A-32585400

Within equalizer.c, when equalizer_set_parameter() is supplied a crafted effect_param_t data structure, it could be used to cause an out-of-bounds write.

The fix is designed to add a parameter size check.

Test: Use POC bug or cts security test
Change-Id: I5ef8c756369d488ad5903c163584f24de63d73e3
(cherry picked from commit 500a9feaf816c719241de83f2ee65c8e2d7ff269)
1 file changed