Skip to content

Scanning some QR codes will crash the application #275

@webwarrior-ws

Description

@webwarrior-ws

Steps to reproduce:

  1. Open GWallet Android app
  2. Navigate to Send page
  3. Click "scan" button
  4. Scan QR code that decodes to text "litecoin:ygfdty" (starts with "litecoin:" but has incorrect LTC address)

Current results:
Application crashes

Expected results:
An error is shown, but app keeps working.

The reason is that ParseAddressOrUrl function will raise an exception in that case.

failwith <| SPrintF1 "Address started with 'bitcoin:' but an address could not be extracted: %s" addressOrUrl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions