summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2016-01-31 07:14:33 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-03 11:11:39 +0000
commit2f9a715583a97b0cf82489f899d0cf696835f2f8 (patch)
treea4480b40e2e55cf25df287dc1b3a2aadf12eaf96 /meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch
parentd192c628912d8a28bb9635d213ed68fb9af59412 (diff)
downloadpoky-2f9a715583a97b0cf82489f899d0cf696835f2f8.tar.gz
gdk-pixbuf: Security fix CVE-2015-7674
CVE-2015-7674 Heap overflow with a gif file in gdk-pixbuf < 2.32.1 (From OE-Core master rev: f2b16d0f9c3ad67fdf63e9e41f42a6d54f1043e4) (From OE-Core rev: 50602eebe1150819c320b6b611dcd792573eb55a) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch
new file mode 100644
index 0000000000..d516e88ab5
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/CVE-2015-7674.patch
@@ -0,0 +1,39 @@
1From e9a5704edaa9aee9498f1fbf6e1b70fcce2e55aa Mon Sep 17 00:00:00 2001
2From: Benjamin Otte <otte@redhat.com>
3Date: Tue, 22 Sep 2015 22:44:51 +0200
4Subject: [PATCH] pixops: Don't overflow variables when shifting them
5
6If we shift by 16 bits we need to be sure those 16 bits actually exist.
7They do now.
8
9Upstream-status: Backport
10https://git.gnome.org/browse/gdk-pixbuf/commit/?id=e9a5704edaa9aee9498f1fbf6e1b70fcce2e55aa
11
12CVE: CVE-2015-7674
13Signed-off-by: Armin Kuster <akuster@mvista.com>
14
15---
16 gdk-pixbuf/pixops/pixops.c | 10 +++++-----
17 1 file changed, 5 insertions(+), 5 deletions(-)
18
19Index: gdk-pixbuf-2.30.8/gdk-pixbuf/pixops/pixops.c
20===================================================================
21--- gdk-pixbuf-2.30.8.orig/gdk-pixbuf/pixops/pixops.c
22+++ gdk-pixbuf-2.30.8/gdk-pixbuf/pixops/pixops.c
23@@ -264,11 +264,11 @@ pixops_scale_nearest (guchar *des
24 double scale_x,
25 double scale_y)
26 {
27- int i;
28- int x;
29- int x_step = (1 << SCALE_SHIFT) / scale_x;
30- int y_step = (1 << SCALE_SHIFT) / scale_y;
31- int xmax, xstart, xstop, x_pos, y_pos;
32+ gint64 i;
33+ gint64 x;
34+ gint64 x_step = (1 << SCALE_SHIFT) / scale_x;
35+ gint64 y_step = (1 << SCALE_SHIFT) / scale_y;
36+ gint64 xmax, xstart, xstop, x_pos, y_pos;
37 const guchar *p;
38
39 #define INNER_LOOP(SRC_CHANNELS,DEST_CHANNELS,ASSIGN_PIXEL) \