freebsd-ports/graphics/libexif/files/patch-libexif-exif-data.c
Pav Lucistnik 573ad4e29d - 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
2005-04-13 21:12:51 +00:00

11 lines
403 B
C

--- 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);