Skip to content

Commit

Permalink
lint and text update
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Mar 29, 2024
1 parent 1af07d1 commit 448d77f
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 22 deletions.
12 changes: 7 additions & 5 deletions scripts/update_buggy_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ def organize_data(json_data):


if __name__ == "__main__":
url = "https://raw.githubusercontent.com/ethereum/solidity/develop/docs/bugs_by_version.json"
json_data = retrieve_json(url)
version_bugs = organize_data(json_data)
bug_list_url = (
"https://raw.githubusercontent.com/ethereum/solidity/develop/docs/bugs_by_version.json"
)
bug_data = retrieve_json(bug_list_url)
bugs_by_version = organize_data(bug_data)

with open(Path.cwd() / Path("slither/utils/buggy_versions.py"), "w") as file:
file.write(f"bugs_by_version = {version_bugs}")
with open(Path.cwd() / Path("slither/utils/buggy_versions.py"), "w", encoding="utf-8") as file:
file.write(f"bugs_by_version = {bugs_by_version}")
2 changes: 1 addition & 1 deletion slither/detectors/attributes/incorrect_solc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class IncorrectSolc(AbstractDetector):
LESS_THAN_TXT = "uses lesser than"

BUGGY_VERSION_TXT = (
"contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)"
"contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)"
)

# Indicates the allowed versions. Must be formatted in increasing order.
Expand Down
1 change: 1 addition & 0 deletions slither/utils/buggy_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,7 @@
"0.8.22": ["VerbatimInvalidDeduplication"],
"0.8.23": [],
"0.8.24": [],
"0.8.25": [],
"0.8.3": [
"FullInlinerNonExpressionSplitArgumentEvaluationOrder",
"MissingSideEffectsOnSelectorAccess",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Version constraint 0.4.25 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
solc-0.4.25 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

Version constraint 0.4.25 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- DirtyBytesArrayToStorage
- ABIDecodeTwoDimensionalArrayMemory
- KeccakCaching
Expand All @@ -17,5 +19,3 @@ Version constraint 0.4.25 contain known severe issues (https://solidity.readthed
It is used by:
- tests/e2e/detectors/test_data/solc-version/0.4.25/static.sol#1

solc-0.4.25 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint 0.5.14 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint 0.5.14 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- AbiReencodingHeadOverflowWithStaticArrayCleanup
- DirtyBytesArrayToStorage
- NestedCalldataArrayAbiReencodingSizeValidation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint ^0.5.15 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint ^0.5.15 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- AbiReencodingHeadOverflowWithStaticArrayCleanup
- DirtyBytesArrayToStorage
- NestedCalldataArrayAbiReencodingSizeValidation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint >=0.5.0<0.6.0 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint >=0.5.0<0.6.0 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- DirtyBytesArrayToStorage
- ABIDecodeTwoDimensionalArrayMemory
- KeccakCaching
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint 0.5.16 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint 0.5.16 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- AbiReencodingHeadOverflowWithStaticArrayCleanup
- DirtyBytesArrayToStorage
- NestedCalldataArrayAbiReencodingSizeValidation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
solc-0.6.10 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

Version constraint 0.6.10 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint 0.6.10 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint ^0.6.10 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint ^0.6.10 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint >=0.6.0<0.7.0 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint >=0.6.0<0.7.0 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- AbiReencodingHeadOverflowWithStaticArrayCleanup
- DirtyBytesArrayToStorage
- NestedCalldataArrayAbiReencodingSizeValidation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint 0.6.11 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint 0.6.11 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version constraint 0.7.4 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint 0.7.4 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
solc-0.7.6 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

Version constraint ^0.7.4 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
Version constraint ^0.7.4 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Version constraint 0.7.6 contain known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
solc-0.7.6 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

Version constraint 0.7.6 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
- FullInlinerNonExpressionSplitArgumentEvaluationOrder
- MissingSideEffectsOnSelectorAccess
- AbiReencodingHeadOverflowWithStaticArrayCleanup
Expand All @@ -11,5 +13,3 @@ Version constraint 0.7.6 contain known severe issues (https://solidity.readthedo
It is used by:
- tests/e2e/detectors/test_data/solc-version/0.7.6/static.sol#1

solc-0.7.6 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible.

0 comments on commit 448d77f

Please sign in to comment.