diff options
author | 2016-05-10 18:31:51 -0400 | |
---|---|---|
committer | 2016-05-10 20:03:11 -0400 | |
commit | 0ac7319a229ce3395a3fc9ad2088539d545fb9bd (patch) | |
tree | b67b347f11e56c2938d20d8589211c4d47c883b5 /media-gfx | |
parent | mate-extra/caja-dropbox: Fix ebuild regression in 1.10, #566538 (diff) | |
download | gentoo-mate-0ac7319a229ce3395a3fc9ad2088539d545fb9bd.tar.gz gentoo-mate-0ac7319a229ce3395a3fc9ad2088539d545fb9bd.tar.bz2 gentoo-mate-0ac7319a229ce3395a3fc9ad2088539d545fb9bd.zip |
media-gfx/eom: Revbump to 1.10.5-r2, resolves #574376
Package-Manager: portage-2.2.26
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/eom/eom-1.10.5-r2.ebuild (renamed from media-gfx/eom/eom-1.10.5-r1.ebuild) | 1 | ||||
-rw-r--r-- | media-gfx/eom/files/eom-cve-2013-7447.patch | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/media-gfx/eom/eom-1.10.5-r1.ebuild b/media-gfx/eom/eom-1.10.5-r2.ebuild index 731c3b3..67144a8 100644 --- a/media-gfx/eom/eom-1.10.5-r1.ebuild +++ b/media-gfx/eom/eom-1.10.5-r2.ebuild @@ -64,6 +64,7 @@ pkg_setup() { src_prepare() { epatch "${FILESDIR}/eom-1.10-fix-introspection.patch" + epatch "${FILESDIR}/eom-cve-2013-7447.patch" eautoreconf } diff --git a/media-gfx/eom/files/eom-cve-2013-7447.patch b/media-gfx/eom/files/eom-cve-2013-7447.patch new file mode 100644 index 0000000..410b433 --- /dev/null +++ b/media-gfx/eom/files/eom-cve-2013-7447.patch @@ -0,0 +1,28 @@ +From b7849cc5b6e7fd741ef04e334f586266a444ef8a Mon Sep 17 00:00:00 2001 +From: monsta <monsta@inbox.ru> +Date: Wed, 10 Feb 2016 14:52:54 +0300 +Subject: [PATCH] avoid integer overflow when allocating a large block of + memory + +it's the same issue as in gdk_cairo_set_source_pixbuf since the code +is apparently copied from there. + +fix is taken from +https://git.gnome.org/browse/gtk+/commit?id=894b1ae76a32720f4bb3d39cf460402e3ce331d6 +--- + src/eom-print-preview.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/eom-print-preview.c b/src/eom-print-preview.c +index f9f005f..7dc2a8a 100644 +--- a/src/eom-print-preview.c ++++ b/src/eom-print-preview.c +@@ -732,7 +732,7 @@ create_surface_from_pixbuf (GdkPixbuf *pixbuf) + format = CAIRO_FORMAT_ARGB32; + + 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 ((unsigned char *)cairo_pixels, + format, + width, height, cairo_stride); |