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

Correctly decode non-utf8 strings from slither printer #799

Merged
merged 3 commits into from
Aug 12, 2022

Conversation

ggrieco-tob
Copy link
Member

Tests are missing, but this should work.

@Boyan-MILANOV
Copy link

Tested locally and it works. Echidna successfully solves the following test:

contract CoverageString {
    bytes16 key = "\xf8";
    function test(string memory input) public {
       bytes memory x = bytes(input);
       if (x.length > 0)
         assert(key[0] != x[0]);
    }
}

@ggrieco-tob ggrieco-tob merged commit 9720865 into master Aug 12, 2022
@ggrieco-tob ggrieco-tob deleted the fix-constants-invalid-utfs branch August 12, 2022 08:13
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.

None yet

2 participants