mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
hlsdemux: Fix invalid read
This commit is contained in:
parent
0b5fde7ed8
commit
80a3a014f5
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ gst_hls_src_buf_to_utf8_playlist (GstBuffer * buf)
|
|||
|
||||
/* alloc size + 1 to end with a null character */
|
||||
playlist = g_malloc0 (info.size + 1);
|
||||
memcpy (playlist, info.data, info.size + 1);
|
||||
memcpy (playlist, info.data, info.size);
|
||||
|
||||
gst_buffer_unmap (buf, &info);
|
||||
gst_buffer_unref (buf);
|
||||
|
|
Loading…
Reference in a new issue