qcacld-3.0: Add check for set_ft_ies length
In file sme_ft_api.c, function sme_set_ft_ies(), the ft_ies_length is user-controlled so there is a possibility of integer overflow. Add Sanity check to avoid integer overflow. Change-Id: Idab80abeca35397be7ec13ca81c7ccb8be8ef256 CRs-Fixed: 2100965
This commit is contained in:

committed by
snandini

parent
0707ddfedb
commit
d6d79e884c
@@ -195,6 +195,9 @@ void sme_set_ft_ies(tHalHandle hal_ptr, uint32_t session_id,
|
|||||||
* reassoc req. This is the new FT Roaming in place At
|
* reassoc req. This is the new FT Roaming in place At
|
||||||
* this juncture we'r ready to start sending Reassoc req
|
* this juncture we'r ready to start sending Reassoc req
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
ft_ies_length = QDF_MIN(ft_ies_length, MAX_FTIE_SIZE);
|
||||||
|
|
||||||
sme_debug("New Reassoc Req: %pK in state %d",
|
sme_debug("New Reassoc Req: %pK in state %d",
|
||||||
ft_ies, session->ftSmeContext.FTState);
|
ft_ies, session->ftSmeContext.FTState);
|
||||||
if ((session->ftSmeContext.reassoc_ft_ies) &&
|
if ((session->ftSmeContext.reassoc_ft_ies) &&
|
||||||
|
Reference in New Issue
Block a user