diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-17 13:30:12 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-04-17 13:30:12 +0200 |
commit | a6d4f04019db512a5f3be0735cf1eede14ac4375 (patch) | |
tree | 1b05fa6f42c63e3e82322f86050c5763f93b21e5 /test/unittests/unit_maybe_alloc.c | |
parent | 87d27b861649295c3de93e48c47544f29f07f36a (diff) | |
parent | f22d8120ef6814c9af3b7a0c291c1494137fc53c (diff) | |
download | afl++-a6d4f04019db512a5f3be0735cf1eede14ac4375.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'test/unittests/unit_maybe_alloc.c')
-rw-r--r-- | test/unittests/unit_maybe_alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unittests/unit_maybe_alloc.c b/test/unittests/unit_maybe_alloc.c index d9c037a0..8cd8b11a 100644 --- a/test/unittests/unit_maybe_alloc.c +++ b/test/unittests/unit_maybe_alloc.c @@ -22,6 +22,7 @@ extern void mock_assert(const int result, const char* const expression, mock_assert((int)(expression), #expression, __FILE__, __LINE__); #include "alloc-inl.h" +void __wrap_exit(int status); /* remap exit -> assert, then use cmocka's mock_assert (compile with `--wrap=exit`) */ extern void exit(int status); @@ -30,6 +31,7 @@ void __wrap_exit(int status) { assert(0); } +int __wrap_printf(const char *format, ...); /* ignore all printfs */ extern int printf(const char *format, ...); extern int __real_printf(const char *format, ...); |