Line
Link Here
|
0 |
-- src/eog-metadata-reader-png.c |
0 |
++ src/eog-metadata-reader-png.c |
Lines 369-376
Link Here
|
369 |
if (priv->state == EMR_CHECK_CRC) { |
369 |
if (priv->state == EMR_CHECK_CRC) { |
370 |
/* Check if it is actually an XMP chunk. |
370 |
/* Check if it is actually an XMP chunk. |
371 |
* Throw it away if not. */ |
371 |
* Throw it away if not. */ |
372 |
if ((memcmp (priv->xmp_chunk, "XML:com.adobe.xmp\0", 18) != 0) |
372 |
if (memcmp (priv->xmp_chunk, "XML:com.adobe.xmp\0\0\0\0\0", 22) != 0) { |
373 |
|| (*(guint32*)(priv->xmp_chunk+18)) != 0) { |
|
|
374 |
priv->state = EMR_SKIP_CRC; |
373 |
priv->state = EMR_SKIP_CRC; |
375 |
g_free (priv->xmp_chunk); |
374 |
g_free (priv->xmp_chunk); |
376 |
priv->xmp_chunk = NULL; |
375 |
priv->xmp_chunk = NULL; |