mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Add the Intent parameter of onActivityResult as a source
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.example.app;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class Safe2 extends Activity {
|
||||
|
||||
void sink(Object o) {}
|
||||
|
||||
public void onCreate(Bundle saved) {
|
||||
// activityForResult not called
|
||||
}
|
||||
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
sink(requestCode); // safe
|
||||
sink(resultCode); // safe
|
||||
sink(data); // Safe
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user