OSDN Git Service

diag: dci: Validate dci response length before parsing
authorManoj Prabhu B <bmanoj@codeaurora.org>
Thu, 18 Apr 2019 11:19:49 +0000 (16:49 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Sat, 27 Apr 2019 05:44:17 +0000 (22:44 -0700)
commitc1cd71e6ee5ed9aaec8fc1cecea3f7a12676c977
tree621bf7a625f526035bce08d37936d79b7c87876f
parentef08a221c5315aec3cbcf351b591b5f4352bc901
diag: dci: Validate dci response length before parsing

Prevent possible out of bound access due to missing length check
while extracting dci packet response by adding proper checks.

CRs-Fixed: 2434571
Change-Id: I7b6972bf6559bdca99333a75d989cd6d3431b801
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
drivers/char/diag/diag_dci.c