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:
Qun Zhang
2020-03-18 16:10:10 +08:00
committed by nshrivas
부모 cd48f1cca3
커밋 4bc614dd0c
7개의 변경된 파일16개의 추가작업 그리고 23개의 파일을 삭제

파일 보기

@@ -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;
};