Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calldata rendering bugfix, large memory offset bugfix #242

Merged
merged 3 commits into from
Dec 23, 2023
Merged

Conversation

karmacoma-eth
Copy link
Collaborator

No description provided.

Fixes z3.z3types.Z3Exception: All arguments must be Z3 bit-vector expressions.
if any(is_bv(x) for x in calldata):
# make sure every byte is wrapped
calldata_bv = [x if is_bv(x) else con(x, 8) for x in calldata]
return hexify(simplify(Concat(calldata_bv)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concat will fail if the given list is a singleton. concat should be used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concat, why are you so finicky? 🙈

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in c430f4e

@@ -39,6 +39,8 @@
EMPTY_BYTES = b""
MAX_CALL_DEPTH = 1024

# TODO: make this configurable
MAX_MEMORY_SIZE = 2**20
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be increased to 2^32 too?

@daejunpark daejunpark merged commit 33dcdda into main Dec 23, 2023
41 checks passed
@daejunpark daejunpark deleted the trace-bugfix branch December 23, 2023 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants