Index: components/tracing/core/proto_utils.cc |
diff --git a/components/tracing/core/proto_utils.cc b/components/tracing/core/proto_utils.cc |
index 8e80d31c5069613bcbb5dd09ed88593167516169..0b410b49f3e444e3e27dbbb8a9839e39a7fa6bce 100644 |
--- a/components/tracing/core/proto_utils.cc |
+++ b/components/tracing/core/proto_utils.cc |
@@ -74,6 +74,7 @@ const uint8_t* ParseField(const uint8_t* start, |
} |
case kFieldTypeLengthDelimited: { |
pos = ParseVarInt(pos, end, field_intvalue); |
+ CHECK_LE(*field_intvalue, kMaxMessageLength); |
pos += *field_intvalue; |
CHECK_PTR_LE(pos, end); |
break; |