Commit Graph

5900 Commits

Author SHA1 Message Date
Bhargava Shastry
dbea830b6a Fix return statement 2021-04-15 15:53:46 +02:00
Bhargava Shastry
db9372463e Rename function. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
65b8329b24 Filter recursive functions in fuzzer harness. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
851a21ad37 Disable mload, msize and functions that call themselves (other forms of recusion are still possible) 2021-04-15 15:48:08 +02:00
Bhargava Shastry
614fe9ea9e Update test harness with minimal setup. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
b7d922b00e Update CMakeLists.txt
Remove whitespace
2021-04-15 15:48:08 +02:00
Bhargava Shastry
a40813299f Make proto mutator deterministic. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
3e4d5c9225 Remove upper bound on test case size. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
c9a0ccde3d Add custom mutation to increase stack pressure. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
39a0ecd589 Add upto 32 function I/O parameters. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
b603136bc6 Remove large literals 2021-04-15 15:48:08 +02:00
Bhargava Shastry
6b4e4b62e0 Run stack alloc optimisation 2021-04-15 15:48:08 +02:00
Bhargava Shastry
d2f864916c Disable calldata and return data copy, self destruct. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
058e871ce2 Hacks to disable instructions that may lead to false positives across interpreter and evmone. 2021-04-15 15:48:08 +02:00
Bhargava Shastry
c3a5b45d6e Fuzzing setup 2021-04-15 15:48:08 +02:00
Daniel Kirchner
8a4497a8d3 Fix argument stack slot reuse for functions without return variables. 2021-04-15 15:13:31 +02:00
Daniel Kirchner
beedf7ca25 Add test with same variable on lhs and rhs of assignment. 2021-04-14 19:14:24 +02:00
Daniel Kirchner
3a4769bd99 Support multi-variable-declarations without value. 2021-04-14 19:14:24 +02:00
Daniel Kirchner
ba41814d33 Move function arguments and return values. 2021-04-14 19:14:24 +02:00
Bhargava Shastry
6941143613
Merge pull request #11216 from ethereum/fix-abiv2-fuzzer-bug
Fix use of const ref in Abiv2 and other proto fuzzers.
2021-04-14 15:03:57 +02:00
Bhargava Shastry
15bf6af77a Remove output parameters from function call since they are generated on the fly in the converter. 2021-04-14 13:53:37 +02:00
Bhargava Shastry
7c806217fb Changes to yul proto mutator. 2021-04-14 13:53:37 +02:00
Bhargava Shastry
cf08c9b255 Correct use of emplace_back 2021-04-14 13:53:37 +02:00
Bhargava Shastry
1709b2924b Changes to how function calls are generated. 2021-04-14 13:53:37 +02:00
Christian Parpart
81c7b30a6a
Merge pull request #11234 from ethereum/fix-file-reader-compiler-stack-source-unit-name-mismatch
Use identical source unit names in FileReader and CompilerStack
2021-04-14 13:46:14 +02:00
chriseth
11b227e33e
Merge pull request #11205 from ethereum/fix-docstring-bug
Fix docstring bug
2021-04-14 13:18:33 +02:00
Djordje Mijovic
ea5cda08c8 Adding tests for bytes.concat with fixed bytes arguments. 2021-04-14 11:21:24 +02:00
Bhargava Shastry
b1392ac988 Fix use of const ref in Abiv2 and other proto fuzzers. 2021-04-13 19:38:43 +02:00
Kamil Śliwak
cc65b426d0
Merge pull request #11237 from ethereum/fix-wrong-exit-code-update-in-cmdline-tests
Fix exit code update in cmdlineTests
2021-04-13 13:34:57 +02:00
Kamil Śliwak
6a41b417a3 FileReader: Store files loaded by the callback under their source unit name 2021-04-13 13:25:59 +02:00
Kamil Śliwak
b9b483a0c3 cmdlineTests.sh: Make regex for stripping version from test output match even if there's no whitespace after colon 2021-04-13 13:25:32 +02:00
chriseth
0289994da5
Merge pull request #11221 from ethereum/fixCalldataDecodingOverflowBug
Fix calldata decoding overflow bug
2021-04-12 18:11:29 +02:00
chriseth
4912bfe639
Merge pull request #11229 from ethereum/antlrPath
Fix import paths in grammar and grammar testing details.
2021-04-12 16:30:41 +02:00
Daniel Kirchner
6fdfd8b62b Fix import path grammar and grammar testing details. 2021-04-12 14:54:36 +02:00
chriseth
2ed17e4b43 Update tests. 2021-04-12 13:43:56 +02:00
chriseth
72d0a56a72 Fix array decoding offset overflow. 2021-04-12 13:43:51 +02:00
chriseth
32b8332867 Refactor array decoding. 2021-04-12 13:43:51 +02:00
hrkrshnn
382c488edd Fix missing error when events are used without an emit statement.
Whenever there was a proper invocation of events, the compiler assumed that all the subsequent
invocations were proper.
2021-04-12 10:23:05 +02:00
Kamil Śliwak
7d37e37d95 cmdlineTests.sh: Fix error code update using the wrong value 2021-04-10 22:58:49 +02:00
Leonardo Alt
8a7e94c06f Keep pragma in smoke test for bytecode compare script 2021-04-08 21:03:39 +02:00
Leonardo Alt
ad10bee8f0 update command line tests 2021-04-08 21:03:39 +02:00
Leonardo Alt
0a4afa71bd Update old tests 2021-04-08 21:03:39 +02:00
Leonardo Alt
d617ef461e Add new tests 2021-04-08 21:03:38 +02:00
chriseth
0cc0cabd30
Merge pull request #11224 from ethereum/lastAllocationUnbounded
Use unbounded allocation before returning.
2021-04-08 19:32:40 +02:00
Daniel Kirchner
96c8123b6b Use unbounded allocation before returning. 2021-04-08 18:37:24 +02:00
hrkrshnn
e96a161115 Tests and changelog 2021-04-08 17:06:24 +02:00
chriseth
2856f56525
Merge pull request #10942 from ethereum/returnSlotAllocation
Delayed return slot allocation.
2021-04-08 16:42:07 +02:00
chriseth
f04adde664 Allow hex string literals in Yul. 2021-04-08 15:03:33 +02:00
chriseth
6d6112a81b
Merge pull request #11210 from anurag-git/issue_10738-2
Use range-v3 loops(transform)
2021-04-08 14:56:15 +02:00
anurag4u80
b2ca7916aa Replaced boost::adaptors::transformed 2021-04-08 17:38:14 +05:30