commit | 68baaddd7f55887c258e0f24dad2ed3a4641f58d | [log] [tgz] |
---|---|---|
author | Yu Wang <yyuwang@codeaurora.org> | Thu Sep 13 16:58:45 2018 +0800 |
committer | nshrivas <nshrivas@codeaurora.org> | Tue Sep 18 01:02:55 2018 -0700 |
tree | 468142e074fe02270ee9a3882e2e3b8437ed2567 | |
parent | 94d245e1ed9668139008437db6af2bda88d43075 [diff] |
qcacld-3.0: check the data length when downloading firmware When downloading a corrupted firmware file that has chunk length in header which doesn't match the contents, buffer over-read may occur. To fix it, before downloading the data, ensure the length is equal or smaller than the left size of the firmware file. Change-Id: I4e0c6c4423f94f26a8c4573b5d234296890f4ecf CRs-Fixed: 2314182