- Fix a braino which leads to crash in GIMP when opening JPEG pictures with

certain EXIF data, like those from SONY, Nikon or Canon digital cameras.

Obtained from:	libexif CVS, exif-data.c rev. 1.68
This commit is contained in:
Pav Lucistnik 2005-04-13 21:12:51 +00:00
parent 0fb1b18f7c
commit 573ad4e29d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133270
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= libexif
PORTVERSION= 0.6.12
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,11 @@
--- libexif/exif-data.c.orig Sun Mar 13 03:27:13 2005
+++ libexif/exif-data.c Wed Apr 13 22:42:35 2005
@@ -231,7 +231,7 @@
* the offset must be an even number. If we need to introduce
* a padding byte, we set it to 0.
*/
- if (s & 1) *ds++;
+ if (s & 1) (*ds)++;
*d = exif_mem_realloc (data->priv->mem, *d, *ds);
if (!*d) {
EXIF_LOG_NO_MEMORY (data->priv->log, "ExifData", *ds);