Skip to content
Snippets Groups Projects
Commit 85517c63 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix string literals to hit the cases theyre supposed to

parent 045c8483
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,22 @@ int main(int argc, char **argv) { ...@@ -94,6 +94,22 @@ int main(int argc, char **argv) {
"\x00\x00\x04\x01\x24\x00\x00\x00\x01" "\x00\x00\x04\x01\x24\x00\x00\x00\x01"
"\x00\x00\x00\x00", "\x00\x00\x00\x00",
0); 0);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x05\x01\x24\x00\x00\x00\x01"
"\x00",
GRPC_BAD_CLIENT_DISCONNECT);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x05\x01\x24\x00\x00\x00\x01"
"\x00\x00",
GRPC_BAD_CLIENT_DISCONNECT);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x05\x01\x24\x00\x00\x00\x01"
"\x00\x00\x00",
GRPC_BAD_CLIENT_DISCONNECT);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x05\x01\x24\x00\x00\x00\x01"
"\x00\x00\x00\x00",
GRPC_BAD_CLIENT_DISCONNECT);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x05\x01\x24\x00\x00\x00\x01" "\x00\x00\x05\x01\x24\x00\x00\x00\x01"
"\x00\x00\x00\x00\x00", "\x00\x00\x00\x00\x00",
...@@ -106,24 +122,24 @@ int main(int argc, char **argv) { ...@@ -106,24 +122,24 @@ int main(int argc, char **argv) {
0); 0);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x04\x01\x04\x00\x00\x00\x01" "\x00\x00\x04\x01\x04\x00\x00\x00\x01"
"\x7f\x7f\x01a", "\x7f\x7f\x01""a",
0); 0);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x04\x01\x04\x00\x00\x00\x01" "\x00\x00\x04\x01\x04\x00\x00\x00\x01"
"\x0f\x7f\x01a", "\x0f\x7f\x01""a",
0); 0);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x04\x01\x04\x00\x00\x00\x01" "\x00\x00\x04\x01\x04\x00\x00\x00\x01"
"\x1f\x7f\x01a", "\x1f\x7f\x01""a",
0); 0);
/* test nvr, not indexed in static table */ /* test nvr, not indexed in static table */
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x03\x01\x04\x00\x00\x00\x01" "\x00\x00\x03\x01\x04\x00\x00\x00\x01"
"\x01\x01a", "\x01\x01""a",
GRPC_BAD_CLIENT_DISCONNECT); GRPC_BAD_CLIENT_DISCONNECT);
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
"\x00\x00\x03\x01\x04\x00\x00\x00\x01" "\x00\x00\x03\x01\x04\x00\x00\x00\x01"
"\x11\x01a", "\x11\x01""a",
GRPC_BAD_CLIENT_DISCONNECT); GRPC_BAD_CLIENT_DISCONNECT);
/* illegal op code */ /* illegal op code */
GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment