[gimp] Issue #3630 - postscript plugin crashes



commit bbcc7ca5f55e62404bd69bf2e5b198039ad3f568
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.

 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 935a9bdbc8..4ddcce43b8 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]