Skip to content

OpenAL: don't overflow an array on alGetSourcei(AL_BUFFER). #5612

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

Closed
wants to merge 1 commit into from
Closed

Conversation

icculus
Copy link
Contributor

@icculus icculus commented Sep 28, 2017

This happens if you have a source with a completely processed buffer queue;
the query will dereference index src.buffersPlayed, which is equal to the
src.queue.length.

This happens if you have a source with a completely processed buffer queue;
the query will dereference index src.buffersPlayed, which is equal to the
src.queue.length.
@juj juj added the OpenAL label Sep 29, 2017
@juj
Copy link
Collaborator

juj commented Sep 29, 2017

A large set of changes just landed to OpenAL (#5367). Can you check if this is still affecting after that PR and if this is needed on top of that? Or did #5367 resolve this issue? If not, any chance you'd be able to add a test to check this corner case?

@icculus
Copy link
Contributor Author

icculus commented Sep 30, 2017

It looks like #5367 has a different (but more correct) behavior that eliminates this bug, so I think we're good here; disregard my patch!

@juj
Copy link
Collaborator

juj commented Oct 2, 2017

Perfect, let's close this one then as resolved.

@juj juj closed this Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants