[gimp/gimp-2-10] Issue #3630 - postscript plugin crashes



commit 2f2067a5aacae176f5aaf828e15bd4463879062a
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jul 9 15:36:13 2019 +0200

    Issue #3630 - postscript plugin crashes
    
    gsapi_new_instance() now expects a pointer to a NULL-initialized
    pointer. Initialize "void *instance" with NULL. Found by massimo.
    
    (cherry picked from commit bbcc7ca5f55e62404bd69bf2e5b198039ad3f568)

 plug-ins/common/file-ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index 73e8912c32..c6c4ccbf63 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -1585,7 +1585,7 @@ ps_open (const gchar      *filename,
   gboolean      is_pdf;
   gboolean      maybe_epsf = FALSE;
   int           code;
-  void         *instance;
+  void         *instance = NULL;
 
   resolution = loadopt->resolution;
   *llx = *lly = 0;


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