fuzz: fixing unsigned integer underflow (#12289)

Signed-off-by: Yifan Yang <needyyang@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 8f668e976ea0bbd7d3ac352247c1fdead6acbb31
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 2334d91df3
commit 4a4b5459c6
  1. 4
      envoy/config/tap/v3/common.proto
  2. 4
      envoy/config/tap/v4alpha/common.proto

@ -123,10 +123,10 @@ message HttpGenericBodyMatch {
option (validate.required) = true;
// Text string to be located in HTTP body.
string string_match = 1;
string string_match = 1 [(validate.rules).string = {min_len: 1}];
// Sequence of bytes to be located in HTTP body.
bytes binary_match = 2;
bytes binary_match = 2 [(validate.rules).bytes = {min_len: 1}];
}
}

@ -127,10 +127,10 @@ message HttpGenericBodyMatch {
option (validate.required) = true;
// Text string to be located in HTTP body.
string string_match = 1;
string string_match = 1 [(validate.rules).string = {min_len: 1}];
// Sequence of bytes to be located in HTTP body.
bytes binary_match = 2;
bytes binary_match = 2 [(validate.rules).bytes = {min_len: 1}];
}
}

Loading…
Cancel
Save