Closed draftyfrog closed 2 months ago
Hi @draftyfrog,
My guess is that the compiler probably removed the if (false)
branch entirely. Mariana Trench analyzes the APK directly, after the compiler ran, so we cannot see things that have been removed by the compiler.
Hi @arthaud, thanks for getting back! You're right, I reverse-engineered my apk and the compiler removed the second if-branch. My mistake - thank you!
Bug
Bug description Consider the following code:
where the return value of
source()
is specified as a source andsink1()
andsink2()
are both defined as sinks. As can be seen in the code, both sinks are unreachable, but mariana-trench returnssink1()
as found issue (but doesn't returnsink2()
).