mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 20:08:07 +00:00
fix #736 (ty b1gr3db)
This commit is contained in:
@ -1 +1 @@
|
||||
47722f64e4
|
||||
9a258d5b7a
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
||||
|
@ -72,7 +72,7 @@ void __libqasan_print_maps(void) {
|
||||
|
||||
QASAN_LOG("QEMU-AddressSanitizer (v%s)\n", QASAN_VERSTR);
|
||||
QASAN_LOG(
|
||||
"Copyright (C) 2019-2020 Andrea Fioraldi <andreafioraldi@gmail.com>\n");
|
||||
"Copyright (C) 2019-2021 Andrea Fioraldi <andreafioraldi@gmail.com>\n");
|
||||
QASAN_LOG("\n");
|
||||
|
||||
if (__qasan_log) __libqasan_print_maps();
|
||||
|
@ -261,6 +261,7 @@ void* __libqasan_calloc(size_t nmemb, size_t size) {
|
||||
return r;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
char *p = __libqasan_malloc(size);
|
||||
|
@ -271,7 +271,7 @@ void *__libqasan_memmem(const void *haystack, size_t haystack_len,
|
||||
|
||||
}
|
||||
|
||||
} while (++h <= end);
|
||||
} while (h++ <= end);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Submodule qemu_mode/qemuafl updated: 47722f64e4...9a258d5b7a
@ -2670,3 +2670,4 @@ exit_its:
|
||||
return r;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user