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

suspect check in ringbuffer.c #17

Open
noasic opened this issue Jul 21, 2016 · 0 comments
Open

suspect check in ringbuffer.c #17

noasic opened this issue Jul 21, 2016 · 0 comments

Comments

@noasic
Copy link

noasic commented Jul 21, 2016

RingBuffer_write() checks for RingBuffer_available_space() but reports RingBuffer_available_data(). Also, the request/available order does not seem to be correct:

    check(length <= RingBuffer_available_space(buffer),
            "Not enough space: %d request, %d available",
            RingBuffer_available_data(buffer), length);
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

No branches or pull requests

1 participant