gstreamer/tests
Sebastian Dröge ffa4d84e54 h2645parser: Catch overflows in AVC/HEVC NAL unit length calculations
Offset and size are stored as 32 bit guint and might overflow when
adding the nal_length_size, so let's avoid that.

For the size this would happen if the AVC/HEVC NAL unit size happens to
be stored in 4 bytes and is 4294967292 or higher, which is likely
corrupted data anyway.

For the offset this is something for the caller of these functions to
take care of but is unlikely to happen as it would require parsing on a
>4GB buffer.

Allowing these overflows causes all kinds of follow-up bugs in the
h2645parse elements, ranging from infinite loops and memory leaks to
potential memory corruptions.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2103>
2021-03-24 09:22:48 +00:00
..
check h2645parser: Catch overflows in AVC/HEVC NAL unit length calculations 2021-03-24 09:22:48 +00:00
examples examples: Add an mpegtsmux example of prog-map usage. 2021-03-18 15:07:53 +00:00
files Remove autotools build system 2019-10-14 13:54:27 +01:00
icles Remove autotools build system 2019-10-14 13:54:27 +01:00
meson.build meson: don't build icles when tests are disabled 2019-02-28 11:02:42 +00:00