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

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

Merge "trace: resolve stack corruption due to string copy"

parents 6eea59b8 e1255386
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1634,7 +1634,7 @@ static void __trace_find_cmdline(int pid, char comm[])

	map = savedcmd->map_pid_to_cmdline[pid];
	if (map != NO_CMDLINE_MAP)
		strcpy(comm, get_saved_cmdlines(map));
		strlcpy(comm, get_saved_cmdlines(map), TASK_COMM_LEN - 1);
	else
		strcpy(comm, "<...>");
}