aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_test.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-08 19:03:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-08 19:08:08 +0100
commitc7918378631992d874c99736272ed342d5d77b2c (patch)
tree5e67097471fda876d532c270dc4b7f3db0e850c5 /executor/common_test.h
parent33508266251f6db13ef34741e36b1dce2c9e1b49 (diff)
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.
Diffstat (limited to 'executor/common_test.h')
-rw-r--r--executor/common_test.h5
1 files changed, 4 insertions, 1 deletions
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;
}