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 undefined memcpy in AudioStreamWAV::get_data() #97790

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

Conversation

jman168
Copy link

@jman168 jman168 commented Oct 3, 2024

Fixes #97720. In the get_data() function of the AudioStreamWAV, memcpy is called on an undefined pointer due to assuming there is data after some padding bytes (which isn't true for an empty buffer). This was fixed by checking if there is actually any data to copy instead of checking if the buffer (including padding) is not empty (which should never be true).

@jman168 jman168 requested a review from a team as a code owner October 3, 2024 21:56
@Chaosus Chaosus added this to the 4.4 milestone Oct 4, 2024
@adamscott adamscott self-assigned this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The AudioStreamWav unit test seg faults
3 participants