summaryrefslogtreecommitdiff
path: root/view/sharedcache/workflow/SharedCacheWorkflow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/workflow/SharedCacheWorkflow.cpp')
-rw-r--r--view/sharedcache/workflow/SharedCacheWorkflow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/sharedcache/workflow/SharedCacheWorkflow.cpp b/view/sharedcache/workflow/SharedCacheWorkflow.cpp
index 71160e44..cde8310c 100644
--- a/view/sharedcache/workflow/SharedCacheWorkflow.cpp
+++ b/view/sharedcache/workflow/SharedCacheWorkflow.cpp
@@ -128,7 +128,7 @@ void AnalyzeStubFunction(Ref<Function> func, Ref<MediumLevelILFunction> mlil, Sh
// Adjust the new region semantics to read only, this helps analysis pickup constant loads in our stub functions.
// NOTE: We do NOT do this for stub island as that contains CODE!
if (region->type != SharedCacheRegionTypeStubIsland)
- region->flags = static_cast<BNSegmentFlag>(SegmentReadable | SegmentContainsData);
+ region->flags = static_cast<BNSegmentFlag>(SegmentReadable | SegmentContainsData | SegmentDenyWrite);
return controller.ApplyRegion(*view, *region);
};
@@ -252,7 +252,7 @@ void AnalyzeStandardFunction(Ref<Function> func, Ref<MediumLevelILFunction> mlil
// Adjust the new region semantics to read only, this helps analysis pickup constant loads in our stub functions.
// NOTE: We do NOT do this for stub island as that contains CODE!
if (region->type != SharedCacheRegionTypeStubIsland)
- region->flags = static_cast<BNSegmentFlag>(SegmentReadable | SegmentContainsData);
+ region->flags = static_cast<BNSegmentFlag>(SegmentReadable | SegmentContainsData | SegmentDenyWrite);
return controller.ApplyRegion(*view, *region);
};