[eog] Fix saving transformed JPEG images that don't transform perfectly



commit 11f05ec911b4208faa8f00ecd9f4830ca39fcb25
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]