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

Stop ErrorLogger from from overflowing its internal buffer #106

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

Conversation

HenningJ
Copy link

Small bugfix.
On Windows (at least), the ErrorLogger didn't correctly check if its internal buffer was full, possible causing an overflow+crash.
That occurred, for example, on initialization, when the drivers directory contained a few additional DLLs which weren't OpenNI drivers. For each non-driver-DLL, an error message is stored in the ErrorLogger, without ever clearing it, quickly filling up the buffer.

This fixes that. When the buffer is full, no more messages are stored in the ErrorLogger (like it was supposed to work).

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