diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-12 15:09:07 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-12 15:09:07 +0200 |
commit | 80a3a014f566b828df9ad68b4ee9925d3dc103ec (patch) | |
tree | f2765f134bdeae42f2d63602940a0e3c46915b6b /gst/hls | |
parent | 0b5fde7ed8d1917d917441cbc3ae3dd768ba03a9 (diff) | |
download | gstreamer-plugins-bad-80a3a014f566b828df9ad68b4ee9925d3dc103ec.tar.gz |
hlsdemux: Fix invalid read
Diffstat (limited to 'gst/hls')
-rw-r--r-- | gst/hls/gsthlsdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 5c9ec6bec..e39b2cc8a 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -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); |