file-bmp: don't close already closed FD
This commit is contained in:
parent
82c3c8f73d
commit
07f3220baf
@ -1,12 +1,20 @@
|
|||||||
From 539e584bfaa7e05799f23105500e598e26f62ccf Mon Sep 17 00:00:00 2001
|
From 6b545bc7153ba5ed9810ac55b59b00af2b1dd8e9 Mon Sep 17 00:00:00 2001
|
||||||
From: Nils Philippsen <nils@redhat.com>
|
From: Nils Philippsen <nils@redhat.com>
|
||||||
Date: Thu, 7 Nov 2013 13:11:50 +0100
|
Date: Fri, 8 Nov 2013 14:14:19 +0100
|
||||||
Subject: [PATCH] patch: static-code-check
|
Subject: [PATCH] patch: static-code-check
|
||||||
|
|
||||||
Fix problems found during static code check (Coverity).
|
Fix problems found during static code check (Coverity).
|
||||||
|
|
||||||
Squashed commit of the following:
|
Squashed commit of the following:
|
||||||
|
|
||||||
|
commit 2effab4087246e4eb45f8132e88b23b57b92bb19
|
||||||
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Fri Nov 8 14:02:03 2013 +0100
|
||||||
|
|
||||||
|
file-bmp: don't close foreign FD in ReadImage()
|
||||||
|
|
||||||
|
(cherry picked from commit 4664c1f479e7768d08ed5198bed2251e6aa0464c)
|
||||||
|
|
||||||
commit 8c8f939a7760e606191681003bc868f6aef721d3
|
commit 8c8f939a7760e606191681003bc868f6aef721d3
|
||||||
Author: Nils Philippsen <nils@redhat.com>
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
Date: Thu Nov 7 12:28:28 2013 +0100
|
Date: Thu Nov 7 12:28:28 2013 +0100
|
||||||
@ -72,9 +80,9 @@ Date: Thu Nov 7 11:33:19 2013 +0100
|
|||||||
modules/color-selector-cmyk-lcms.c | 2 +-
|
modules/color-selector-cmyk-lcms.c | 2 +-
|
||||||
modules/gimpcolorwheel.c | 2 +-
|
modules/gimpcolorwheel.c | 2 +-
|
||||||
plug-ins/common/lcms.c | 15 ++++++++----
|
plug-ins/common/lcms.c | 15 ++++++++----
|
||||||
plug-ins/file-bmp/bmp-read.c | 47 ++++++++++++++++++++-----------------
|
plug-ins/file-bmp/bmp-read.c | 48 +++++++++++++++++++------------------
|
||||||
plug-ins/file-jpeg/jpeg-load.c | 12 +++++-----
|
plug-ins/file-jpeg/jpeg-load.c | 12 +++++-----
|
||||||
6 files changed, 50 insertions(+), 40 deletions(-)
|
6 files changed, 50 insertions(+), 41 deletions(-)
|
||||||
|
|
||||||
diff --git a/app/widgets/gimpdeviceinfo-coords.c b/app/widgets/gimpdeviceinfo-coords.c
|
diff --git a/app/widgets/gimpdeviceinfo-coords.c b/app/widgets/gimpdeviceinfo-coords.c
|
||||||
index 0b72a2b..f6b74ca 100644
|
index 0b72a2b..f6b74ca 100644
|
||||||
@ -159,7 +167,7 @@ index 87373fc..5974aaa 100644
|
|||||||
gtk_widget_destroy (dialog);
|
gtk_widget_destroy (dialog);
|
||||||
|
|
||||||
diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c
|
diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c
|
||||||
index 7e70fbd..0055e67 100644
|
index 7e70fbd..e59dfb8 100644
|
||||||
--- a/plug-ins/file-bmp/bmp-read.c
|
--- a/plug-ins/file-bmp/bmp-read.c
|
||||||
+++ b/plug-ins/file-bmp/bmp-read.c
|
+++ b/plug-ins/file-bmp/bmp-read.c
|
||||||
@@ -193,7 +193,7 @@ ReadBMP (const gchar *name,
|
@@ -193,7 +193,7 @@ ReadBMP (const gchar *name,
|
||||||
@ -362,6 +370,14 @@ index 7e70fbd..0055e67 100644
|
|||||||
return image_ID;
|
return image_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -917,7 +920,6 @@ ReadImage (FILE *fd,
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
- fclose (fd);
|
||||||
|
if (bpp <= 8)
|
||||||
|
for (i = 0, j = 0; i < ncols; i++)
|
||||||
|
{
|
||||||
diff --git a/plug-ins/file-jpeg/jpeg-load.c b/plug-ins/file-jpeg/jpeg-load.c
|
diff --git a/plug-ins/file-jpeg/jpeg-load.c b/plug-ins/file-jpeg/jpeg-load.c
|
||||||
index 3609029..4ae7eb2 100644
|
index 3609029..4ae7eb2 100644
|
||||||
--- a/plug-ins/file-jpeg/jpeg-load.c
|
--- a/plug-ins/file-jpeg/jpeg-load.c
|
||||||
|
@ -82,7 +82,7 @@ Summary: GNU Image Manipulation Program
|
|||||||
Name: gimp
|
Name: gimp
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 2.8.8
|
Version: 2.8.8
|
||||||
Release: %{?prerelprefix}2%{dotprerel}%{dotgitrev}%{?dist}
|
Release: %{?prerelprefix}3%{dotprerel}%{dotgitrev}%{?dist}
|
||||||
|
|
||||||
# Compute some version related macros
|
# Compute some version related macros
|
||||||
# Ugly hack, you need to get your quoting backslashes/percent signs straight
|
# Ugly hack, you need to get your quoting backslashes/percent signs straight
|
||||||
@ -623,6 +623,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 08 2013 Nils Philippsen <nils@redhat.com> - 2:2.8.8-3
|
||||||
|
- file-bmp: don't close already closed FD
|
||||||
|
|
||||||
* Thu Nov 07 2013 Nils Philippsen <nils@redhat.com> - 2:2.8.8-2
|
* Thu Nov 07 2013 Nils Philippsen <nils@redhat.com> - 2:2.8.8-2
|
||||||
- fix crash in lcms plug-in
|
- fix crash in lcms plug-in
|
||||||
- fix issues found during static code check
|
- fix issues found during static code check
|
||||||
|
Loading…
Reference in New Issue
Block a user