From 6e821dbf79b49f1952fc147f237aa0f396790edc Mon Sep 17 00:00:00 2001 From: aiQG_ Date: Wed, 16 Feb 2022 15:43:30 +0800 Subject: fix: "mmap_alloc_size"->"cov->mmap_alloc_size" --- AUTHORS | 1 + CONTRIBUTORS | 2 ++ executor/executor_darwin.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) 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; -- cgit mrf-deployment