-
Notifications
You must be signed in to change notification settings - Fork 281
Instrument with injected function calls #381
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
test/sources/solidity/contracts/statements/stack-too-deep.sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| pragma solidity ^0.5.0; | ||
|
|
||
| contract Test { | ||
| // 15 fn args + 1 local variable assignment | ||
| // will normally compile w/out stack too deep | ||
| // error. | ||
| function a( | ||
| uint _a, | ||
| uint _b, | ||
| uint _c, | ||
| uint _d, | ||
| uint _e, | ||
| uint _f, | ||
| uint _g, | ||
| uint _h, | ||
| uint _i, | ||
| uint _j, | ||
| uint _k, | ||
| uint _l, | ||
| uint _m, | ||
| uint _n, | ||
| uint _o | ||
| ) public { | ||
| uint x = _a; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1614,11 +1614,6 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.4.2: | |
| escape-string-regexp "^1.0.5" | ||
| supports-color "^5.3.0" | ||
|
|
||
| "charenc@>= 0.0.1": | ||
| version "0.0.2" | ||
| resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" | ||
| integrity sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc= | ||
|
|
||
| check-error@^1.0.2: | ||
| version "1.0.2" | ||
| resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" | ||
|
|
@@ -2028,11 +2023,6 @@ cross-spawn@^5.0.1: | |
| shebang-command "^1.2.0" | ||
| which "^1.2.9" | ||
|
|
||
| "crypt@>= 0.0.1": | ||
| version "0.0.2" | ||
| resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" | ||
| integrity sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs= | ||
|
|
||
| [email protected]: | ||
| version "3.12.0" | ||
| resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" | ||
|
|
@@ -7379,14 +7369,6 @@ sha.js@^2.4.0, sha.js@^2.4.8: | |
| inherits "^2.0.1" | ||
| safe-buffer "^5.0.1" | ||
|
|
||
| sha1@^1.1.1: | ||
| version "1.1.1" | ||
| resolved "https://registry.yarnpkg.com/sha1/-/sha1-1.1.1.tgz#addaa7a93168f393f19eb2b15091618e2700f848" | ||
| integrity sha1-rdqnqTFo85PxnrKxUJFhjicA+Eg= | ||
| dependencies: | ||
| charenc ">= 0.0.1" | ||
| crypt ">= 0.0.1" | ||
|
|
||
| sha3@^1.2.2: | ||
| version "1.2.3" | ||
| resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.3.tgz#ed5958fa8331df1b1b8529ca9fdf225a340c5418" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope this ok - the VM reports that both PUSH1 and PUSH2 are called with the same hash at the top of the stack, resulting in duplicate hits. This makes everything contingent on a very specific implementation detail at Solidity though...