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

Skip to content
Commit be2966a7 authored by Abhishek Singh's avatar Abhishek Singh
Browse files

wcnss: Fix for Static analysis issues



In wcnssctrl_rx_handler value of len could become negative
after substracting sizeof(struct smd_msg_hdr) from len.
There is no check to verify if value of len is less than
sizeof(struct smd_msg_hdr).

Adds proper check to verify if value of len is less than
sizeof(struct smd_msg_hdr).

Change-Id: I8a3bc9eb63e1b232023444bb8258bcdaccfa1c34
CRs-Fixed: 633938
Signed-off-by: default avatarAbhishek Singh <absingh@codeaurora.org>
parent c7c4d2af
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