rmdemux: Make sure we have enough data available when parsing audio/video packets
authorSebastian Dröge <sebastian@centricular.com>
Wed, 3 Mar 2021 09:05:14 +0000 (11:05 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 15 Mar 2021 12:36:42 +0000 (12:36 +0000)
commit3aba7d1e625554b2407bc77b3d09b4928b937d5f
tree19458e1eb3637e08fa79e0ffa66e3f9cbae354c9
parenta9105ad1e1fb8cbcf787c2a967697707eea405ed
rmdemux: Make sure we have enough data available when parsing audio/video packets

Otherwise there will be out-of-bounds reads and potential crashes.

Thanks to Natalie Silvanovich for reporting.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/issues/37

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/74>
gst/realmedia/rmdemux.c