aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-12-14 11:28:52 -0800
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-12-14 11:28:52 -0800
commitf35f9257bf145ddf9c56bfaed8a4c3c86873e920 (patch)
treea006255448b257fe10a117edee3a9c184c881a62 /test/core
parent01afb1bf29f9109772aa803d4316ac41b6ef7f34 (diff)
parentda0cf3cdfb0cece38ed3bac26e99146aca6eaab1 (diff)
Merge pull request #4442 from ctiller/bob
ASAN, Sanity fixes
Diffstat (limited to 'test/core')
-rw-r--r--test/core/httpcli/parser_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/httpcli/parser_test.c b/test/core/httpcli/parser_test.c
index b96814dd41..a26ddd2821 100644
--- a/test/core/httpcli/parser_test.c
+++ b/test/core/httpcli/parser_test.c
@@ -159,7 +159,8 @@ int main(int argc, char **argv) {
"hello world!");
tmp1 = gpr_malloc(2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH);
- memset(tmp1, 'a', 2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH);
+ memset(tmp1, 'a', 2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH - 1);
+ tmp1[2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH - 1] = 0;
gpr_asprintf(&tmp2, "HTTP/1.0 200 OK\r\nxyz: %s\r\n\r\n", tmp1);
test_fails(split_modes[i], tmp2);
gpr_free(tmp1);