mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
handle intent exceptions to prevent denial of service (#1458)
This commit is contained in:
parent
d8e68a266c
commit
172a857604
1 changed files with 29 additions and 22 deletions
|
@ -155,6 +155,8 @@ namespace Bit.Droid
|
|||
protected override void OnNewIntent(Intent intent)
|
||||
{
|
||||
base.OnNewIntent(intent);
|
||||
try
|
||||
{
|
||||
if (intent.GetBooleanExtra("generatorTile", false))
|
||||
{
|
||||
_messagingService.Send("popAllAndGoToTabGenerator");
|
||||
|
@ -184,6 +186,11 @@ namespace Bit.Droid
|
|||
ParseYubiKey(intent.DataString);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine(">>> {0}: {1}", e.GetType(), e.StackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
public async override void OnRequestPermissionsResult(int requestCode, string[] permissions,
|
||||
[GeneratedEnum] Permission[] grantResults)
|
||||
|
|
Loading…
Reference in a new issue