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 3D7F91396D9 for ; Thu, 16 Nov 2017 19:06:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 558C8E0E06; Thu, 16 Nov 2017 19:06:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 25FF4E0E06 for ; Thu, 16 Nov 2017 19:06:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 ADC1033BE19 for ; Thu, 16 Nov 2017 19:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 448819CF5 for ; Thu, 16 Nov 2017 19:05:57 +0000 (UTC) From: "Denis Dupeyron" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Dupeyron" Message-ID: <1510859145.feb4dc7d109f21da58604cb24640a3f8e39b15ab.calchan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-base/thunar/, xfce-base/thunar/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: xfce-base/thunar/files/thunar-1.16.2-integer-overflow.patch xfce-base/thunar/thunar-1.6.12-r1.ebuild xfce-base/thunar/thunar-1.6.12.ebuild X-VCS-Directories: xfce-base/thunar/ xfce-base/thunar/files/ X-VCS-Committer: calchan X-VCS-Committer-Name: Denis Dupeyron X-VCS-Revision: feb4dc7d109f21da58604cb24640a3f8e39b15ab X-VCS-Branch: master Date: Thu, 16 Nov 2017 19:05:57 +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: fc39a885-b147-44db-b5fd-d0e00d2a8505 X-Archives-Hash: 6944b20109dc130df84f9b8452cc158a commit: feb4dc7d109f21da58604cb24640a3f8e39b15ab Author: Denis Dupeyron gentoo org> AuthorDate: Thu Nov 16 19:03:54 2017 +0000 Commit: Denis Dupeyron gentoo org> CommitDate: Thu Nov 16 19:05:45 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feb4dc7d xfce-base/thunar: fix CVE-2013-7447 (integer overflow), bug #574382 Package-Manager: Portage-2.3.14, Repoman-2.3.6 .../files/thunar-1.16.2-integer-overflow.patch | 29 ++++++++++++++++++++++ ...hunar-1.6.12.ebuild => thunar-1.6.12-r1.ebuild} | 3 +++ 2 files changed, 32 insertions(+) diff --git a/xfce-base/thunar/files/thunar-1.16.2-integer-overflow.patch b/xfce-base/thunar/files/thunar-1.16.2-integer-overflow.patch new file mode 100644 index 00000000000..09f4b937443 --- /dev/null +++ b/xfce-base/thunar/files/thunar-1.16.2-integer-overflow.patch @@ -0,0 +1,29 @@ +From 1736b1f69ecf3e44a1b957d8090fb04c6bc5fd95 Mon Sep 17 00:00:00 2001 +From: Mikhail Efremov +Date: Thu, 11 Feb 2016 18:59:27 +0300 +Subject: [PATCH] Fix potential buffer overflow + +Use g_malloc_n() instead of g_malloc to avoid integer overflow. +This fixes CVE-2013-7447, see +http://www.openwall.com/lists/oss-security/2016/02/10/2 +for details. +--- + thunar/thunar-gdk-extensions.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/thunar/thunar-gdk-extensions.c b/thunar/thunar-gdk-extensions.c +index 50ecb4a..775eca3 100644 +--- a/thunar/thunar-gdk-extensions.c ++++ b/thunar/thunar-gdk-extensions.c +@@ -75,7 +75,7 @@ thunar_gdk_cairo_create_surface (const GdkPixbuf *pixbuf) + + /* prepare pixel data and surface */ + cairo_stride = cairo_format_stride_for_width (format, width); +- cairo_pixels = g_malloc (height * cairo_stride); ++ cairo_pixels = g_malloc_n (height, cairo_stride); + surface = cairo_image_surface_create_for_data (cairo_pixels, format, + width, height, cairo_stride); + cairo_surface_set_user_data (surface, &cairo_key, cairo_pixels, g_free); +-- +2.6.5 + diff --git a/xfce-base/thunar/thunar-1.6.12.ebuild b/xfce-base/thunar/thunar-1.6.12-r1.ebuild similarity index 96% rename from xfce-base/thunar/thunar-1.6.12.ebuild rename to xfce-base/thunar/thunar-1.6.12-r1.ebuild index c34167b9a8a..f1baaf54ef0 100644 --- a/xfce-base/thunar/thunar-1.6.12.ebuild +++ b/xfce-base/thunar/thunar-1.6.12-r1.ebuild @@ -48,6 +48,9 @@ REQUIRED_USE="trash-panel-plugin? ( dbus )" S=${WORKDIR}/${MY_P} DOCS=( AUTHORS ChangeLog FAQ HACKING NEWS README THANKS TODO ) +PATCHES=( + "${FILESDIR}"/thunar-1.16.2-integer-overflow.patch +) src_configure() { local myconf=(