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

Fix crashes during BLE and Wifi provisioning #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Danappelxx
Copy link

As @saamerm noted in #35 the iOS app crashes when unwrapping nil alert actions. I believe that this is due to allocating directly into a weak reference, leading to an initial reference count of zero and immediate deallocation. This PR addresses that.

Copy link

@saamerm saamerm left a comment

Choose a reason for hiding this comment

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

Tested it, works well!

@saamerm
Copy link

saamerm commented Aug 14, 2018

What made you wanna fix it?

@Danappelxx
Copy link
Author

I ran into the same issue when provisioning my duo and had to resort to the serial terminal method which was a pain. After I looked at your comment I realized it was a simple fix so I went ahead and submitted it :)

@Danappelxx
Copy link
Author

Wow, BLE provisioning has the same exact bug... can't believe this hasn't been fixed yet! I'll make another commit.

@Danappelxx Danappelxx changed the title Fix allocation to weak reference for alert actions Fix crashes during BLE and Wifi provisioning Aug 14, 2018
yoiang added a commit to Adorkable-forkable/Duo that referenced this pull request Sep 13, 2019
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.

2 participants