mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 03:23:16 +00:00
matroskademux: fix strstr() usage on possibly unterminated string
This commit is contained in:
parent
0f5711d1dc
commit
c40cb18762
1 changed files with 1 additions and 1 deletions
|
@ -3706,7 +3706,7 @@ gst_matroska_demux_push_dvd_clut_change_event (GstMatroskaDemux * demux,
|
|||
buf = g_strndup ((gchar *) stream->codec_priv, stream->codec_priv_size);
|
||||
|
||||
/* just locate and parse palette part */
|
||||
start = strstr ((gchar *) stream->codec_priv, "palette:");
|
||||
start = strstr (buf, "palette:");
|
||||
if (start) {
|
||||
gint i;
|
||||
guint32 clut[16];
|
||||
|
|
Loading…
Reference in a new issue