Commit 477e32ca authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: Corrected allocation size

parent 084d0d3c
......@@ -142,7 +142,7 @@ int handle_vorbis_comments(stream_processor *stream, const unsigned char *in, si
if (length < (*end + user_comment_string_length))
return -1;
buf = malloc(user_comment_string_length);
buf = malloc(user_comment_string_length + 1);
if (buf) {
memcpy(buf, in + *end, user_comment_string_length);
buf[user_comment_string_length] = 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