commit | ea432dda8aa15146d06d6a1090776a668ff9da51 | [log] [tgz] |
---|---|---|
author | Vignesh Viswanathan <viswanat@codeaurora.org> | Mon Apr 30 14:06:15 2018 +0530 |
committer | nshrivas <nshrivas@codeaurora.org> | Mon May 14 19:07:58 2018 -0700 |
tree | ee8e57be85062a52505b40199c17c6291c864928 | |
parent | d99e51eda689825f7420413455c9f54565db8ac1 [diff] |
qcacld-3.0: Add sanity check for min buf_len in wma_form_rx_packet In function wma_form_rx_packet, mpdu_data_len is calculated as (buf_len - mpdu_hdr_len). If the value of buf_len is less than mpdu_hdr_len, then a integer underflow would occur while calculating mpdu_data_len. Add sanity check to return invalid if buf_len is less than mpdu_hdr_len. Change-Id: I4522eadb65f6cd8b210ba071a91e53008eec042c CRs-Fixed: 2230318