[gs-commits] ghostpdl branch, master, updated. ghostpdl-9.02-712-g184e6fe

Alex Cherepanov alexcher at ghostscript.com
Mon Nov 7 05:36:17 UTC 2011


The ghostpdl branch, master has been updated
       via  184e6fe81072d94489223ce4d4a9ba085843258c (commit)
      from  850145bc08fd8ebcc4cc9c6827cde750d9ed9acf (commit)

----------------------------------------------------------------------
commit 184e6fe81072d94489223ce4d4a9ba085843258c
Author: Tim Waugh <twaugh at redhat.com>
Date:   Mon Nov 7 00:27:34 2011 -0500

    Bug 692653: fix base pattern color space check.
    
    Old code tested an uninitialized value instead of the base color
    space, found using Coverity.

diff --git a/gs/base/gsptype1.c b/gs/base/gsptype1.c
index 27cfdf1..4297d22 100644
--- a/gs/base/gsptype1.c
+++ b/gs/base/gsptype1.c
@@ -91,7 +91,7 @@ gs_cspace_build_Pattern1(gs_color_space ** ppcspace,
     gs_color_space *pcspace = 0;
 
     if (pbase_cspace != 0) {
-        if (gs_color_space_num_components(pcspace) < 0)         /* Pattern space */
+        if (gs_color_space_num_components(pbase_cspace) < 0)         /* Pattern space */
             return_error(gs_error_rangecheck);
     }
     pcspace = gs_cspace_alloc(pmem, &gs_color_space_type_Pattern);


Summary of changes:
 gs/base/gsptype1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)



More information about the gs-commits mailing list