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



commit 66b92854f03800d9af98f47b808543ef6de86e21
Author: Ell <ell_se yahoo com>
Date:   Tue Oct 24 19:59:42 2017 -0400

    Bug 789436 - Fix out of boundary write in file-xmc.c.
    
    Fix stupid mistake in last commit, by me :)

 plug-ins/common/file-xmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index 2903ccf..1dc30ae 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -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.",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]