Daniel Bast
0717111a55
Enable+apply isort via ruff/pre-commit ( #1871 )
...
* Enable+apply isort via ruff/pre-commit
* Fix cyclic imports
---------
Co-authored-by: Nikhil Parasaram <nikhilparasaram@gmail.com>
4 months ago
Daniel Bast
9bbe7d607e
Add pre-commit hook definition + test ( #1877 )
...
* Add pre-commit hook + test
* Update README.md
* Update README.md
* update README.md
Co-authored-by: Nikhil Parasaram <tommycjniko@gmail.com>
---------
Co-authored-by: Nikhil Parasaram <nikhilparasaram@gmail.com>
Co-authored-by: Nikhil Parasaram <tommycjniko@gmail.com>
4 months ago
Daniel Bast
25de4e7cc3
Run black + ruff via pre-commit, fix findings to reduce requirements.txt ( #1865 )
...
* Run black via pre-commit + Github Action workflow, update black
* Apply black via pre-commit
* Enable ruff + rulset "F" via pre-commit
* Apply ruff via pre-commit
* Manual lint fixes
* Apply review comments
---------
Co-authored-by: Nikhil Parasaram <nikhilparasaram@gmail.com>
4 months ago
Daniel Bast
3759050cd2
Fully switch from mock to unittest.mock ( #1864 )
...
mock became part of the Python stdlib in Python 3.3, see
* https://docs.python.org/3/library/unittest.mock.html
* https://mock.readthedocs.io/en/latest/
Some tests already use unittest.mock, this PR now changes all mock imports
to unittest.mock and removes mock from the requirements.txt file.
4 months ago
Nikhil Parasaram
470144b7c0
Supports Python3.12 and fixes some bugs ( #1860 )
...
* Add transient storage
* Fix issues with transient storage
* Remove obselete opcodes
* Cleanup
* Fix some issues and support python 3.12
* Refactor
* Improve the test readability
4 months ago
Nikhil Parasaram
cfa8a1fa58
Add transient storage ( #1854 )
...
* Add transient storage
* Fix issues with transient storage
* Remove obselete opcodes
* Cleanup
---------
Co-authored-by: psantos <122355282+psantos-consensys@users.noreply.github.com>
7 months ago
alwayshang
a4f51d0af7
chore: fix some typos in comments ( #1855 )
...
Signed-off-by: alwayshang <zhanghonghao@outlook.com>
7 months ago
Snoppy
c5ac7cfff5
comment misspell ( #1846 )
9 months ago
Nikhil Parasaram
70d234e4f1
Add improved state merging ( #1843 )
...
* Add improved state merging
* Fix namespace
9 months ago
Nikhil Parasaram
2b5445fe11
Add new features ( #1841 )
9 months ago
Nikhil Parasaram
13969337fd
Add additional analysis modules ( #1836 )
...
* Update z3
* Add analysis modules
* Modify test
10 months ago
Nikhil Parasaram
016bc733f6
Remove parallelisation ( #1833 )
...
* Refactor code
* Edit tox
* Modify tox
* Modify tests
* Reduce processes
* Reduce processes
* Remove parallel test
* Remove test
10 months ago
Nikhil Parasaram
80c8f13a3b
Reduce number of processes ( #1832 )
...
* Refactor code
* Edit tox
* Modify tox
* Modify tests
* Reduce processes
* Reduce processes
10 months ago
Nikhil Parasaram
828b54f1b6
Refactor code ( #1831 )
...
* Refactor code
* Edit tox
* Modify tox
* Modify tests
* Reduce processes
10 months ago
Nikhil Parasaram
205d50a50f
Add summaries and additional bugfixes ( #1830 )
...
* Add summaries and additional bugfixes
* Update test w.r.t bugfixes
* Update namespace
* Disable sonar
11 months ago
Nikhil Parasaram
2bf6a35327
Handle edge case when parsing ( #1826 )
...
* Change configuration
* Downgrade solcx
* Handle edge case when parsing
12 months ago
Nikhil Parasaram
14d32a2b8c
Fix a bug related to feature extraction ( #1817 )
1 year ago
Nikhil Parasaram
91c4ddad2e
Handle edge case during feature extraction ( #1811 )
...
* Update requirements.txt
* use eth-abi
* Update requirements.txt
* Handle edge case during feature extraction
1 year ago
Nikhil Parasaram
a28d600ced
Fix edge case in integer module for 0.8.0 ( #1805 )
...
* Fix edge case in integer module for 0.8.0
* Remove print
1 year ago
Nikhil Parasaram
bd27897533
Misc fixes ( #1799 )
...
* Misc fixes
* Fix singleton
1 year ago
Nikhil Parasaram
6fa927e296
Add rf based tx prioritiser ( #1798 )
...
* Add rf based tx prioritiser
* Handle older solc version feature extraction gracefully
1 year ago
Abhinandan Udupa
39b79cae8a
Fix parsing of compiler version and reformat file ( #1787 )
...
* Fix parsing of compiler version (patch version)
* Add test to check version-patch fix
1 year ago
Nikhil Parasaram
96c3ecd4b8
Add feature extraction ( #1785 )
...
* Add push0 and push tests
* Fix issue with args
* Add missing files
* Add feature extraction
* Rename file
1 year ago
Nikhil Parasaram
2855b34a97
Add push0 and push tests ( #1781 )
...
* Add push0 and push tests
* Fix issue with args
* Add missing files
1 year ago
Nikhil Parasaram
9234112902
Handle non deterministic test cases ( #1776 )
...
* parallelise test execution
* Rename tests
* Fix tests
* Fix non determinism
2 years ago
Nikhil Parasaram
4084113513
parallelise test execution ( #1775 )
...
* parallelise test execution
* Rename tests
* Fix tests
2 years ago
A23187
499bce16f7
some fixes ( #1721 )
...
* some fixes
- add cli option --enable-mutation-pruner to control if to enable MutationPrunerBuilder
- let cli option --enable-coverage-strategy to control if to load CoveragePluginBuilder
- let cli option --enable-iprof to control if to load InstructionProfilerBuilder
- remove the redundant print in MythrilDisassembler.hash_for_function_signature
- fix the bug of non-hexadecimal numbers found when converting hex(func_hash)[2:] to bytes
- other fixes
* some fixes
- add cli option --disable-mutation-pruner to disable MutationPrunerBuilder
- let cli option --disable-coverage-strategy to disable CoveragePluginBuilder
- let cli option --disable-iprof to disable InstructionProfilerBuilder
- remove the redundant print in MythrilDisassembler.hash_for_function_signature
- other fixes
* Fix tests
---------
Co-authored-by: norhh <nikhilparasaram@gmail.com>
2 years ago
Nikhil Parasaram
b2c409f53b
Add pending constraints strategy and make it the default search strategy ( #1767 )
...
* Check for 'unchecked' before turning off Integer module
* Use threading during solving constraints
* Hide segfaults
* Misc fixes
* Misc fixes
* Misc fixes
* reformat with black
* Mythril v0.23.21 (#1763 )
* Misc bug fixes (#1764 )
* Mythril v0.23.22 (#1765 )
* rebase
* rebase
* save changes
* Save changes
* Pop
* Reformat
2 years ago
Nikhil Parasaram
383331356d
Handle pragma parsing using pyparser ( #1737 )
...
* Handle pragma parsing using pyparser
* Change issue count
* Update requirementss
2 years ago
Nikhil Parasaram
030d640bbb
Fixes issue with ext calls ( #1733 )
...
* Fix false positives on constructor
* Fix issues with extcalls
* Remove a log
* Fix an ordering issue
* Fix a bug with balance_
2 years ago
Nikhil Parasaram
29bb08b411
Add support to older solc versions ( #1726 )
2 years ago
Nikhil Parasaram
0fac8e3d6d
Using cache search strategy ( #1714 )
...
* Fix JSON serialisation issue
* Add cache
* Add tests
* Remove a debug statement
2 years ago
Nikhil Parasaram
185f2d6cd2
Support solc-args ( #1698 )
2 years ago
Nikhil Parasaram
eb2c11ef01
Handles issue with low constructor loop bound and new way to deal with solver-timeout ( #1668 )
...
* Add exit code
* Update docs with tutorial
* Fix docs
* Reformat
* Fix the issue with loop-bound and solver-timeout
* Add test changes
* Restrict hexbytes
2 years ago
Nikhil Parasaram
90964e55b0
Add exit code ( #1662 )
...
* Add exit code
* Fix tests
2 years ago
Nikhil Parasaram
485b224598
Fix issue with simplify ( #1660 )
...
* Fix issues with arbitrary jump dest
* Support abi
* Add partial abi support
* Fix test
* Fix test directory
* Fix OOG issue
* Fix issue with simplify
* Fix typo
2 years ago
Nikhil Parasaram
d6e8813100
Add partial abi support ( #1655 )
...
* Fix issues with arbitrary jump dest
* Support abi
* Add partial abi support
* Fix test
* Fix test directory
2 years ago
Nikhil Parasaram
842e3da3a4
Fix issues with arbitrary jump dest ( #1654 )
2 years ago
Nikhil Parasaram
5a184e8225
Add support for locking config file ( #1652 )
...
* Add support for locking config file
* Remove abi decode test
* Fix typo
2 years ago
Nikhil Parasaram
591af8a319
Use latest blake2bpy, Fix version extraction ( #1644 )
...
* Use latest blake2bpy, Fix version extraction
* Fix setup.py
* Handle setup.py
* Handle setup.py
* Handle setup.py
* Fix requirements
* Fix requirements
* Fix requirements
* restrict eth-hash
2 years ago
Nikhil Parasaram
ca0edd6208
Handle CRLF line endings ( #1637 )
...
* Handle CRLF line endings
* Add new line at the end of file
3 years ago
Nikhil Parasaram
949a9820ad
Fix caching for exceptions module ( #1633 )
3 years ago
Nikhil Parasaram
651a17c647
Fix issue with cache during summaries ( #1619 )
...
* Check versions before using integer module
* Use IssueAnnotations
* Fix misc issues with summaries
* Fix cache issue
* Fix safe functions
3 years ago
Nikhil Parasaram
50e1ded4ab
Check versions before using integer module ( #1613 )
3 years ago
Nikhil Parasaram
bb1dd3e794
Support TX constraints and refactor CLI ( #1607 )
...
* Support TX constraints and refactor CLI
* Fix typing
* Add additional typing
* Use dict over accessor
* Fix z3py requirements
* Init storage args
* Init storage args
* Init args in vm tests
3 years ago
Nikhil Parasaram
7d3f9b5842
Beam search ( #1606 )
...
* Init config dir
* Fix solc optimizer
* Add beam search
* Use dict over reference
3 years ago
Nikhil Parasaram
8fbe2e2748
Fix NPM code block issue ( #1602 )
...
* Init config dir
* Fix solc optimizer
* Fix NPM code block issue
* Extend tests
3 years ago
Nikhil Parasaram
c88a5eda57
Fixes optimizer issue ( #1597 )
...
* Init config dir
* Fix solc optimizer
3 years ago
Nikhil Parasaram
0a2996a83e
Support Pragmas ( #1591 )
...
* Support Pragmas
* Fix MarkUpSafe
3 years ago
Nikhil Parasaram
c72ac81de1
Add more precompile tests ( #1576 )
...
* Add tests for natives
* Black updates
* Update black
3 years ago