diff options
Diffstat (limited to 'media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch')
-rw-r--r-- | media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch b/media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch new file mode 100644 index 000000000000..b65a63d87667 --- /dev/null +++ b/media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch @@ -0,0 +1,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); |