[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2215-g519be80

[email protected] (Nancy Durgin)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, pdfi has been updated
       via  519be80e188ad5a4bbb9dfb721f078b170193d9f (commit)
      from  6d2cc1ab2064254e6734f013908bdb9b5a73dca8 (commit)

----------------------------------------------------------------------
commit 519be80e188ad5a4bbb9dfb721f078b170193d9f
Author: Nancy Durgin <[email protected]>
Date:   Thu Sep 19 08:46:44 2019 -0700

    Oops, fixed segfault
    
    This was supposed to be with the last commit...
    
    Fixes segfault introduced with optcontext cleanup.

diff --git a/pdf/pdf_optcontent.c b/pdf/pdf_optcontent.c
index 70bb0c5..9a7f3b7 100644
--- a/pdf/pdf_optcontent.c
+++ b/pdf/pdf_optcontent.c
@@ -346,6 +346,8 @@ static int pdfi_oc_levels_init(pdf_context *ctx, pdfi_oc_levels_t **levels)
 
 static int pdfi_oc_levels_free(pdf_context *ctx, pdfi_oc_levels_t *levels)
 {
+    if (!levels)
+        return 0;
     gs_free_object(ctx->memory, levels->flags, "pdfi_oc_levels_free (flags)");
     gs_free_object(ctx->memory, levels, "pdfi_oc_levels_free (levels)");
 


Summary of changes:
 pdf/pdf_optcontent.c | 2 ++
 1 file changed, 2 insertions(+)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.