qcacmn: Replace QDF_MAX_NUM_CHAN with NUM_CHANNELS to aviod OOB access
Currently QDF_MAX_NUM_CHAN and NUM_CHANNELS aren't aligned, this unalignment may cause many potential OOB access. So replace QDF_MAX_NUM_CHAN with NUM_CHANNELS to keep unified. Change-Id: I7bf7829d776f7caf5b2afbd2c9fd0c20d608e630 CRs-Fixed: 2644073
This commit is contained in:
@@ -2555,8 +2555,8 @@ struct wmi_wifi_start_log {
|
||||
* @pcl_len: Number of channels in the PCL
|
||||
*/
|
||||
struct wmi_pcl_list {
|
||||
uint8_t pcl_list[128];
|
||||
uint8_t weight_list[128];
|
||||
uint8_t pcl_list[NUM_CHANNELS];
|
||||
uint8_t weight_list[NUM_CHANNELS];
|
||||
uint32_t pcl_len;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user