diff options
author | van Hauser <vh@thc.org> | 2021-03-19 19:04:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 19:04:59 +0100 |
commit | e98cd008222aa3bfea9b696ad756163302437eb3 (patch) | |
tree | 56cce5a15206634bd1877c428a5b15c064d7fa53 /qemu_mode/libqasan/hooks.c | |
parent | 23f7bee81c46ad4f0f65fa56d08064ab5f1e2e6f (diff) | |
parent | 2102264acf5c271b7560a82771b3af8136af9354 (diff) | |
download | afl++-e98cd008222aa3bfea9b696ad756163302437eb3.tar.gz |
Merge pull request #831 from AFLplusplus/dev
Push to stable
Diffstat (limited to 'qemu_mode/libqasan/hooks.c')
-rw-r--r-- | qemu_mode/libqasan/hooks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu_mode/libqasan/hooks.c b/qemu_mode/libqasan/hooks.c index 9c406c74..0e6c3e08 100644 --- a/qemu_mode/libqasan/hooks.c +++ b/qemu_mode/libqasan/hooks.c @@ -51,6 +51,7 @@ ssize_t write(int fd, const void *buf, size_t count) { void *rtv = __builtin_return_address(0); QASAN_DEBUG("%14p: write(%d, %p, %zu)\n", rtv, fd, buf, count); + QASAN_LOAD(buf, count); ssize_t r = __lq_libc_write(fd, buf, count); QASAN_DEBUG("\t\t = %zd\n", r); @@ -63,6 +64,7 @@ ssize_t read(int fd, void *buf, size_t count) { void *rtv = __builtin_return_address(0); QASAN_DEBUG("%14p: read(%d, %p, %zu)\n", rtv, fd, buf, count); + QASAN_STORE(buf, count); ssize_t r = __lq_libc_read(fd, buf, count); QASAN_DEBUG("\t\t = %zd\n", r); |