Comments (3)
Even I'm facing the same problem. Where you able to find a solution for this?
from securify2.
I suppose I'll have to punt on this project being useless in the present state, but in case it helps someone:
Here's an incomplete solution that seems to solve the first 4 of 5 errors above.
My changes were to versions of ubuntu, SOLC, souffle, python, and I added the --legacy
argument for souffle (documented here). Here's the updated Dockerfile.txt (you'll need to remove the .txt extension).
However, I still get the following error:
Error: Ambiguous record in trusted-variable.dl:29:46
1 errors generated, evaluation aborted
The command '/bin/sh -c cd /sec/securify/staticanalysis/souffle_analysis && souffle --dl-program=../dl-program --fact-dir=/sec/securify/staticanalysis/facts_in --output-dir=/sec/securify/staticanalysis/facts_out -L../libfunctors -w analysis.dl --legacy' returned a non-zero code: 1
We can see the error message in the souffle code here and below but I don't see the next step to debug this.
void TypeCheckerImpl::visitRecordInit(const RecordInit& rec) {
TypeSet types = typeAnalysis.getTypes(&rec);
if (!isOfKind(types, TypeAttribute::Record) || types.size() != 1) {
report.addError("Ambiguous record", rec.getSrcLoc());
return;
}
// At this point we know that there is exactly one type in set, so we can take it.
auto& recordType = *as<analysis::RecordType>(*types.begin());
if (recordType.getFields().size() != rec.getArguments().size()) {
report.addError("Wrong number of arguments given to record", rec.getSrcLoc());
return;
}
}
from securify2.
Hello, has anyone solved this problem? I am trying to learn about securify2 for my undergraduate graduation project, but it may be beyond my current ability to solve.
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
- 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.