ssaparse: Search for closing brace after opening brace
authorSebastian Dröge <sebastian@centricular.com>
Mon, 30 Sep 2024 18:40:44 +0000 (21:40 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 3 Dec 2024 06:39:28 +0000 (06:39 +0000)
commit7108073b5be73eb2482eb8494745962b8c0571f1
tree76604d3806408112d90063128483c0c36a33ecfd
parent7eb26b198beffecdba4dbb64299f9cb09a9181d6
ssaparse: Search for closing brace after opening brace

Otherwise removing anything between the braces leads to out of bound writes if
there is a closing brace before the first opening brace.

Thanks to Antonio Morales for finding and reporting the issue.

Fixes GHSL-2024-228
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3870

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8048>
subprojects/gst-plugins-base/gst/subparse/gstssaparse.c