Commit 3ccf9155 authored by Alain Degreffe's avatar Alain Degreffe Committed by Jean-Baptiste Kempf

var_buffer_getmemory: invalid memcpy source pointer

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
(cherry picked from commit 9a74aaad855d14a2e82d8599624280c12dcce5d5)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5e69820c
......@@ -194,7 +194,7 @@ int var_buffer_getmemory ( var_buffer_t *p_buf, void *p_mem, int64_t i_mem )
i_copy = __MIN( i_mem, p_buf->i_size - p_buf->i_data );
if( i_copy > 0 && p_mem != NULL)
{
memcpy( p_mem, p_buf + p_buf->i_data, i_copy );
memcpy( p_mem, p_buf->p_data + p_buf->i_data , i_copy );
}
if( i_copy < 0 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment