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
BUG: Buffer overrun in MessageQueue_AllocMessage #108
Comments
no replay for almost a month... so this project is basically dead? |
Dude, this is the world of open-source project. |
@shooshx PRs are more than welcome. |
@dwilliamson I've came across this issue when I copied your code as a starting point for a lockless queue for my own purpose. In my code, solving this required some significant changes to the structures involved and the way the queue works. I'm not sure I know enough about the intricacies of your code base yet to do it properly. |
The internal message queueing mechanism doesn't seem to handle correctly the case where a message is allocated across the ending of the cyclic buffer.
This bug has the potential to crash the process with a segmentation fault.
code to reproduces the problem:
prints:
The text was updated successfully, but these errors were encountered: