fuzz: fix oss-fuzz crash in route_fuzz_test due to validation (#12176)

Signed-off-by: Arthur Yan <arthuryan@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ e355c58dcf6519e5a55c84e9efd50d597e3b5a69
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent a07de98c1e
commit 63d84df73f
  1. 4
      envoy/config/route/v3/route_components.proto
  2. 4
      envoy/config/route/v4alpha/route_components.proto

@ -127,7 +127,9 @@ message VirtualHost {
// Specifies a list of HTTP headers that should be removed from each response
// handled by this virtual host.
repeated string response_headers_to_remove = 11;
repeated string response_headers_to_remove = 11 [(validate.rules).repeated = {
items {string {min_bytes: 1 well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// Indicates that the virtual host has a CORS policy.
CorsPolicy cors = 8;

@ -126,7 +126,9 @@ message VirtualHost {
// Specifies a list of HTTP headers that should be removed from each response
// handled by this virtual host.
repeated string response_headers_to_remove = 11;
repeated string response_headers_to_remove = 11 [(validate.rules).repeated = {
items {string {min_bytes: 1 well_known_regex: HTTP_HEADER_NAME strict: false}}
}];
// Indicates that the virtual host has a CORS policy.
CorsPolicy cors = 8;

Loading…
Cancel
Save