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

Merge pull request #4637 from murgatroid99/core_metadata_validation_empty_check

Make metadata validation functions reject empty keys
parents 6b4066c1 58bb40fe
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,9 @@ int grpc_header_key_is_legal(const char *key, size_t length) {
0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xff, 0x03, 0x00, 0x00, 0x00,
0x80, 0xfe, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
if (length == 0) {
return 0;
}
return conforms_to(key, length, legal_header_bits);
}
......
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