Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79f094d4 authored by Aravind Kumar's avatar Aravind Kumar Committed by Vatsal Bucha
Browse files

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.

CRs-Fixed: 832915
Change-Id: I61be88701340e271fd866e0e1801722dbe7d63ac
Signed-off-by: default avatarAravind Kumar <akumark@codeaurora.org>
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent d0ad11f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment