summaryrefslogtreecommitdiff
blob: b65a63d876671a3c3bbfc739995db9b34298b8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 95f7f7bc104ec35ed3c909e52d928313fd35a48c Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Mardelle <jb@kdenlive.org>
Date: Mon, 19 Mar 2018 09:20:49 +0100
Subject: [PATCH] Fix crash with kdenlivetile caused by wrong malloc size

---
 src/modules/qt/producer_kdenlivetitle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/qt/producer_kdenlivetitle.c b/src/modules/qt/producer_kdenlivetitle.c
index 67508aa33..4dc5d9c6b 100644
--- a/src/modules/qt/producer_kdenlivetitle.c
+++ b/src/modules/qt/producer_kdenlivetitle.c
@@ -41,7 +41,7 @@ void read_xml(mlt_properties properties)
 			goto error;
 		rewind (f);
 
-		char *infile = (char*) mlt_pool_alloc(lSize);
+		char *infile = (char*) mlt_pool_alloc(lSize + 1);
 		if ( infile )
 		{
 			size = fread(infile,1,lSize,f);