Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d689ae61
Commit
d689ae61
authored
Aug 08, 2018
by
soad003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StaticAnalysis: another testcase
parent
c19b9446
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
staticAnalysisIntegration-test.js
...-analyzer/test/analysis/staticAnalysisIntegration-test.js
+1
-1
intDivisionTruncate.sol
...yzer/test/analysis/test-contracts/intDivisionTruncate.sol
+10
-0
No files found.
remix-analyzer/test/analysis/staticAnalysisIntegration-test.js
View file @
d689ae61
...
...
@@ -474,7 +474,7 @@ test('Integration test selfdestruct.js', function (t) {
'selfdestruct.sol'
:
3
,
'deleteDynamicArray.sol'
:
0
,
'blockLevelCompare.sol'
:
0
,
'intDivisionTruncate.sol'
:
2
'intDivisionTruncate.sol'
:
5
}
runModuleOnFiles
(
module
,
t
,
(
file
,
report
)
=>
{
...
...
remix-analyzer/test/analysis/test-contracts/intDivisionTruncate.sol
View file @
d689ae61
...
...
@@ -26,4 +26,13 @@ contract CharityCampaign {
selfdestruct(beneficiary);
return true;
}
// FALSE POSITIVE FOR SELFDESTRUCT TERMINAL
function endAmbiguous() public {
if(msg.sender == 0x0) {
selfdestruct(beneficiary);
} else {
selfdestruct(processor);
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment