Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/eog/files: eog-2.24.0-unrecognized-chunks.patch
Date: Sun, 19 Oct 2008 18:57:29
Message-Id: E1KrdSw-0005zV-8d@stork.gentoo.org
eva         08/10/19 18:57:26

  Added:                eog-2.24.0-unrecognized-chunks.patch
  Log:
  New version for GNOME 2.24. Mostly bug fixes, plugins' API now has a gtk-doc documentation, uses gio/gvfs.
  (Portage version: 2.2_rc12/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64, RepoMan options: --force)

Revision  Changes    Path
1.1                  media-gfx/eog/files/eog-2.24.0-unrecognized-chunks.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/eog/files/eog-2.24.0-unrecognized-chunks.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/eog/files/eog-2.24.0-unrecognized-chunks.patch?rev=1.1&content-type=text/plain

Index: eog-2.24.0-unrecognized-chunks.patch
===================================================================
---
	2008-09-30  Felix Riemann  <friemann@×××××××××.org>
	
	* src/eog-metadata-reader-jpg.c: (eog_metadata_reader_jpg_consume):
	Don't overwrite the last read chunk when skipping over unrecognized
	APP1 chunks. Avoids memory corruption and subsequent segfaults.

Index: trunk/src/eog-metadata-reader-jpg.c
====================================================================
--- trunk/src/eog-metadata-reader-jpg.c	2008/09/30 11:58:28	4810
+++ trunk/src/eog-metadata-reader-jpg.c	2008/09/30 13:49:31	4811
@@ -321,6 +321,7 @@
 			case EJA_OTHER:
 			default:
 				/* skip unknown data */
+				chunk = NULL;
 				priv->state = EMR_SKIP_BYTES;
 				break;
 			}