rtcpbuffer: fix invalid read in validation of padding in rtcp packet
This commit is contained in:
parent
0f8edca902
commit
cec628a414
@ -163,7 +163,7 @@ gst_rtcp_buffer_validate_data (guint8 * data, guint len)
|
||||
goto wrong_length;
|
||||
|
||||
/* get padding */
|
||||
pad_bytes = data[len - 1];
|
||||
pad_bytes = data[data_len - 1];
|
||||
if (data_len != pad_bytes)
|
||||
goto wrong_padding;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user