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

Commit 820fbb7b authored by depengs's avatar depengs Committed by Gerrit - the friendly Code Review server
Browse files

msm: ais: sensor: Validate sensor related name length



Variable "slave_info->sensor_name", "slave_info->eeprom_name",
"slave_info->actuator_name" and "slave_info->ois_name" are
from user input, which may be not NULL terminated.
OOB will be possible when accessing these variable.

Add a validation for these name length.

Change-Id: I9bedad8fb6b34b789ce15443a1a5fcd96cd9e29d
Signed-off-by: default avatardepengs <depengs@codeaurora.org>
parent b7ae0124
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