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

Commit a30af047 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qseecom: use strnlen in qseecom_start_app"

parents 1765f52a 64a6d728
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4382,9 +4382,9 @@ int qseecom_start_app(struct qseecom_handle **handle,
		return -EINVAL;
	}

	if (strlen(app_name) >= MAX_APP_NAME_SIZE) {
	if (strnlen(app_name, MAX_APP_NAME_SIZE) == MAX_APP_NAME_SIZE) {
		pr_err("The app_name (%s) with length %zu is not valid\n",
			app_name, strlen(app_name));
			app_name, strnlen(app_name, MAX_APP_NAME_SIZE));
		return -EINVAL;
	}