g_utf8_validate the iTXt chunk, just to be sure
This commit is contained in:
@ -735,7 +735,7 @@ load_image (const gchar *filename)
|
|||||||
"UTF-8", "ISO-8859-1",
|
"UTF-8", "ISO-8859-1",
|
||||||
NULL, NULL, NULL);
|
NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
else
|
else if (g_utf8_validate (text->text, -1, NULL))
|
||||||
{ /* iTXt */
|
{ /* iTXt */
|
||||||
comment = g_strdup (text->text);
|
comment = g_strdup (text->text);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user