diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-02-12 09:42:22 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-02-12 09:42:22 +0100 |
commit | 22a3c7f7d043d9dbf39c847061d88a4577537031 (patch) | |
tree | 37f2e2e3b5561168e92c36a0b96f1caec42f99c6 /qemu_mode/libqasan/hooks.c | |
parent | 16ffbb37f5897ca318e747518fdae6b4e56b52ac (diff) | |
download | afl++-22a3c7f7d043d9dbf39c847061d88a4577537031.tar.gz |
fix #736 (ty b1gr3db)
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 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); |