diff options
author | Vizerai <jsking@google.com> | 2016-09-09 14:39:31 -0700 |
---|---|---|
committer | Vizerai <jsking@google.com> | 2016-09-09 14:39:31 -0700 |
commit | cb849ef58f95473006361e8889028cb6eaef58eb (patch) | |
tree | 56ee418fbca85b05eb16c7d3f989536d84d7afa9 /test/core | |
parent | 12d1fc61d85bc06b2f291f341d112f94ea1dee13 (diff) |
update
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/census/trace_context_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/census/trace_context_test.c b/test/core/census/trace_context_test.c index 1d13428562..ee409e8d1a 100644 --- a/test/core/census/trace_context_test.c +++ b/test/core/census/trace_context_test.c @@ -189,7 +189,8 @@ static void test_corrupt() { ctxt1.is_sampled = true; msg_length = encode_trace_context(&ctxt1, buffer, sizeof(buffer)); - // Corrupt some bytes. + /* Corrupt some bytes. 255 (0xFF) should be illegal for the first byte of the + proto encoded object. */ buffer[0] = 255; bool res = validate_decode_context(&ctxt1, buffer, msg_length); |