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

Commit a93c262c 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 e925abe0 b36d72c0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4363,9 +4363,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;
	}