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(auth): Crash with EXC_BAD_ACCESS #3657

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Conversation

dnys1
Copy link
Contributor

@dnys1 dnys1 commented Aug 31, 2023

  • Adds checks to results of IOServiceGetMatchingService and IORegistryEntryCreateCFProperty FFI calls to prevent trying to access bad data in cast or free calls.
  • Removes accesses to NSScreen due to potential ffigen bug

Adds checks to results of `IOServiceGetMatchingService` and `IORegistryEntryCreateCFProperty` FFI calls to prevent trying to access bad data in cast or free calls.
@dnys1 dnys1 force-pushed the fix/auth/bad-access-crash branch from 3088b11 to 8adf598 Compare August 31, 2023 20:18
@dnys1 dnys1 marked this pull request as ready for review August 31, 2023 20:19
@dnys1 dnys1 requested a review from a team as a code owner August 31, 2023 20:19
@dnys1 dnys1 merged commit 8770e1e into main Sep 1, 2023
@dnys1 dnys1 deleted the fix/auth/bad-access-crash branch September 1, 2023 19:24
dnys1 added a commit that referenced this pull request Sep 11, 2023
fix(auth): Crash with `EXC_BAD_ACCESS`

Adds checks to results of `IOServiceGetMatchingService` and `IORegistryEntryCreateCFProperty` FFI calls to prevent trying to access bad data in cast or free calls.
dnys1 pushed a commit that referenced this pull request Sep 11, 2023
### Fixes
- fix(auth): Crash with EXC_BAD_ACCESS ([#3657](#3657))
- fix(auth): Custom auth with device tracking, no SRP ([#3652](#3652))
- fix(auth): Uncaught Hosted UI cancellation ([#3686](#3686))
- fix: removed trailing slash at the end of uri ([#3626](#3626))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
dnys1 added a commit that referenced this pull request Sep 11, 2023
fix(auth): Crash with `EXC_BAD_ACCESS`

Adds checks to results of `IOServiceGetMatchingService` and `IORegistryEntryCreateCFProperty` FFI calls to prevent trying to access bad data in cast or free calls.
dnys1 pushed a commit that referenced this pull request Sep 11, 2023
### Fixes
- fix(auth): Crash with EXC_BAD_ACCESS ([#3657](#3657))
- fix(auth): Custom auth with device tracking, no SRP ([#3652](#3652))
- fix(auth): Uncaught Hosted UI cancellation ([#3686](#3686))
- fix: removed trailing slash at the end of uri ([#3626](#3626))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
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.

3 participants