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

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

Merge "trace: Fix array index out of bounds violation"

parents 9c9a5513 a0612ff8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ int trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
	va_list ap;
	int ret;

	if (s->full || !len)
	if (s->full || !len || (s->len >= (PAGE_SIZE - 1)))
		return 0;

	va_start(ap, fmt);