View | Details | Raw Unified | Return to bug 207054
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	imaging
4
PORTNAME=	imaging
5
PORTVERSION=	1.1.7
5
PORTVERSION=	1.1.7
6
PORTREVISION=	5
6
PORTREVISION=	6
7
CATEGORIES=	graphics python
7
CATEGORIES=	graphics python
8
MASTER_SITES=	http://effbot.org/media/downloads/ \
8
MASTER_SITES=	http://effbot.org/media/downloads/ \
9
		http://www.pythonware.net/storage/
9
		http://www.pythonware.net/storage/
(-)files/patch-CVE-2016-0775 (+24 lines)
Line 0 Link Here
1
From bcaaf97f4ff25b3b5b9e8efeda364e17e80858ec Mon Sep 17 00:00:00 2001
2
From: wiredfool <eric-github@soroos.net>
3
Date: Wed, 20 Jan 2016 22:37:28 +0000
4
Subject: [PATCH] FLI overflow error fix and testcase CVE-2016-0775
5
6
---
7
 Tests/check_fli_overflow.py   |  16 ++++++++++++++++
8
 Tests/images/fli_overflow.fli | Bin 0 -> 4645 bytes
9
 libImaging/FliDecode.c        |   2 +-
10
 3 files changed, 17 insertions(+), 1 deletion(-)
11
 create mode 100644 Tests/check_fli_overflow.py
12
 create mode 100644 Tests/images/fli_overflow.fli
13
14
--- libImaging/FliDecode.c
15
+++ libImaging/FliDecode.c
16
@@ -185,7 +185,7 @@ ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
17
 	    /* COPY chunk */
18
 	    for (y = 0; y < state->ysize; y++) {
19
 		UINT8* buf = (UINT8*) im->image[y];
20
-		memcpy(buf+x, data, state->xsize);
21
+		memcpy(buf, data, state->xsize);
22
 		data += state->xsize;
23
 	    }
24
 	    break;
(-)files/patch-libImaging-PcdDecode.c (+33 lines)
Line 0 Link Here
1
From ae453aa18b66af54e7ff716f4ccb33adca60afd4 Mon Sep 17 00:00:00 2001
2
From: wiredfool <eric-github@soroos.net>
3
Date: Tue, 2 Feb 2016 05:46:26 -0800
4
Subject: [PATCH] PCD decoder overruns the shuffle buffer, Fixes #568
5
6
---
7
 Tests/images/hopper.pcd | Bin 0 -> 788480 bytes
8
 Tests/test_file_pcd.py  |  18 ++++++++++++++++++
9
 libImaging/PcdDecode.c  |   4 ++--
10
 3 files changed, 20 insertions(+), 2 deletions(-)
11
 create mode 100644 Tests/images/hopper.pcd
12
 create mode 100644 Tests/test_file_pcd.py
13
14
--- libImaging/PcdDecode.c
15
+++ libImaging/PcdDecode.c
16
@@ -47,7 +47,7 @@ ImagingPcdDecode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
17
 	    out[0] = ptr[x];
18
 	    out[1] = ptr[(x+4*state->xsize)/2];
19
 	    out[2] = ptr[(x+5*state->xsize)/2];
20
-	    out += 4;
21
+	    out += 3;
22
 	}
23
 
24
 	state->shuffle((UINT8*) im->image[state->y],
25
@@ -62,7 +62,7 @@ ImagingPcdDecode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
26
 	    out[0] = ptr[x+state->xsize];
27
 	    out[1] = ptr[(x+4*state->xsize)/2];
28
 	    out[2] = ptr[(x+5*state->xsize)/2];
29
-	    out += 4;
30
+	    out += 3;
31
 	}
32
 
33
 	state->shuffle((UINT8*) im->image[state->y],

Return to bug 207054