Files
android_kernel_samsung_sm86…/components/mlme
sheenam monga baca2a3950 qcacld-3.0: Avoid OOB access of weight_list
Currently, function mlme_is_freq_present_in_list calculates
index based on chanel frequency in a loop of num_freq.
But acs_weight array can hold NUM_CHANNELS number of values.
loop index more than NUM_CHANNELS may lead to OOB read issue.

Fix is to add a validation for loop index < NUM_CHANNELS to
avoid any OOB issue.

Change-Id: I3c1d3393cd2a40147c325fea8f76b1db1a51f457
CRs-Fixed: 2727312
2020-07-09 11:32:44 -07:00
..