mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
23 lines
520 B
Java
23 lines
520 B
Java
package com.example.myapp;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
public class IntentSourcesReceiver extends BroadcastReceiver {
|
|
|
|
private static void sink(Object o) {}
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
{
|
|
String trouble = intent.getStringExtra("data");
|
|
sink(trouble); // $ hasRemoteTaintFlow
|
|
}
|
|
{
|
|
String trouble = intent.getExtras().getString("data");
|
|
sink(trouble); // $ hasRemoteTaintFlow
|
|
}
|
|
}
|
|
}
|