[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1658-g08c1e57

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

----------------------------------------------------------------------
commit 08c1e576fc09fcc7fdf5cd935d91fdfea1e7f0f9
Author: Shailesh Mistry <[email protected]>
Date:   Mon Sep 9 21:41:16 2019 +0100

    Bug 697545 : Propagate error code in pcl_enter_graphics_mode.
    
    Propagate error code in pcl_enter_graphics_mode to prevent trying to use an
    uninitialised variable later leading to SEGV.
    
    Error created using :-
    MEMENTO_FAILAT=15210 ./membin/gpcl6 -sDEVICE=pbmraw -o /dev/null ./tests_private/pcl/pcl5cfts/fts.0720

diff --git a/pcl/pcl/rtgmode.c b/pcl/pcl/rtgmode.c
index 43571f0..c8467a1 100644
--- a/pcl/pcl/rtgmode.c
+++ b/pcl/pcl/rtgmode.c
@@ -362,7 +362,7 @@ pcl_enter_graphics_mode(pcl_state_t * pcs, pcl_gmode_entry_t mode)
     if ((code = pcl_start_raster(src_wid, src_hgt, pcs)) >= 0)
         prstate->graphics_mode = true;
     else
-        code = pcl_grestore(pcs);
+        (void)pcl_grestore(pcs);
     return code;
 }
 


Summary of changes:
 pcl/pcl/rtgmode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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.