Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#248 fix crash on pair #365

Merged
merged 4 commits into from
Jul 26, 2022
Merged

#248 fix crash on pair #365

merged 4 commits into from
Jul 26, 2022

Conversation

llbartekll
Copy link
Contributor

@llbartekll llbartekll requested a review from flypaper0 July 26, 2022 07:53
@llbartekll llbartekll self-assigned this Jul 26, 2022
let symKey = try! SymmetricKey(hex: uri.symKey) // FIXME: Malformed QR code from external source can crash the SDK
try! kms.setSymmetricKey(symKey, for: pairing.topic)
let symKey = try SymmetricKey(hex: uri.symKey)
try kms.setSymmetricKey(symKey, for: pairing.topic)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still need key replacement logic, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct,
it's this one:
#360

@llbartekll llbartekll merged commit 590318e into main Jul 26, 2022
@llbartekll llbartekll deleted the #248-fix-crash-on-pair branch July 26, 2022 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix potential crash on malformed QR code scan
3 participants