forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[read/write set analysis] Don't allow local or return paths in the fo…
…otprint Fixes the final crash issue required to analyze all Diem Framework modules. - Add `Root::Formal` + use a `FunctionEnv` to decide whether to create a `Root::Local` or `Root::Formal`. This change is the bulk of the PR because we need to thread `FunctionEnv`'s to a lot of new places - In `make_footprint(access_path)`, create an empty footprint if `access_path` is rooted in a local or return value. The `Root::Formal`/`Root::Local` split is required to detect this (since the call site of `make_footprint` can't get a `FunctionEnv`. - Add minimal repro that triggered the crash. - Add Diem Framework as a smoke test. Closes: aptos-labs#8259
- Loading branch information
1 parent
8048b5f
commit 0894bd3
Showing
17 changed files
with
516 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.