[fuzz]: fix oss fuzz bug 34515, limit maglev table size (#16671)

Signed-off-by: chaoqin-li1123 <chaoqinli@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 9aca65c395f01020080166e4795455addde167fa
pull/624/head
data-plane-api(Azure Pipelines) 3 years ago
parent bd745b1b59
commit c0a881605a
  1. 4
      envoy/config/cluster/v3/cluster.proto
  2. 4
      envoy/config/cluster/v4alpha/cluster.proto

@ -413,8 +413,8 @@ message Cluster {
// The table size for Maglev hashing. The Maglev aims for minimal disruption rather than an absolute guarantee.
// Minimal disruption means that when the set of upstreams changes, a connection will likely be sent to the same
// upstream as it was before. Increasing the table size reduces the amount of disruption.
// The table size must be prime number. If it is not specified, the default is 65537.
google.protobuf.UInt64Value table_size = 1;
// The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
google.protobuf.UInt64Value table_size = 1 [(validate.rules).uint64 = {lte: 5000011}];
}
// Specific configuration for the

@ -416,8 +416,8 @@ message Cluster {
// The table size for Maglev hashing. The Maglev aims for minimal disruption rather than an absolute guarantee.
// Minimal disruption means that when the set of upstreams changes, a connection will likely be sent to the same
// upstream as it was before. Increasing the table size reduces the amount of disruption.
// The table size must be prime number. If it is not specified, the default is 65537.
google.protobuf.UInt64Value table_size = 1;
// The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
google.protobuf.UInt64Value table_size = 1 [(validate.rules).uint64 = {lte: 5000011}];
}
// Specific configuration for the

Loading…
Cancel
Save