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

Security Fix: Add explicit bounds check for numCoefficients in AudioFile library #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yannaingtun
Copy link

Description
This PR fixes a security vulnerability in the AudioFile library that was cloned from libaudiofile but did not receive the security patch applied in the original repository. The original issue was reported and fixed under antlarr/audiofile@c48e4c6. This PR applies the same patch as the one in the original repository to eliminate the vulnerability.
References
antlarr/audiofile@c48e4c6
Similar to CVE-2018-13440

When building with NDEBUG, asserts are eliminated, which could
lead to buffer overflow via out-of-bounds access to m_msadpcmCoefficients.
This adds explicit bounds checks that remain even when assertions are disabled.

Similar to the fix for CVE-2018-13440 in the original AudioFile library.
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