about summary refs log tree commit diff
path: root/qemu_mode/libqasan/hooks.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2021-02-15 14:07:10 +0100
committerDominik Maier <domenukk@gmail.com>2021-02-15 14:07:10 +0100
commitc5017945f7f3e352d5b29889c6cc7d31d7206fd9 (patch)
tree08a6473db09532cb109143e16d1fc9b9a0cf6ed8 /qemu_mode/libqasan/hooks.c
parent5c4c49d9caa967f4dc939ea1ce3d92bc5d1276bc (diff)
parente3a5c31307f323452dc4b5288e0d19a02b596a33 (diff)
downloadafl++-c5017945f7f3e352d5b29889c6cc7d31d7206fd9.tar.gz
merged
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);