[eog/gnome-3-4] Fix saving transformed JPEG images that don't transform perfectly



commit 45c2a6728aa9a097ecf05d3e8302a1561acfbde0
Author: Tom Gall <tom gall linaro org>
Date:   Sun Jun 3 14:26:31 2012 +0200

    Fix saving transformed JPEG images that don't transform perfectly
    
    This could lead to a crash or break saving of these files with a
    message about the image exceeding the maximum image dimensions for saving.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675569

 src/eog-image-jpeg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-image-jpeg.c b/src/eog-image-jpeg.c
index f53ec7f..d3d549d 100644
--- a/src/eog-image-jpeg.c
+++ b/src/eog-image-jpeg.c
@@ -120,6 +120,8 @@ init_transform_info (EogImage *image, jpeg_transform_info *info)
 
 	g_return_if_fail (EOG_IS_IMAGE (image));
 
+	memset (info, 0x0, sizeof (jpeg_transform_info));
+
 	priv = image->priv;
 
 	if (priv->trans != NULL && priv->trans_autorotate != NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]