about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-08-14 11:42:22 +0200
committerGitHub <noreply@github.com>2021-08-14 11:42:22 +0200
commitbdd455e6fba1db0ce85c4aab3cfea15cd744acc0 (patch)
treeea7940b46956638249d8ee510968888ecc32187c
parentb8fd0a1463fe5805d22f323777b65b7b2e2fcf46 (diff)
parenta6adb6be2c41df57dd2912c06940231506a6f030 (diff)
downloadafl++-bdd455e6fba1db0ce85c4aab3cfea15cd744acc0.tar.gz
Merge pull request #1066 from b1gr3db/dev
Fixed spelling of quarantine
-rw-r--r--qemu_mode/libqasan/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu_mode/libqasan/malloc.c b/qemu_mode/libqasan/malloc.c
index 6fe6fc8c..5893a4e5 100644
--- a/qemu_mode/libqasan/malloc.c
+++ b/qemu_mode/libqasan/malloc.c
@@ -106,7 +106,7 @@ static pthread_spinlock_t quarantine_lock;
 #endif
 
 // need qasan disabled
-static int quanratine_push(struct chunk_begin *ck) {
+static int quarantine_push(struct chunk_begin *ck) {
 
   if (ck->requested_size >= QUARANTINE_MAX_BYTES) return 0;
 
@@ -236,7 +236,7 @@ void __libqasan_free(void *ptr) {
   QASAN_STORE(ptr, n);
   int state = QASAN_SWAP(QASAN_DISABLED);  // disable qasan for this thread
 
-  if (!quanratine_push(p)) {
+  if (!quarantine_push(p)) {
 
     if (p->aligned_orig)
       backend_free(p->aligned_orig);