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 crash for negative uvcUnit integers (Issue #42) #57

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

jazzychad
Copy link
Contributor

Adds two guard statements in relevant methods in UVCControl.swift so
that casting a negative uvcUnit Int to UInt16 no longer crashes the
app.

Adds two guard statements in relevant methods in UVCControl.swift so
that casting a negative `uvcUnit` Int to UInt16 no longer crashes the
app.
Copy link
Owner

@Itaybre Itaybre left a comment

Choose a reason for hiding this comment

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

Thanks for finding the issue

@Itaybre Itaybre merged commit 021ec45 into Itaybre:master Apr 29, 2022
@Itaybre Itaybre added this to the 1.4.0 milestone May 5, 2022
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