Skip to content

Decode and strip CBOR encoded metadata#48

Open
thevaizman wants to merge 1 commit intocrytic:masterfrom
thevaizman:fix/decode-and-strip-solc-metadata
Open

Decode and strip CBOR encoded metadata#48
thevaizman wants to merge 1 commit intocrytic:masterfrom
thevaizman:fix/decode-and-strip-solc-metadata

Conversation

@thevaizman
Copy link

@thevaizman thevaizman commented May 14, 2022

Currently, metadata appended to the EVM binary by the compiler is treated as part of the program. This creates confusion because the bytes of the metadata should not be interpreted as opcodes as they make no sense when interpreted as such.

I added a step in the disassembly process, which decodes, prints and strips CBOR encoded metadata from binary inputs using an array of known patterns. The patterns array should be maintained and updated when new patterns are detected.

I believe this contribution will produce cleaner output.

@CLAassistant
Copy link

CLAassistant commented May 14, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Tal Vaizman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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