mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Refactor to use FlowState
Remove the auxiliary DataFlow configuration
This commit is contained in:
@@ -98,6 +98,12 @@ public class ImplicitPendingIntentsTest {
|
||||
ctx.startActivity(fwdIntent); // $hasImplicitPendingIntent
|
||||
}
|
||||
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
// Testing the need of going through a PendingIntent creation (flow state)
|
||||
ctx.startActivity(intent); // Safe
|
||||
}
|
||||
|
||||
{
|
||||
Intent safeIntent = new Intent(ctx, Activity.class); // Sanitizer
|
||||
PendingIntent pi = PendingIntent.getActivity(ctx, 0, safeIntent, 0);
|
||||
|
||||
Reference in New Issue
Block a user