Merge "msm: vidc: Fix buffer overflow issue in driver"

This commit is contained in:
Linux Build Service Account 2016-07-15 03:44:24 -07:00 committed by Gerrit - the friendly Code Review server
commit e0addbd952

View file

@ -4418,7 +4418,7 @@ static int venus_hfi_get_fw_info(void *dev, struct hal_fw_info *fw_info)
goto fail_version_string; goto fail_version_string;
} }
for (i--; i < VENUS_VERSION_LENGTH && j < VENUS_VERSION_LENGTH; i++) for (i--; i < VENUS_VERSION_LENGTH && j < VENUS_VERSION_LENGTH - 1; i++)
fw_info->version[j++] = version[i]; fw_info->version[j++] = version[i];
fw_info->version[j] = '\0'; fw_info->version[j] = '\0';