Commit Graph

954 Commits (26609db2fd7b6ebe7c8430852ce53dd2bad447f9)
 

Author SHA1 Message Date
Josselin 02661eb0ff Improve reentrancy heuristic: ignore call to this. if the destination is reentrancy-safe (close #127) 6 years ago
Josselin 0ad077755e Unused variable: Check for array length expressions (fix #167) 6 years ago
Josselin 3dbe807aad Improve inheritance graph printed message 6 years ago
Josselin 4154f79f75 Merge branch 'dev' of github.com:trailofbits/slither into dev 6 years ago
Josselin 5f0cae387f Improve code readability of major modules: 6 years ago
David Pokora 03ab0cdeb2
Updated inheritances_graph printer examples. 6 years ago
David Pokora ae90ff1343
Darker gray on indirect shadowing information in inheritance-graph 6 years ago
Josselin d22e53fdfe Improve reentrancy heuristic: Only skip view/pure/variable calls if Solidity 0.5 is used 6 years ago
Josselin ea599c4efd Truffle: fix minor bug in truffle cmd declaration 6 years ago
David Pokora e8e112c89b
Fixed an issue where 'type' node would not exist on old solc in legacy-ast. 6 years ago
Josselin 367ba02562 Add WIKI link to printers (close 164) 6 years ago
Josselin 15a9215a0b Add WIKI to Detector mandatory fields 6 years ago
Josselin 78a0290c4a Merge branch 'master' into dev 6 years ago
Josselin 7efc087c74 Improve printer documentation 6 years ago
Josselin a1e51e66a3 Merge branch 'dev' of github.com:trailofbits/slither into dev 6 years ago
Josselin 1189014530 Merge branch 'dev-legacy-forloop' into dev 6 years ago
Josselin b539a5f199 Add slithir.operation.unroll as a general util (slither.utils.utils). Use unroll on fix_phi operations 6 years ago
Feist Josselin e4bb2af510
Merge pull request #169 from trailofbits/dev-legacy-forloop 6 years ago
Feist Josselin e1d8d5045e
Merge pull request #166 from trailofbits/dev-inheritance 6 years ago
David Pokora 43fa54dde3
Fix an issue where legacy-ast would fail to detect missing loop components, causing the iterator to be parsed as the initializer, and the loop block to be parsed as the iterator (causing failure). 6 years ago
Josselin bf249d9724 Fix incorrect indent 6 years ago
Feist Josselin 60f3d14889
Update inheritance_graph.py 6 years ago
David Pokora d1fe98c3f0
Changed inheritance_analysis to provide global functions instead of wrapping them in an abstract class with static functions. 6 years ago
Josselin f8897c3f8f Clean import detectors/printer in slither/__main__.py 6 years ago
David Pokora 77412d22c7
Fixed issue with contract detection in inheritance-graph 6 years ago
David Pokora f0f210cd2c
* Changed inheritance-graph to only highlight direct shadowing, and only provide additional information for indirect conflicts. 6 years ago
Josselin b7f50f852a Improve data_dependency unit tests (add PropagateThroughArguments) 6 years ago
Josselin 6086e44885 Add data depenency tests to travis 6 years ago
Josselin 18ad15a577 Fix: 6 years ago
Josselin 2d37a03a91 New APIs: 6 years ago
Josselin a3d951fbc2 API change: 6 years ago
Josselin 8ee0099165 Improve read info (1cdc34ec77) 6 years ago
David Pokora 65a82b0caa
Cleaned up inheritance-graph: kept shadowing lookups, removed shadowed. Adjusted tooltip. 6 years ago
David Pokora 2d57be0fff
* Added tooltips for function/variable shadowing 6 years ago
David Pokora 05cab3548c
inheritance-graph: Give digraph a blank name, otherwise it will be interpretted as "%0" and will be used as the title/tooltip for all blank space. 6 years ago
David Pokora fed1e95a3a
Changed inheritance-graph shadowing state variable color to red (as it's most likely an error). 6 years ago
David Pokora 3112c3b8c5
Updated test for less bloat + better readability in graph. 6 years ago
David Pokora d1b0c1d5b0
* Changed inheritance-graph to only show variables explicitly defined in the parent contract, instead of inherited. 6 years ago
David Pokora 8335faae8b
* Numbered edges in inheritance-graph to denote order of inheritance. 6 years ago
David Pokora 387d5efea5
* Added state variable shadowing detection to inheritance_analysis. 6 years ago
David Pokora 019d3da211
Updates to inheritance_analysis.py's detect_function_shadowing to not include c3 collisions which end up neutralized by later inheriting contracts in a multi-inheritance scheme. 6 years ago
David Pokora 1f81f820a8
inheritance-graph: Only highlight shadowed functions (not shadowing). 6 years ago
David Pokora f45e138ae8
Remove internal detectors, moved internal inheritance detector logic into slither.utils.inheritance_analysis. 6 years ago
Josselin 29862ea541 Improve support for break with presence of nested loops (fix 141) 6 years ago
Josselin 1073a04e90 Array length: store the result of the constant folding in a separate variable to keep origin expression 6 years ago
Josselin 6c2923f254 Add constant folding visitor (fix #144) 6 years ago
Josselin 21579edef4 Merge branch 'dev' of github.com:trailofbits/slither into dev 6 years ago
Josselin b7e3b9e8af Merge branch 'master' into dev 6 years ago
David Pokora 48bb498b14
* Added c3-linearization-internal detector to help inheritance-graph highlight collisions via C3 linearization. 6 years ago
David Pokora fa3971b6a5
Fix shadowing-function detector (and add modifiers to the results). 6 years ago