commit | 4f5c5a6c88669fbb4f098abe6f5dffce8cbdf2ed | [log] [tgz] |
---|---|---|
author | Aravind Kumar <akumark@codeaurora.org> | Mon May 11 18:19:11 2015 +0530 |
committer | Franz-Xaver Geiger <franz@fairphone.com> | Thu May 04 12:33:09 2017 +0000 |
tree | 1b4ef056903a164f08a739717759284d9d29b9e2 | |
parent | c0ca05440bb6977c93e4bbff1b0269c7274e805b [diff] |
ASoC: msm8x16-wcd: prevent out of bounds access Hardcoding the third argument in strnstr function is resulting in out of bounds access. Set the third argument to sizeof the character string passed as the first argument to prevent out of bounds access. FPIIM-740 : Applied on WCD9320 only as it is used by the device. CRs-Fixed: 832915 Change-Id: I61be88701340e271fd866e0e1801722dbe7d63ac Signed-off-by: Aravind Kumar <akumark@codeaurora.org>