From 3a9d4501065f5f5eed3aa23a90c5212d29bae21b Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Fri, 17 Jan 2020 11:05:09 +0100 Subject: [PATCH] trace: avoid page fault on client calling subjects Fixes #3608 --- repos/base/include/trace_session/client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/include/trace_session/client.h b/repos/base/include/trace_session/client.h index dc12f3388..8d2ca33c3 100644 --- a/repos/base/include/trace_session/client.h +++ b/repos/base/include/trace_session/client.h @@ -81,7 +81,7 @@ struct Genode::Trace::Session_client : Genode::Rpc_client(), dst_len); - memcpy(dst, _argument_buffer.base, dst_len*sizeof(Subject_id)); + memcpy(dst, _argument_buffer.base, num_subjects*sizeof(Subject_id)); return num_subjects; }