mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-01 03:05:34 +00:00
Avoid field-overflowing memcpy() (#333)
This commit is contained in:
parent
94d6dfbe9d
commit
8668e7cfbd
@ -4741,7 +4741,7 @@ unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fill default supported_mcs_set */
|
/* fill default supported_mcs_set */
|
||||||
memcpy(ht_capie.mcs.rx_mask, pmlmeext->default_supported_mcs_set, 16);
|
memcpy(&ht_capie.mcs, pmlmeext->default_supported_mcs_set, 16);
|
||||||
|
|
||||||
/* update default supported_mcs_set */
|
/* update default supported_mcs_set */
|
||||||
rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
rtw_hal_get_hwreg(padapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type));
|
||||||
|
Loading…
Reference in New Issue
Block a user