gstreamer/tests/check/libs
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
..
av1parser.c test: av1parser: update the test result because of bug fixing. 2020-11-17 19:31:09 +00:00
h264parser.c h2645parser: Catch overflows in AVC/HEVC NAL unit length calculations 2021-03-24 09:22:48 +00:00
h265parser.c h2645parser: Catch overflows in AVC/HEVC NAL unit length calculations 2021-03-24 09:22:48 +00:00
insertbin.c documentation: fixed a heap o' typos 2019-11-05 09:11:25 -05:00
isoff.c isoff: Add parsing mss specific tfrf and tfxd boxes 2017-08-25 17:21:32 -07:00
isoff.h isoff: Add parsing mss specific tfrf and tfxd boxes 2017-08-25 17:21:32 -07:00
mpegts.c mpegts: Add support for SCTE-35 sections 2019-10-31 12:31:27 +00:00
mpegvideoparser.c check: Use GST_CHECK_MAIN () macro everywhere 2015-06-02 16:04:40 +02:00
nalutils.c nalutils: Introduce NAL writer helper methods 2020-03-30 07:59:10 +00:00
planaraudioadapter.c Run gst-indent through the files 2018-11-28 14:18:26 +00:00
play.c play: tests: Switch user-agent test to a real HTTP server 2021-03-09 18:03:48 +00:00
vc1parser.c check: Use GST_CHECK_MAIN () macro everywhere 2015-06-02 16:04:40 +02:00
vkcommandpool.c vulkan: implement command buffer reuse 2019-09-19 02:01:35 +00:00
vkdevice.c vulkan: split physical device from logical device 2019-09-17 13:02:44 +10:00
vkimage.c gst: don't use volatile to mean atomic 2021-03-22 14:34:36 +11:00
vkinstance.c vulkan/instance: expose extension/layer choices 2020-06-21 09:30:29 +00:00
vkmemory.c vkbuffer: remove buffer view from the memory 2019-09-25 11:11:02 +00:00
vkwindow.c vulkan/window: add property for the parent display 2019-07-05 16:20:05 +10:00
vp8parser.c check: Use GST_CHECK_MAIN () macro everywhere 2015-06-02 16:04:40 +02:00
vp9parser.c tests: vp9parser: Add test parsing superframe 2020-03-02 01:55:33 +09:00