avisubtitle: Fix size checks and avoid overflows when checking sizes
authorSebastian Dröge <sebastian@centricular.com>
Fri, 4 Oct 2024 11:04:03 +0000 (14:04 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 3 Dec 2024 14:34:22 +0000 (14:34 +0000)
commit98c2175d255bd2459d7645ac6aee50be5cb57fe3
tree4b7d93cbc984a63685f33f3248befdb9c9976f27
parentba8476d3448eeaf016345ae0697b8447c0f62636
avisubtitle: Fix size checks and avoid overflows when checking sizes

Thanks to Antonio Morales for finding and reporting the issue.

Fixes GHSL-2024-262
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3890

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8055>
subprojects/gst-plugins-good/gst/avi/gstavisubtitle.c