aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.h')
-rw-r--r--executor/executor_linux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h
index 47804f4f4..98b89fc9a 100644
--- a/executor/executor_linux.h
+++ b/executor/executor_linux.h
@@ -167,8 +167,10 @@ static void cover_reset(cover_t* cov)
static void cover_collect(cover_t* cov)
{
- // Note: this assumes little-endian kernel.
- cov->size = *(uint32*)cov->data;
+ if (is_kernel_64_bit)
+ cov->size = *(uint64*)cov->data;
+ else
+ cov->size = *(uint32*)cov->data;
}
static bool cover_check(uint32 pc)