diff options
Diffstat (limited to 'media-gfx/eog/files/eog-2.24.2-sigbus.patch')
-rw-r--r-- | media-gfx/eog/files/eog-2.24.2-sigbus.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/media-gfx/eog/files/eog-2.24.2-sigbus.patch b/media-gfx/eog/files/eog-2.24.2-sigbus.patch new file mode 100644 index 000000000000..6f050f62f809 --- /dev/null +++ b/media-gfx/eog/files/eog-2.24.2-sigbus.patch @@ -0,0 +1,19 @@ +--- + http://bugzilla.gnome.org/show_bug.cgi?id=564526 + https://bugs.gentoo.org/show_bug.cgi?id=250830 + + eog-metadata-reader-png.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/src/eog-metadata-reader-png.c ++++ b/src/eog-metadata-reader-png.c +@@ -369,8 +369,7 @@ + if (priv->state == EMR_CHECK_CRC) { + /* Check if it is actually an XMP chunk. + * Throw it away if not. */ +- if ((memcmp (priv->xmp_chunk, "XML:com.adobe.xmp\0", 18) != 0) +- || (*(guint32*)(priv->xmp_chunk+18)) != 0) { ++ if (memcmp (priv->xmp_chunk, "XML:com.adobe.xmp\0\0\0\0\0", 22) != 0) { + priv->state = EMR_SKIP_CRC; + g_free (priv->xmp_chunk); + priv->xmp_chunk = NULL; |