mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
msm: cvp: Avoid out-of-bounds write
Fix a potential out-of-bounds write into fw image name array. Change-Id: I646587bcb421c427208d37aea3d231336ec76627 Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
parent
5918bdca37
commit
2aff5be5b4
1 changed files with 1 additions and 1 deletions
|
|
@ -569,7 +569,7 @@ static void hfi_process_sys_get_prop_image_version(
|
|||
else
|
||||
cvp_driver->fw_version[i] = ' ';
|
||||
}
|
||||
cvp_driver->fw_version[i] = '\0';
|
||||
cvp_driver->fw_version[i - 1] = '\0';
|
||||
dprintk(CVP_HFI, "F/W version: %s\n", cvp_driver->fw_version);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue