blob: 1e9bac626a6761bc6c0cdd04f096710117c520eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-PIL_EpsImagePlugin.py,v 1.1 2014/05/15 06:23:06 spz Exp $
patch for CVE-2014-1932 and CVE-2014-1933 taken from
https://github.com/python-imaging/Pillow/commit/4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7
--- PIL/EpsImagePlugin.py.orig 2009-11-01 00:44:11.000000000 +0000
+++ PIL/EpsImagePlugin.py
@@ -44,7 +44,8 @@ def Ghostscript(tile, size, fp):
import tempfile, os
- file = tempfile.mktemp()
+ out_fd, file = tempfile.mkstemp()
+ os.close(out_fd)
# Build ghostscript command
command = ["gs",
|