From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFD6C138334 for ; Sun, 22 Jul 2018 21:50:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1973E0819; Sun, 22 Jul 2018 21:50:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC727E0819 for ; Sun, 22 Jul 2018 21:50:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16BC4335D8B for ; Sun, 22 Jul 2018 21:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5252B386 for ; Sun, 22 Jul 2018 21:50:47 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1532296156.271efb8ca6181d5a68dd4744ff11d77ab96aa451.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mlt/, media-libs/mlt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch media-libs/mlt/mlt-6.6.0-r1.ebuild X-VCS-Directories: media-libs/mlt/ media-libs/mlt/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 271efb8ca6181d5a68dd4744ff11d77ab96aa451 X-VCS-Branch: master Date: Sun, 22 Jul 2018 21:50:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c329d367-e81e-4692-8836-ce4c58f706f4 X-Archives-Hash: b517eeacbb8121c3de843aa75d42e0d2 commit: 271efb8ca6181d5a68dd4744ff11d77ab96aa451 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jul 22 20:23:31 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jul 22 21:49:16 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271efb8c media-libs/mlt: Fix crash with kdenlivetitle Package-Manager: Portage-2.3.43, Repoman-2.3.10 .../mlt/files/mlt-6.6.0-kdenlivetitle-crash.patch | 22 ++++++++++++++++++++++ media-libs/mlt/mlt-6.6.0-r1.ebuild | 1 + 2 files changed, 23 insertions(+) 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 00000000000..b65a63d8766 --- /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 +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); diff --git a/media-libs/mlt/mlt-6.6.0-r1.ebuild b/media-libs/mlt/mlt-6.6.0-r1.ebuild index c5eed698d08..b1d9cfe31b2 100644 --- a/media-libs/mlt/mlt-6.6.0-r1.ebuild +++ b/media-libs/mlt/mlt-6.6.0-r1.ebuild @@ -100,6 +100,7 @@ PATCHES=( "${FILESDIR}"/${P}-libav-{1,2,3}.patch "${FILESDIR}"/${P}-png-segfault.patch "${FILESDIR}"/${P}-gif-encoding.patch + "${FILESDIR}"/${P}-kdenlivetitle-crash.patch ) pkg_setup() {