Commit 66b92854 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 :)
parent 9a073508
......@@ -857,7 +857,7 @@ load_thumbnail (const gchar *filename,
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