We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6369d9 commit fdb139dCopy full SHA for fdb139d
2 files changed
rs/moq-lite/src/ietf/message.rs
@@ -52,6 +52,9 @@ impl<T: Message> Decode<Version> for T {
52
}
53
54
} else {
55
+ if buf.remaining() < size {
56
+ return Err(DecodeError::Short);
57
+ }
58
let mut limited = buf.take(size);
59
match Self::decode_msg(&mut limited, version) {
60
Ok(result) => {
rs/moq-lite/src/lite/message.rs
@@ -49,6 +49,9 @@ impl<T: Message> Decode<Version> for T {
49
50
51
0 commit comments