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

Commit 05e27497 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "adsprpc: Validate fds pointer before de-referencing it"

parents 251b45dc 6934abf3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1871,6 +1871,7 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
	}
	PERF_END);
	for (i = bufs; rpra && i < bufs + handles; i++) {
		if (ctx->fds)
			rpra[i].dma.fd = ctx->fds[i];
		rpra[i].dma.len = (uint32_t)lpra[i].buf.len;
		rpra[i].dma.offset = (uint32_t)(uintptr_t)lpra[i].buf.pv;