18e06fb530
CVE-2024-47600, CVE-2024-47607, CVE-2024-47615, CVE-2024-47835 Resolves: RHEL-70983, RHEL-71035, RHEL-70932, RHEL-71037 Resolves: RHEL-71019, RHEL-70995, RHEL-71163
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 570cba0db38693cc5576304b0f0fafaaddbdf750 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
|
|
Date: Wed, 9 Oct 2024 11:23:47 -0400
|
|
Subject: [PATCH 10/10] subparse: Check for NULL return of strchr() when
|
|
parsing LRC subtitles
|
|
|
|
Thanks to Antonio Morales for finding and reporting the issue.
|
|
|
|
Fixes GHSL-2024-263
|
|
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3892
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8100>
|
|
---
|
|
subprojects/gst-plugins-base/gst/subparse/gstsubparse.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c b/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c
|
|
index 1867dee69c..4ea4ec64a9 100644
|
|
--- a/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c
|
|
+++ b/subprojects/gst-plugins-base/gst/subparse/gstsubparse.c
|
|
@@ -1068,6 +1068,11 @@ parse_lrc (ParserState * state, const gchar * line)
|
|
return NULL;
|
|
|
|
start = strchr (line, ']');
|
|
+ // sscanf() does not check for the trailing ] but only up to the last
|
|
+ // placeholder, so there might be no ] at the end.
|
|
+ if (!start)
|
|
+ return NULL;
|
|
+
|
|
if (start - line == 9)
|
|
milli = 10;
|
|
else
|
|
--
|
|
2.47.0
|
|
|