Open z3roTo0ne opened 4 years ago
Hey! @z3roTo0ne hank you for this. we are looking into it. Could you provide the test.sol?
Hi, Here is the test.sol: https://gist.github.com/z3roTo0ne/7609d8af0133878f7219471d6f711cf
sorry ,here is the test.sol, the previous one has been deleted: https://gist.github.com/z3roTo0ne/a62a9501823ed77ab173e6efc6df07b3
Thanks. I'm failing to reproduce it so far. You can try this if you like..
diff --git a/manticore/ethereum/detectors.py b/manticore/ethereum/detectors.py
index 521525e..05aab42 100644
--- a/manticore/ethereum/detectors.py
+++ b/manticore/ethereum/detectors.py
@@ -678,7 +678,8 @@ class DetectUninitializedMemory(Detector):
def did_evm_write_memory_callback(self, state, offset, value, size):
current_contract = state.platform.current_vm.address
-
+ if isinstance(offset, Constant):
+ offset = offset.value
# concrete or symbolic write
for offset_i in range(offset, offset + size):
state.context.setdefault("{:s}.initialized_memory".format(self.name), set()).add(
I am facing the same issue. Following is the command I am using and attached is the contract source to reproduce the issue.
manticore --contract HotDollarsToken 1.sol
OS / Environment
I am using
docker pull trailofbits/manticore
Manticore version
Python version
Dependencies
Summary of the problem
Step to reproduce the behavior
just run
manticore test.sol --contract abc
Any relevant logs