Backport fix for AFL++ issue #1548 (#826)

This commit is contained in:
Andrea Fioraldi 2022-10-11 13:46:01 +02:00 committed by GitHub
parent 94f0c7f56e
commit bda63f82bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,9 +276,7 @@ int __libqasan_posix_memalign(void **ptr, size_t align, size_t len) {
return 0;
}
size_t rem = len % align;
size_t size = len;
if (rem) size += rem;
size_t size = len + align;
int state = QASAN_SWAP(QASAN_DISABLED); // disable qasan for this thread