We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50f0cd3 commit 4903a28Copy full SHA for 4903a28
1 file changed
src/packet.rs
@@ -619,8 +619,8 @@ macro_rules! impl_e131_root_layer {
619
}
620
VECTOR_ROOT_E131_EXTENDED => {
621
let data_buf = &buf[E131_CID_END_INDEX .. length];
622
- let PduInfo { length, vector} = pdu_info(&data_buf, E131_FRAMING_LAYER_VECTOR_LENGTH)?;
623
- if buf.len() < length {
+ let PduInfo { length, vector} = pdu_info(data_buf, E131_FRAMING_LAYER_VECTOR_LENGTH)?;
+ if data_buf.len() < length {
624
return Err(SacnError::SacnParsePackError(
625
ParsePacketError::ParseInsufficientData(
626
"Buffer contains insufficient data based on E131 framing layer pdu length field".to_string(),
0 commit comments