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

Commit 6fdb45c3 authored by Arun Menon's avatar Arun Menon Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Fix buffer overflow issue in driver



This change fixes a buffer overflow issue during
venus version write to a local buffer.

CRs-Fixed: 944588

Change-Id: Id97f89debbd8d160a8ef624ae0c1be16c47d3270
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent b7a0d4a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4404,7 +4404,7 @@ static int venus_hfi_get_fw_info(void *dev, struct hal_fw_info *fw_info)
		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] = '\0';