summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-02-20 19:00:52 +0100
committerGravatar Nikias Bassen2013-02-20 19:00:52 +0100
commit785ac6a450c901b5f8a32573e446926dd8b2e502 (patch)
treee1dd90cf60b9a4a7179b28de8fd968bd6fc031e9
parentd86c2a34bdaa37dfd07c8ded8a19afbfc1066949 (diff)
downloadlibvformat-785ac6a450c901b5f8a32573e446926dd8b2e502.tar.gz
libvformat-785ac6a450c901b5f8a32573e446926dd8b2e502.tar.bz2
vf_parser: fix memory corruption due to incorrect pointerHEADmaster
-rw-r--r--src/vf_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vf_parser.c b/src/vf_parser.c
index 0d4e71e..4775a37 100644
--- a/src/vf_parser.c
+++ b/src/vf_parser.c
@@ -569,7 +569,7 @@ bool_t vf_parse_text(
/* handle remainder */
if (p_parse->p_b64rem)
{
- char* newbuf = (char*)vf_malloc(len + p_strlen(p_parse->p_b64rem + 1));
+ char* newbuf = (char*)vf_malloc(len + p_strlen(p_parse->p_b64rem) + 1);
p_strcpy(newbuf, p_parse->p_b64rem);
p_strcat(newbuf, b64buf);