aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraiQG_ <lovequange1314@gmail.com>2022-02-16 15:43:30 +0800
committerAleksandr Nogikh <wp32pw@gmail.com>2022-02-21 20:37:29 +0100
commit6e821dbf79b49f1952fc147f237aa0f396790edc (patch)
tree69cf764b5a33bbade7fc8a76401de6d675ad89ad
parent3cd800e43d452c348a66ba475143831d94969a24 (diff)
fix: "mmap_alloc_size"->"cov->mmap_alloc_size"
-rw-r--r--AUTHORS1
-rw-r--r--CONTRIBUTORS2
-rw-r--r--executor/executor_darwin.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index c0c5804dc..6359cb75c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -47,3 +47,4 @@ Muhammad Usama Anjum
ANSSI
Chuck Silvers
Lee Jones
+Junquan Zhou \ No newline at end of file
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 13a787340..2df5346c0 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -103,3 +103,5 @@ Linaro
Sabyrzhan Tasbolatov
Adam Goska
Kouame Behouba Manassé
+Junquan Zhou
+
diff --git a/executor/executor_darwin.h b/executor/executor_darwin.h
index d7c6c4574..3742af8b9 100644
--- a/executor/executor_darwin.h
+++ b/executor/executor_darwin.h
@@ -80,7 +80,7 @@ static void cover_mmap(cover_t* cov)
// Sanity check to make sure our assumptions in the max_entries calculation
// hold up.
- if (mmap_alloc_size > kCoverSize)
+ if (cov->mmap_alloc_size > kCoverSize)
fail("mmap allocation size larger than anticipated");
cov->data = (char*)mmap_ptr;