Skip to content

Fix crash for negative uvcUnit integers (Issue #42)#57

Merged
itaybre merged 1 commit into
itaybre:masterfrom
jazzychad:jc-negative-integer-crash-fix
Apr 29, 2022
Merged

Fix crash for negative uvcUnit integers (Issue #42)#57
itaybre merged 1 commit into
itaybre:masterfrom
jazzychad:jc-negative-integer-crash-fix

Conversation

@jazzychad

Copy link
Copy Markdown
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.

@itaybre itaybre left a comment

Copy link
Copy Markdown
Owner

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