wlan: Fix PE issues found by static code analysis
tSirMsgQ is of size 12 bytes and vos_msg_t is of size 16 bytes.
The issue is in function limPostMsgApi the input parameter pMsg
of type tSirMsgQ is type-casted to vos_msg_t and later
message is being copied to type-casted 12 bytes of pointer with
16 bytes of data. This can lead to memory corruption.
Fix this by making sure both of these structures are of same size
CRs-Fixed: 627600
Change-Id: I6a79e1a9b44af65f62e1107325d249ddafca711c
(cherry picked from commit c284425b1fbe2c93fa9dfb5413f2f245d3eb7d5b)
1 file changed