-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(symbolic-execution): add growth loop-detection heuristic (#251)
* chore(sym-exec): convert tuple to `JumpFrame` * feat(sym-exec): add `jump_stack_depth_less_than_max_stack_depth` heuristic * fix(sym-exec): handle `JUMP` loops as well * fix(sym-exec): increase similarity threshhold for jump detection * chore(sym-exec): remove unused parameter `logger`
- Loading branch information
1 parent
5ddf937
commit 61478dd
Showing
5 changed files
with
147 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use ethers::types::U256; | ||
|
||
#[derive(Clone, Debug, PartialEq, Eq, Hash)] | ||
pub struct JumpFrame { | ||
pub pc: u128, | ||
pub jumpdest: U256, | ||
pub stack_depth: usize, | ||
pub jump_taken: bool, | ||
} | ||
|
||
impl JumpFrame { | ||
pub fn new(pc: u128, jumpdest: U256, stack_depth: usize, jump_taken: bool) -> Self { | ||
Self { pc, jumpdest, stack_depth, jump_taken } | ||
} | ||
} |
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
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