Skip to content

Commit

Permalink
set memory limit to fix #102 (#185)
Browse files Browse the repository at this point in the history
* set memory limit

* add test file

* Restore Cargo.toml format

* restore revm

* Supplement the missing opcode for sha3 middleware
  • Loading branch information
0xAWM authored Sep 3, 2023
1 parent ca9772f commit b7b9221
Show file tree
Hide file tree
Showing 7 changed files with 500 additions and 371 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ bin
corpus
.vscode
node_modules
cache
cache
.idea
.z3-trace
*.code-workspace
output/
work_dir/
*.abi
*.bin
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "ityfuzz"
harness = false

[features]
default = ["cmp", "dataflow", "evm", "print_txn_corpus", "full_trace", ]
default = ["cmp", "dataflow", "evm", "print_txn_corpus", "full_trace", "memory_limit"]
evm = []
cmp = []
dataflow = []
Expand All @@ -31,6 +31,11 @@ print_logs = []
z3_debug = []
sui_support = ["dep:move-binary-format", "dep:move-core-types", "dep:move-stdlib", "dep:move-vm-runtime", "dep:move-vm-types", "dep:sui-move-natives-latest", "dep:sui-protocol-config", "dep:sui-types"]
debug = []
memory_limit = [
"revm-primitives/memory_limit",
"revm-interpreter/memory_limit",
"revm/memory_limit",
]

[dependencies]
bytes = { version = "1.2.1", features = ["serde"] }
Expand Down
Loading

0 comments on commit b7b9221

Please sign in to comment.