Accepting request 529878 from home:manfred999

Apply upstream fix

OBS-URL: https://build.opensuse.org/request/show/529878
OBS-URL: https://build.opensuse.org/package/show/graphics/gifsicle?expand=0&rev=13
This commit is contained in:
Manfred Schwarb 2017-09-29 09:36:43 +00:00 committed by Git OBS Bridge
parent b174124b6c
commit 084876f82b
3 changed files with 32 additions and 0 deletions

23
fix-null-deref.patch Normal file
View File

@ -0,0 +1,23 @@
From f1b8e6323a8fdd029847b7efd400d5fc2ac9aecc Mon Sep 17 00:00:00 2001
From: Eddie Kohler <ekohler@gmail.com>
Date: Tue, 26 Sep 2017 08:46:13 -0700
Subject: [PATCH] Don't release the uncompressed image if it's all there is.
Fix #115, #116 issues reported by Zhao Liang, Huawei Weiran Labs.
---
src/support.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/support.c b/src/support.c
index e48075c..7978974 100644
--- a/src/support.c
+++ b/src/support.c
@@ -1405,7 +1405,7 @@ analyze_crop(int nmerger, Gt_Crop* crop, int compress_immediately)
}
found_right:
- if (compress_immediately > 0)
+ if (compress_immediately > 0 && srci->compressed)
Gif_ReleaseUncompressedImage(srci);
}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 27 22:40:38 UTC 2017 - manfred99@gmx.ch
- add fix-null-deref.patch:
upstream fix, commit f1b8e6323a8fdd029847b7efd400d5fc2ac9aecc
-------------------------------------------------------------------
Fri Aug 18 09:59:28 CEST 2017 - manfred99@gmx.ch

View File

@ -24,6 +24,8 @@ License: GPL-2.0
Group: Productivity/Graphics/Other
Url: https://www.lcdf.org/gifsicle/
Source: https://www.lcdf.org/gifsicle/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-null-deref.patch
Patch0: fix-null-deref.patch
Obsoletes: ungifsicle < %{version}
Provides: ungifsicle = %{version}
BuildRequires: pkgconfig(x11)
@ -50,6 +52,7 @@ appearance.
%prep
%setup -q
%patch0 -p1
%build
%configure