diff options
author | 2015-12-09 09:22:45 -0800 | |
---|---|---|
committer | 2015-12-09 09:22:45 -0800 | |
commit | 300207e700f43ea98e1af5ae06f74390d2b75ee9 (patch) | |
tree | c27b7377b335cfeb11d9c598067e552f6fd6b3dd /test/core | |
parent | 913c151dadcb3a1bd2c89a81fbe2485ba09820bd (diff) |
Expand header testing
Diffstat (limited to 'test/core')
-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 461a05a83e..9cb0902bab 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, |