Skip to content

Fix for crash reported on iOS 17 - #309

Merged
aj-dt merged 2 commits into
datatheorem:masterfrom
darsang:iOS17_Crash_Fix
Aug 10, 2023
Merged

aj-dt merged 2 commits into
datatheorem:masterfrom
darsang:iOS17_Crash_Fix

Conversation

@darsang

@darsang darsang commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

In iOS 17 beta, the following crash was reported, this PR contains fix for the crash

Thread 13 name:   Dispatch queue: NSOperationQueue 0x1063289a0 (QOS: UNSPECIFIED)
Thread 13 Crashed:
0   ???                                         0x0 ???
1   privacy_Example                     0x100911bac verifyPublicKeyPin + 1168
2   privacy_Example                     0x100919250 -[TSKPinningValidator evaluateTrust:forHostname:] + 924
3   privacy_Example                     0x100919808 -[TSKPinningValidator handleChallenge:completionHandler:] + 348

@darsang

darsang commented Aug 2, 2023 •

Copy link
Copy Markdown
Contributor Author

ping @aj-dt, @nabla-c0d3 , @ericcastro

@aj-dt

aj-dt commented Aug 9, 2023

Copy link
Copy Markdown
Contributor

@darsang thank you for the submission. For baclwards compatibility, may I ask you to update the PR to make it conditional on the first path failing? E.g.

    void *_Security = dlopen("Security.framework/Security", RTLD_NOW);
    if (_Security == NULL) {
        _Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
    }

Thank you

@darsang

darsang commented Aug 9, 2023 •

Copy link
Copy Markdown
Contributor Author

@darsang thank you for the submission. For baclwards compatibility, may I ask you to update the PR to make it conditional on the first path failing? E.g.

    void *_Security = dlopen("Security.framework/Security", RTLD_NOW);
    if (_Security == NULL) {
        _Security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW);
    }

Thank you

@aj-dt done

@aj-dt
aj-dt merged commit 11da1c7 into datatheorem:master Aug 10, 2023
@darsang

darsang commented Aug 16, 2023

Copy link
Copy Markdown
Contributor Author

@aj-dt When can I expect a patch release for this?

@aj-dt

aj-dt commented Aug 24, 2023

Copy link
Copy Markdown
Contributor

Hi @darsang
3.0.3 contains your original fix: https://github.com/datatheorem/TrustKit/releases/tag/3.0.3
Thanks!

@darsang

darsang commented Aug 24, 2023

Copy link
Copy Markdown
Contributor Author

Hi @darsang
3.0.3 contains your original fix: https://github.com/datatheorem/TrustKit/releases/tag/3.0.3
Thanks!

Thanks

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