From 80a3a014f566b828df9ad68b4ee9925d3dc103ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 12 Oct 2012 15:09:07 +0200 Subject: [PATCH] hlsdemux: Fix invalid read --- gst/hls/gsthlsdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 5c9ec6bec1..e39b2cc8ad 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);