mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
rtcpbuffer: fix invalid read in validation of padding in rtcp packet
This commit is contained in:
parent
0f8edca902
commit
cec628a414
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue