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

Passing uninitialized address-type variable to format() results in a runtime exception #168

Closed
BorisI opened this issue Aug 23, 2024 · 1 comment

Comments

@BorisI
Copy link
Collaborator

BorisI commented Aug 23, 2024

pragma ton-solidity >= 0.74.0;
contract fma {
    function foo() external pure returns (string s) {
        address v;
        s.append(format("{}\n", v));
    }
}
$ ever-cli -c etc/fma.conf debug run -m foo; tail -n11 trace.log  | head -n7

52 1893 18 NEWC fma.sol:6
53 1911 18 NULL fma.sol:6
54 1939 28 TUPLE 2 fma.sol:6
55 1961 22 PUSHSLICE x2_ fma.sol:6
56 2087 126 CALLREF stdlib.sol:215
57 2113 26 REWRITESTDADDR stdlib.sol:214
58 2163 0 UNHANDLED EXCEPTION: VM Exception: 0 1 stdlib.sol:214
@IgorKoval
Copy link
Collaborator

Fixed in 0.77.0

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

No branches or pull requests

2 participants