Skip to content

Remove force unwraps on XPC error set/get#1958

Open
katiewasnothere wants to merge 1 commit into
apple:mainfrom
katiewasnothere:xpc_message_error_crash
Open

Remove force unwraps on XPC error set/get#1958
katiewasnothere wants to merge 1 commit into
apple:mainfrom
katiewasnothere:xpc_message_error_crash

Conversation

@katiewasnothere

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix

Motivation and Context

This PR removes two force unwraps when encoding/decoding ContainerXPCError. This guards against unintentional crashes if an error is malformed.

Testing

  • Tested locally

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 23.38%
Integration 66.54%
Combined 75.48%

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.

1 participant