mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
mpegtssection: Don't assert if the given section length is longer than the PMT actually is
Instead error out cleanly and just assert that we didn't read more than the available data.
This commit is contained in:
parent
fdf1a57953
commit
911a6083c8
1 changed files with 5 additions and 0 deletions
|
@ -715,6 +715,11 @@ _parse_pmt (GstMpegtsSection * section)
|
|||
i += 1;
|
||||
}
|
||||
|
||||
/* Section length was longer than the actual content of the PMT */
|
||||
if (data <= end - 4)
|
||||
goto error;
|
||||
|
||||
/* Ensure we did not read after the end of our array */
|
||||
g_assert (data == end - 4);
|
||||
|
||||
return (gpointer) pmt;
|
||||
|
|
Loading…
Reference in a new issue