Closed dohyeondk closed 2 months ago
We found this issue while integrating Sentry SDK into our iOS app. We are receiving NSError
from the other parts, and sometimes we cannot guarantee the validity of userInfo
always.
Thank you @dohyeondk and @jmkrein for the message and the PR.
We will review the the linked PR shorly.
Platform
iOS
Environment
Production
Installed
Swift Package Manager
Version
8.30.0
Xcode Version
15.4
Did it work on previous versions?
No response
Steps to Reproduce
NSError
with auserInfo
dictionary containing a bad value for the key,NSUnderlyingErrorKey
. E.g.userInfo: [NSUnderlyingErrorKey: "garbage"]
For example,
Expected Result
Sentry sends the error information successfully.
Actual Result
The app crashes.
Are you willing to submit a PR?
Yes