Task #112229 - fixed.err

back to task #112229
download
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/base/gdevp14.c:8818: warning[uninitvar]: Uninitialized variable: comp_value
# 8816|           for (i = pgs->color_component_map.num_components - 1; i >= 0; i--)
# 8817|               comp_value[i] = all;
# 8818|->         map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps);
# 8819|       }
# 8820|   

Error: COMPILER_WARNING (CWE-457):
ghostscript-10.06.0/base/gsicc_manage.c:856:59: warning[-Wmaybe-uninitialized]: ‘icc_profile’ may be used uninitialized
#  856 |                     srcgtag->gray_profiles[gsSRC_TEXTPRO] = icc_profile;
#      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ghostscript-10.06.0/base/gsicc_manage.c: scope_hint: In function ‘gs_setsrcgtagicc’
ghostscript-10.06.0/base/gsicc_manage.c:648:20: note: ‘icc_profile’ was declared here
#  648 |     cmm_profile_t *icc_profile;
#      |                    ^~~~~~~~~~~
#  854|                       break;
#  855|                   case TEXT_GRAY:
#  856|->                     srcgtag->gray_profiles[gsSRC_TEXTPRO] = icc_profile;
#  857|                       srcgtag->gray_rend_cond[gsSRC_TEXTPRO].cmm = cmm;
#  858|                       if (cmm == gsCMM_DEFAULT) {

Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/base/sdctc.c: scope_hint: In function ‘stream_dct_end_passthrough’
ghostscript-10.06.0/base/sdctc.c:89:10: warning[-Wunused-variable]: unused variable ‘EOI’
#   89 |     char EOI[2] = {0xff, 0xD9};
#      |          ^~~
#   87|   stream_dct_end_passthrough(jpeg_decompress_data *jddp)
#   88|   {
#   89|->     char EOI[2] = {0xff, 0xD9};
#   90|   
#   91|       if (jddp != NULL && jddp->PassThrough != 0 && jddp->PassThroughfn != NULL) {

Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevjpeg.c: scope_hint: In function ‘jpeg_put_params’
ghostscript-10.06.0/devices/gdevjpeg.c:237:10: warning[-Wunused-variable]: unused variable ‘embed_profile’
#  237 |     bool embed_profile = jdev->EmbedProfile, bparam;
#      |          ^~~~~~~~~~~~~
#  235|       float qf = jdev->QFactor;
#  236|       float fparam;
#  237|->     bool embed_profile = jdev->EmbedProfile, bparam;
#  238|   
#  239|       ecode = gx_downscaler_read_params(plist, &jdev->downscale, 0);

Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/devices/gdevpdfimg.c:620: error[uninitvar]: Uninitialized variable: buf
#  618|               stream_cursor_write_init(&w, buf, sizeof(buf));
#  619|               status = (*templat->process) (st, &r, &w, true);
#  620|->             stream_write(s, buf, (uint) (w.ptr + 1 - buf));
#  621|           }
#  622|           while (status == 1);

Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/devices/gdevpng.c:433:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ecode’
ghostscript-10.06.0/devices/gdevpng.c:423:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:426:17: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:426:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:429:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:430:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:433:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:433:12: danger: use of uninitialized value ‘ecode’ here
#  431|           ecode = code;
#  432|   
#  433|->     return ecode;
#  434|   }
#  435|   

Error: COMPILER_WARNING (CWE-457):
ghostscript-10.06.0/devices/gdevpng.c: scope_hint: In function ‘png_get_params_mfs’
ghostscript-10.06.0/devices/gdevpng.c:433:12: warning[-Wmaybe-uninitialized]: ‘ecode’ may be used uninitialized
#  433 |     return ecode;
#      |            ^~~~~
ghostscript-10.06.0/devices/gdevpng.c:421:15: note: ‘ecode’ was declared here
#  421 |     int code, ecode;
#      |               ^~~~~
#  431|           ecode = code;
#  432|   
#  433|->     return ecode;
#  434|   }
#  435|   

Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevpsd.c:162:21: warning[-Wunused-variable]: unused variable ‘dsep’
#  162 |     gs_separations *dsep, *ssep;
#      |                     ^~~~
#  160|       gs_devn_params *dst_params = &dev->devn_params;
#  161|       gs_devn_params *src_params = si->params;
#  162|->     gs_separations *dsep, *ssep;
#  163|       equivalent_cmyk_color_params *dequiv = &dev->equiv_cmyk_colors;
#  164|       equivalent_cmyk_color_params *sequiv = si->equiv;

Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevpsd.c: scope_hint: In function ‘update_spots’
ghostscript-10.06.0/devices/gdevpsd.c:162:28: warning[-Wunused-variable]: unused variable ‘ssep’
#  162 |     gs_separations *dsep, *ssep;
#      |                            ^~~~
#  160|       gs_devn_params *dst_params = &dev->devn_params;
#  161|       gs_devn_params *src_params = si->params;
#  162|->     gs_separations *dsep, *ssep;
#  163|       equivalent_cmyk_color_params *dequiv = &dev->equiv_cmyk_colors;
#  164|       equivalent_cmyk_color_params *sequiv = si->equiv;

Error: COMPILER_WARNING (CWE-9001):
ghostscript-10.06.0/pdf/pdf_annot.c:4555:53: warning[-Wcomment]: ‘/*’ within comment
# 4555 |     /*    {"Screen", pdfi_annot_preserve_default},  /* TODO: fts_07_0709.pdf */
# 4553|       {"PolyLine", pdfi_annot_preserve_default},
# 4554|       {"Popup", pdfi_annot_preserve_default},
# 4555|->     /*    {"Screen", pdfi_annot_preserve_default},  /* TODO: fts_07_0709.pdf */
# 4556|       {"Sound", pdfi_annot_preserve_default},
# 4557|       {"Square", pdfi_annot_preserve_default},

Error: COMPILER_WARNING (CWE-9001):
ghostscript-10.06.0/pdf/pdf_pattern.c: scope_hint: In function ‘pdfi_setpattern_type1’
ghostscript-10.06.0/pdf/pdf_pattern.c:506:43: warning[-Wcomment]: ‘/*’ within comment
#  506 |     /* templat.uses_transparency = false; /* disable */
#  504|       templat.uses_transparency = transparency;
#  505|       templat.BM_Not_Normal = BM_Not_Normal;
#  506|->     /* templat.uses_transparency = false; /* disable */
#  507|   
#  508|       code = pdfi_gsave(ctx);