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

[lb] Fix wrong memory allocation size from strlen for string copying #36611

Closed
wants to merge 1 commit into from

Conversation

apach301
Copy link

Fixes #36610

@apach301 apach301 requested a review from markdroth as a code owner May 14, 2024 14:22
Copy link

linux-foundation-easycla bot commented May 14, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@markdroth markdroth added kokoro:run release notes: no Indicates if PR should not be in release notes labels May 14, 2024
@eugeneo eugeneo changed the title Fix wrong memory allocation size from strlen for string copying [lb] Fix wrong memory allocation size from strlen for string copying May 14, 2024
@markdroth
Copy link
Member

Looks like the existing code was actually correct. We don't want to include the null byte in the string in this case, because we're encoding the size into the protobuf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong memory allocation size for string copy at load_balancer_api.cc
5 participants