Commit 6148eedd authored by Ell's avatar Ell

Bug 789436 - Fix out of boundary write in file-xmc.c.

Fix stupid mistake in last commit, by me :)

(cherry picked from commit 66b92854)
parent 679ecb80
......@@ -858,7 +858,7 @@ load_thumbnail (const gchar *filename, gint32 thumb_size,
fseek (fp, 12, SEEK_SET);
/* read the number of chunks */
ntoc = READ32 (fp, error)
if (ntoc > (G_MAXINT32 / sizeof (guint32)))
if (ntoc > (G_MAXUINT32 / sizeof (guint32)))
g_set_error (error, 0, 0,
"'%s' seems to have an incorrect toc size.",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment