Comments (5)
It seems like a bug in the compiler which is caused by the new line character in line 737 of 0x7_solidity.txt
"\x19Ethereum Signed Message:\n32"
I will try to fix it as soon as possible. In the meantime, you can delete the \n
character or replace the string entirely.
Edit: I pushed a fix to the develop branch
from securify2.
I have cloned it and built the docker container. To use the compiler release 0.5.17, how should I do it?
from securify2.
Hi, I tries to use the master branch to analyze some contract... and I receive some errors. One of them is analyzying the 0x36.sol.txt file and I received 0x36.txt results. Do you think that I have to reinstall something or do you already know the reason? Thanks so much
0x36.sol.txt
0x36.txt
from securify2.
This was caused by the usage of staticcall. I pushed a fix to the develop branch.
from securify2.
Hi, I tried to use Securify with some other files receving errors processing attached files (0xf41.sol, 0xdb.sol,0x27.sol)
0x41.txt
0x27.txt
0xf41.txt
I am using solc 0.5.15, python 3.7.
I do the following steps:
To use the develop branch, to run the new one:
$ git clone -b develop https://github.com/eth-sri/securify2.git /home/mirkostad/Programmi/Tools/securify/
I follow thw insatructions
$ virtualenv --python=/usr/bin/python3.7 venv
$ source venv/bin/activate
To go in the home directory of project
$ cd /home/mirkostad/Programmi/Tools/securify/
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:pwd
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ pip install -e .
Then I launched:
$ securify /home/mirkostad/Programmi/smart-contracts/Mutations/Original/0xf41.sol
receiving...
File "/home/mirkostad/Programmi/Tools/securify/venv/bin/securify", line 33, in
sys.exit(load_entry_point('securify', 'console_scripts', 'securify')())
File "/home/mirkostad/Programmi/Tools/securify/securify/main.py", line 285, in main
matches.extend(pattern.find_matches())
File "/home/mirkostad/Programmi/Tools/securify/securify/analyses/patterns/static/static_analysis_patterns.py", line 73, in find_matches
static = analysis_context.static_analysis
File "/home/mirkostad/Programmi/Tools/securify/securify/analyses/analysis.py", line 89, in static_analysis
self._static = self.config.static_analysis(self)
File "/home/mirkostad/Programmi/Tools/securify/securify/main.py", line 263, in
static_analysis=lambda t: static_analysis.analyze_cfg(t.cfg, **souffle_config),
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/static_analysis.py", line 124, in analyze_cfg
souffle_kwargs=kw_args_souffle)
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/souffle/souffle.py", line 62, in run_souffle
**(souffle_kwargs or {}))
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/souffle/wrapper.py", line 141, in souffle_wrapper
stderr_data=codecs.decode(stderrdata),
securify.staticanalysis.souffle.exceptions.SouffleError: Error during souffle execution:
Error loading data: Cannot open fact file builtinFunction.facts
-------->
-------->
I still have errors with 0x4.sol ... following the output console:
Traceback (most recent call last):
File "/home/mirkostad/Programmi/Tools/securify/venv/bin/securify", line 33, in
sys.exit(load_entry_point('securify', 'console_scripts', 'securify')())
File "/home/mirkostad/Programmi/Tools/securify/securify/main.py", line 285, in main
matches.extend(pattern.find_matches())
File "/home/mirkostad/Programmi/Tools/securify/securify/analyses/patterns/static/static_analysis_patterns.py", line 73, in find_matches
static = analysis_context.static_analysis
File "/home/mirkostad/Programmi/Tools/securify/securify/analyses/analysis.py", line 89, in static_analysis
self._static = self.config.static_analysis(self)
File "/home/mirkostad/Programmi/Tools/securify/securify/main.py", line 263, in
static_analysis=lambda t: static_analysis.analyze_cfg(t.cfg, **souffle_config),
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/static_analysis.py", line 124, in analyze_cfg
souffle_kwargs=kw_args_souffle)
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/souffle/souffle.py", line 62, in run_souffle
**(souffle_kwargs or {}))
File "/home/mirkostad/Programmi/Tools/securify/securify/staticanalysis/souffle/wrapper.py", line 141, in souffle_wrapper
stderr_data=codecs.decode(stderrdata),
securify.staticanalysis.souffle.exceptions.SouffleError: Error during souffle execution:
Error loading data: Cannot open fact file arrayPush.facts
Error loading data: Cannot open fact file builtinFunction.facts
from securify2.
Related Issues (20)
- Does the docker version of securify2 only support the analysis of contracts developed with solidity 0.5.12 HOT 3
- securify.staticanalysis.souffle.exceptions.SouffleError: Error during souffle execution: HOT 3
- securify.staticanalysis.souffle.exceptions.SouffleError: Error during souffle execution HOT 3
- The range of pragma versions it currently supports? HOT 3
- [Docker] securify.staticanalysis.souffle.exceptions.SouffleError: Error during souffle execution
- I am running "docker build -t securify" command on windows. But I am getting error. HOT 2
- I can't use Securify. ERROR: No such file or directory: 'souffle'. I have installed souffle and all other dependencies. Can anyone help?
- ErrorDefinition not found in grammer
- When does it support 0.8 0 version?
- When I use security --list the following error occurred HOT 1
- Error on check sol with docker
- error that tells "File not found"
- Error during testContract.sol analyzing
- Got KeyError: StateVariableLoad when analyzing contracts
- Securify Grammar Error HOT 1
- Need reformations and cleaning of the code
- Error: Atom's argument type is not a subtype of its declared type HOT 3
- Use Local Memory Type Variable Instead of Global Storage Type Variable in Event to Save Gas
- Question: Is the tool unable to analyze bytecode?
- is this project dead? only support solidity <= 6.0? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from securify2.