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

Fix large_metadata_bad_client_test to avoid C99 string literal length limit. #6567

Merged
merged 2 commits into from
May 13, 2016

Conversation

markdroth
Copy link
Member

Fixes #6551.

PFX_TOO_MUCH_METADATA_FROM_CLIENT_PREFIX_STR;
size_t offset = sizeof(PFX_TOO_MUCH_METADATA_FROM_CLIENT_PREFIX_STR);
for (int i = 0; i < NUM_HEADERS; ++i) {
snprintf(client_payload + offset,
Copy link
Member

Choose a reason for hiding this comment

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

Prefer gpr_asprintf (it's at least supported everywhere)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@dklempner
Copy link
Contributor

LGTM

@dklempner
Copy link
Contributor

"Basic tests" failures are obviously unrelated, so I'll just merge this.

@dklempner dklempner merged commit 1ba1bba into grpc:master May 13, 2016
@markdroth markdroth deleted the large_metadata_test_fix branch June 15, 2016 15:50
@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants