From c7918378631992d874c99736272ed342d5d77b2c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 8 Dec 2018 19:03:09 +0100 Subject: executor: fix handling of big-endian bitfields Currently we apply big-endian-ness and bitfield-ness in the wrong order in copyin. This leads to totally bogus result. Fix this. --- executor/common_test.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'executor/common_test.h') diff --git a/executor/common_test.h b/executor/common_test.h index 51b135377..592fafced 100644 --- a/executor/common_test.h +++ b/executor/common_test.h @@ -40,7 +40,10 @@ static long syz_compare(long want, long want_len, long got, long got_len) return -1; } if (memcmp((void*)want, (void*)got, want_len)) { - debug("syz_compare: data differs\n"); + debug("syz_compare: data differs, want:\n"); + debug_dump_data((char*)want, want_len); + debug("got:\n"); + debug_dump_data((char*)got, got_len); errno = EINVAL; return -1; } -- cgit mrf-deployment