Skip to content

Commit

Permalink
Fix the dynamic flavor scope for allocate-or-change-rw-memory.yml (ma…
Browse files Browse the repository at this point in the history
…ndiant#860)

* lib/allocate-or-change-rw-memory.yml: set `meta.scopes.dynamic` to `call` in order to enforce the rule's call locality

* lib/change-memory-protection.yml: set `meta.scopes.dynamic` to `call`

* lib/allocate-memory.yml: set `meta.scopes.dynamic` to `call`
  • Loading branch information
yelhamer authored Dec 11, 2023
1 parent 722a257 commit d19f712
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/allocate-memory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
lib: true
scopes:
static: basic block
dynamic: thread
dynamic: call
mbc:
- Memory::Allocate Memory [C0007]
examples:
Expand Down
2 changes: 1 addition & 1 deletion lib/allocate-or-change-rw-memory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
lib: true
scopes:
static: basic block
dynamic: thread
dynamic: call
mbc:
- Memory::Allocate Memory [C0007]
examples:
Expand Down
2 changes: 1 addition & 1 deletion lib/change-memory-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rule:
lib: true
scopes:
static: basic block
dynamic: thread
dynamic: call
mbc:
- Memory::Change Memory Protection [C0008]
examples:
Expand Down

0 comments on commit d19f712

Please sign in to comment.