Commit cec628a4 authored by Trond Andersen's avatar Trond Andersen Committed by Sebastian Dröge

rtcpbuffer: fix invalid read in validation of padding in rtcp packet

parent 0f8edca9
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment