mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-26 23:29:04 +00:00
fix(overlay): bound protobuf parsing to the current frame
This commit is contained in:
@@ -285,7 +285,8 @@ parseMessageContent(MessageHeader const& header, Buffers const& buffers)
|
||||
if (payloadSize == 0 || !m->ParseFromArray(payload.data(), payloadSize))
|
||||
return {};
|
||||
}
|
||||
else if (!m->ParseFromZeroCopyStream(&stream))
|
||||
else if (!m->ParseFromBoundedZeroCopyStream(
|
||||
&stream, static_cast<int>(header.payload_wire_size)))
|
||||
return {};
|
||||
|
||||
return m;
|
||||
|
||||
Reference in New Issue
Block a user