diff --git a/fuzztest/internal/domains/protobuf_domain_impl.h b/fuzztest/internal/domains/protobuf_domain_impl.h index c3e3ca502..ec9f465ff 100644 --- a/fuzztest/internal/domains/protobuf_domain_impl.h +++ b/fuzztest/internal/domains/protobuf_domain_impl.h @@ -1218,7 +1218,8 @@ class ProtobufDomainUntypedImpl auto v = self.GetValue(corpus_copy); // We need to roundtrip through serialization to really dedup. The // reflection API alone doesn't cut it. - v->ParsePartialFromString(v->SerializePartialAsString()); + FUZZTEST_CHECK( + v->ParsePartialFromString(v->SerializePartialAsString())); if (v->GetReflection()->FieldSize(*v, field) == domain.GetValue(copy).size()) { // The number of entries is the same, so accept the change.