diff options
author | Yang Gao <yangg@google.com> | 2015-12-09 10:23:20 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-12-09 10:23:20 -0800 |
commit | 54834ba74be2eb58f12a5faac2d3c2c949ab4054 (patch) | |
tree | 156c0d478ee52ce38077ed26c03636983f127d54 /test/core/bad_client/tests | |
parent | 8360cabdd6c5a980ce0c5cb893b2fbd310a97412 (diff) | |
parent | 300207e700f43ea98e1af5ae06f74390d2b75ee9 (diff) |
Merge pull request #4358 from ctiller/abortive-continuations
Expand header testing
Diffstat (limited to 'test/core/bad_client/tests')
-rw-r--r-- | test/core/bad_client/tests/headers.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/core/bad_client/tests/headers.c b/test/core/bad_client/tests/headers.c index 4db96ae81d..abd2826111 100644 --- a/test/core/bad_client/tests/headers.c +++ b/test/core/bad_client/tests/headers.c @@ -268,12 +268,20 @@ int main(int argc, char **argv) { "\x00\x00\x00\x01\x04\x00\x00\x00\x01" "\x00\x00\x00\x01\x00\x00\x00\x00\x03" "\x00\x00\x00\x09\x04\x00\x00\x00\x01", - GRPC_BAD_CLIENT_DISCONNECT); + 0); /* opening with a continuation frame */ GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR "\x00\x00\x00\x09\x04\x00\x00\x00\x01", 0); + /* three header frames */ + GRPC_RUN_BAD_CLIENT_TEST(verifier, + PFX_STR + "\x00\x00\x00\x01\x04\x00\x00\x00\x01" + "\x00\x00\x00\x01\x04\x00\x00\x00\x01" + "\x00\x00\x00\x01\x04\x00\x00\x00\x01", + GRPC_BAD_CLIENT_DISCONNECT); + /* an invalid header found with fuzzing */ GRPC_RUN_BAD_CLIENT_TEST(verifier, |