gstreamer/tests/check
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
..
elements tests/webrtc: check for more sdp things across the board 2021-03-19 18:02:21 +11:00
generic Remove autotools build system 2019-10-14 13:54:27 +01:00
libs h2645parser: Catch overflows in AVC/HEVC NAL unit length calculations 2021-03-24 09:22:48 +00:00
media meson test: Enable libs tests 2017-12-08 18:42:22 +01:00
pipelines documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
gst-plugins-bad.supp validate: plug leak in gssdp 2020-09-14 14:42:36 +03:00
meson.build play: tests: Switch user-agent test to a real HTTP server 2021-03-09 18:03:48 +00:00