about summary refs log tree commit diff
path: root/qemu_mode/libqasan/hooks.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-02-13 13:32:42 +0100
committerhexcoder- <heiko@hexco.de>2021-02-13 13:32:42 +0100
commit70651d60bdc5c70a8a699e0873a4726e1347a7c3 (patch)
tree898468927bb1bc06ccceaa763cf44fc333ab3ccc /qemu_mode/libqasan/hooks.c
parent385312c65858695b55607ccd376fb5ea8f83a688 (diff)
parent87a607c7d081dac1e4afd7c3cbe5accf62d355e4 (diff)
downloadafl++-70651d60bdc5c70a8a699e0873a4726e1347a7c3.tar.gz
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'qemu_mode/libqasan/hooks.c')
-rw-r--r--qemu_mode/libqasan/hooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu_mode/libqasan/hooks.c b/qemu_mode/libqasan/hooks.c
index 3bb4cc42..405dddae 100644
--- a/qemu_mode/libqasan/hooks.c
+++ b/qemu_mode/libqasan/hooks.c
@@ -174,7 +174,9 @@ char *fgets(char *s, int size, FILE *stream) {
 
   QASAN_DEBUG("%14p: fgets(%p, %d, %p)\n", rtv, s, size, stream);
   QASAN_STORE(s, size);
+#ifndef __ANDROID__
   QASAN_LOAD(stream, sizeof(FILE));
+#endif
   char *r = __lq_libc_fgets(s, size, stream);
   QASAN_DEBUG("\t\t = %p\n", r);