[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1681-gf40631e

[email protected] (Shailesh Mistry)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  f40631e7592ed1287b2121840b3345acb1bdb1a8 (commit)
      from  91d18aec6a19a0d3b341701d10355278f4703fdd (commit)

----------------------------------------------------------------------
commit f40631e7592ed1287b2121840b3345acb1bdb1a8
Author: Shailesh Mistry <[email protected]>
Date:   Tue Sep 17 10:37:58 2019 +0100

    Bug 697545 : Prevent leak in gx_image_enum_begin.
    
    Prevent leak in gx_image_enum_begin by freeing clip_dev.
    
    Error created using :-
    MEMENTO_FAILAT=15565 ./membin/gpcl6 -sDEVICE=pbmraw -o /dev/null ./tests_private/pcl/pcl5cfts/fts.0954

diff --git a/base/gxipixel.c b/base/gxipixel.c
index 0ce4f9e..14c2af8 100644
--- a/base/gxipixel.c
+++ b/base/gxipixel.c
@@ -1036,6 +1036,7 @@ gx_image_enum_begin(gx_device * dev, const gs_gstate * pgs,
 fail:
     gs_free_object(mem, buffer, "image buffer");
     gs_free_object(mem, penum->clues, "gx_image_enum_begin");
+    gs_free_object(mem, penum->clip_dev, "image clipper");
     gs_free_object(mem, penum, "gx_begin_image1");
     return code;
 }


Summary of changes:
 base/gxipixel.c | 1 +
 1 file changed, 1 insertion(+)
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.