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

Remove undesirable usage of static #802

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aws-kevinrickard
Copy link
Member

Issue #, if available:

Description of changes:

Fixes an issue where the buffer is reused on subsequent calls without being re-initialized to zero, causing messages from a previous call to show up in newer call logs.

Not needed for the 2.0.1 release, but can optionally be included.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

[16384] // TODO: Clean up usages of static variables in this
// file, many may be more appropriately non-static to
// prevent issues where the memory is not re-initalized
// to zero when the function is re-called
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If memory needs to be zeroed should be memset.
Though this might be fine as non-static, yeah.

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.

2 participants