mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
ffa4d84e54
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> |
||
---|---|---|
.. | ||
av1parser.c | ||
h264parser.c | ||
h265parser.c | ||
insertbin.c | ||
isoff.c | ||
isoff.h | ||
mpegts.c | ||
mpegvideoparser.c | ||
nalutils.c | ||
planaraudioadapter.c | ||
play.c | ||
vc1parser.c | ||
vkcommandpool.c | ||
vkdevice.c | ||
vkimage.c | ||
vkinstance.c | ||
vkmemory.c | ||
vkwindow.c | ||
vp8parser.c | ||
vp9parser.c |