summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorLior David <liord@codeaurora.org>2017-10-16 20:39:31 +0300
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-03 09:02:13 -0700
commit59bd12d37072b7c14658b3940d8584f7c1545431 (patch)
tree9a84b0616379ff86ed97a0e2f143d4e0b722c4e4 /lib/mpi/mpi-cmp.c
parent11734d0451bd4ba9722ca5b2609490f66ead332c (diff)
wil6210: fix length check in __wmi_send
The current length check: sizeof(cmd) + len > r->entry_size will allow very large values of len (> U16_MAX - sizeof(cmd)) and can cause a buffer overflow. Fix the check to cover this case. In addition, ensure the mailbox entry_size is not too small, since this can also bypass the above check. Change-Id: Iecb4f53ef05da0e015bc954b57b0e40debb7c8b7 Signed-off-by: Lior David <liord@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions