[eog/gnome-2-26] Bug 583448 – Crash on exif data
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Subject: [eog/gnome-2-26] Bug 583448 – Crash on exif data
- Date: Fri, 22 May 2009 07:25:11 -0400 (EDT)
commit 06ada2d5f6106c4e85c2b02dbaadc70638b8206a
Author: Felix Riemann <friemann svn gnome org>
Date: Fri May 22 11:39:09 2009 +0100
Bug 583448 â?? Crash on exif data
Secure Exif data updating with a mutex. Should fix crashes when
reading the Exif block during the update. This was made visible be the
leak fix from commit a10ab24418ce04dbef3d6809105e6572cb07db69 .
---
ChangeLog | 6 ++++++
src/eog-image.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8a25af0..66f8bc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-22 Felix Riemann <friemann svn gnome org>
+
+ * src/eog-image.c (eog_image_set_exif_data):
+ Secure Exif data updating with a mutex. Should fix crashes when
+ reading the Exif block during the update. Fixes bug #583448.
+
2009-05-18 Felix Riemann <friemann svn gnome org>
* configure.ac: Post-release version bump.
diff --git a/src/eog-image.c b/src/eog-image.c
index a02ca82..ff812d2 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -754,10 +754,12 @@ eog_image_set_exif_data (EogImage *img, EogMetadataReader *md_reader)
priv = img->priv;
#ifdef HAVE_EXIF
+ g_mutex_lock (priv->status_mutex);
if (priv->exif) {
exif_data_unref (priv->exif);
}
priv->exif = eog_metadata_reader_get_exif_data (md_reader);
+ g_mutex_unlock (priv->status_mutex);
priv->exif_chunk = NULL;
priv->exif_chunk_len = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]