mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "qcacld-3.0: Add buffer length check to avoid over-read" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
406329fd14
1 changed files with 6 additions and 0 deletions
|
|
@ -3781,6 +3781,12 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (mgmt_rx_params->buf_len > data_len) {
|
||||
WMA_LOGE("%s: Invalid rx mgmt packet, data_len %u, mgmt_rx_params->buf_len %u",
|
||||
__func__, data_len, mgmt_rx_params->buf_len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
mgmt_rx_params->pdev_id = 0;
|
||||
mgmt_rx_params->rx_params = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue