You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
This might be the False Negative counterpart to the False Positive reported in #173.
Please consider the following code
publicclassMainActivityextendsAppCompatActivity{
publicvoidonCreate(BundlesavedInstanceState){
MyClassmyInstance = newMyClass();
StringmyString = myInstance.myField;
myInstance.myField = "";
sink(myString); // NOT reported as issue by Mariana Trench
}
publicstaticStringsource(){ // Defined as source in MT configreturn"Secret";
}
publicvoidsink(Stringparam){} // Defined as sink in MT config
}
classMyClass{
StringmyField = MainActivity.source();
}
As annotated in the code, Mariana Trench doesn't detect any issues, but actually the sink in MainActivity.onCreate should be reported.
I'm using mariana-trench Version: 1.0.6.
The text was updated successfully, but these errors were encountered:
The problem here is that we don't handle static initializers (i.e String myField = MainActivity.source()) correctly. I believe we have plans to tackle this bug soon (maybe within the next 6 months).
Bug
Bug description
This might be the False Negative counterpart to the False Positive reported in #173.
Please consider the following code
As annotated in the code, Mariana Trench doesn't detect any issues, but actually the sink in
MainActivity.onCreate
should be reported.I'm using mariana-trench Version: 1.0.6.
The text was updated successfully, but these errors were encountered: