diff options
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 02c1eb82e..e8ac309c3 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -13,6 +13,18 @@ struct cover_t; static void cover_reset(cover_t* cov); #endif +static void debug_dump_data(const char* data, int length) +{ + if (!flag_debug) + return; + for (int i = 0; i < length; i++) { + debug("%02x ", data[i] & 0xff); + if (i % 16 == 15) + debug("\n"); + } + debug("\n"); +} + #if SYZ_EXECUTOR || SYZ_THREADED #include <linux/futex.h> #include <pthread.h> |
