mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Improve test case
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import android.os.Bundle;
|
||||
import android.os.ResultReceiver;
|
||||
import android.content.Intent;
|
||||
|
||||
class SensitiveResultReceiver {
|
||||
<T> T source() { return null; }
|
||||
|
||||
void test1(String password) {
|
||||
ResultReceiver rec = source();
|
||||
Intent intent = source();
|
||||
ResultReceiver rec = intent.getParcelableExtra("hi");
|
||||
Bundle b = new Bundle();
|
||||
b.putCharSequence("pass", password);
|
||||
rec.send(0, b); // $hasSensitiveResultReceiver
|
||||
|
||||
Reference in New Issue
Block a user