Fix build + CVE-2011-2896 + crash (forwarded request 81711 from vuntz) OBS-URL: https://build.opensuse.org/request/show/81712 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gimp?expand=0&rev=64
25 lines
987 B
Diff
25 lines
987 B
Diff
From 16d77f975b2c398a515f91e34ef868dc3bb49228 Mon Sep 17 00:00:00 2001
|
|
From: Nils Philippsen <nils@redhat.com>
|
|
Date: Wed, 02 Feb 2011 16:11:28 +0000
|
|
Subject: Bug 641259 - [abrt] gimp-2:2.6.11-1.fc14: py-slice.py:172:slice:TypeError: integer argument expected, got float
|
|
|
|
py-slice: cast cellspacing to int in pyslice() to avoid tracebacks
|
|
(cherry picked from commit 0af966b63fcc55b36380d6538dfb30000f71fef9)
|
|
---
|
|
diff --git a/plug-ins/pygimp/plug-ins/py-slice.py b/plug-ins/pygimp/plug-ins/py-slice.py
|
|
index 40743f3..ac35f23 100755
|
|
--- a/plug-ins/pygimp/plug-ins/py-slice.py
|
|
+++ b/plug-ins/pygimp/plug-ins/py-slice.py
|
|
@@ -36,6 +36,9 @@ gettext.install("gimp20-python", gimp.locale_directory, unicode=True)
|
|
def pyslice(image, drawable, save_path, html_filename,
|
|
image_basename, image_extension, separate,
|
|
image_path, cellspacing, animate, skip_caps):
|
|
+
|
|
+ cellspacing = int (cellspacing)
|
|
+
|
|
if animate:
|
|
count = 0
|
|
drw = []
|
|
--
|
|
cgit v0.9.0.2
|