OSDN Git Service

diag: Validate query dci event and log mask size properly
authorHardik Arya <harya@codeaurora.org>
Fri, 6 Apr 2018 09:40:36 +0000 (15:10 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 25 Apr 2018 15:43:24 +0000 (08:43 -0700)
commit31c280fe3455b47273d5b490d96c61c75b77b059
tree2ab8290a8469c785d6e7022b73a813d8c69108d3
parent502257f3e6a9fbc83bdf42d98aef495c8dcecf11
diag: Validate query dci event and log mask size properly

Currently there is possibility of out-of-bound read due to
incorrect validation of received dci event and log mask for
query. The patch update the validation for the same.

Change-Id: I4266eb0f69fdbfa48c5aacc17744dec83995e9e6
Signed-off-by: Hardik Arya <harya@codeaurora.org>
drivers/char/diag/diag_dci.c