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:
depengs <depengs@codeaurora.org>
Loading
Please register or sign in to comment