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

Improve failure handling when multithreading #681

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Conversation

ktmf01
Copy link
Collaborator

@ktmf01 ktmf01 commented Mar 27, 2024

In case of encoder failure within a thread, asserts were false and a locked mutex would be destroyed. This fix leaves in a race condition: encoder->protected_->state is written without a lock.

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62650

In case of encoder failure within a thread, asserts where false
and a locked mutex would be destroyed. This fix leaves in a race
condition: encoder->protected_->state is written without a lock.

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62650
@ktmf01 ktmf01 merged commit 67a65b7 into xiph:master Mar 27, 2024
14 checks passed
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