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

filterx/object-message-value: ensure that an extra NUL character is present #438

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Jan 3, 2025

Macro based values are captured into an allocated buffer in FilterXMessageValue, but there was no extra NUL character added in case repr_len was specified (which is for any log_msg_get_value() resolutions).

This causes valgrind to throw errors when the APPEND_ZERO() macro is used.

…resent

Macro based values are captured into an allocated buffer in
FilterXMessageValue, but there was no extra NUL character added in case
repr_len was specified (which is for any log_msg_get_value() resolutions).

This causes valgrind to throw errors when the APPEND_ZERO() macro is used.

Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi force-pushed the fix-message-value-overflow-for-macro-based-values branch from b310ce9 to f00094d Compare January 3, 2025 16:16
@alltilla alltilla self-requested a review January 6, 2025 08:50
@alltilla alltilla merged commit d43da26 into axoflow:main Jan 6, 2025
22 checks passed
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