Fix for array out of bound in impd_drc_parse_coeff func

Variable num_gain_max_values was used as index in
impd_init_table function without checked
for bounds. Added check to prevent out of bound array
access.

Bug:141524702
Test: poc in bug

Change-Id: Ia902153ef614db6dbd002572cdbdb62421580588
(cherry picked from commit 566b69f066dd0b391deaed770c4e29ea7c5a9f45)
1 file changed