mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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);
|
buf = g_strndup ((gchar *) stream->codec_priv, stream->codec_priv_size);
|
||||||
|
|
||||||
/* just locate and parse palette part */
|
/* just locate and parse palette part */
|
||||||
start = strstr ((gchar *) stream->codec_priv, "palette:");
|
start = strstr (buf, "palette:");
|
||||||
if (start) {
|
if (start) {
|
||||||
gint i;
|
gint i;
|
||||||
guint32 clut[16];
|
guint32 clut[16];
|
||||||
|
|
Loading…
Reference in a new issue