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



commit 6148eedd400a1b56177a99ebb884498e9001ddf7
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 :)
    
    (cherry picked from commit 66b92854f03800d9af98f47b808543ef6de86e21)

 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 f530ae5..49f7c2b 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -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.",


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