ghostscript-10.05.1-5.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/bin/dvipdf:26:15: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   24|   done
#   25|   
#   26|-> if [ $# -lt 1 -o $# -gt 2 ]; then
#   27|   	echo "Usage: `basename \"$0\"` [options...] input.dvi [output.pdf]" 1>&2
#   28|   	exit 1

Error: SHELLCHECK_WARNING (CWE-477): [#def2]
/usr/bin/ps2epsi:23:15: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   21|   export outfile
#   22|   
#   23|-> if [ $# -lt 1 -o $# -gt 2 ]; then
#   24|   	echo "Usage: `basename \"$0\"` file.ps [file.epsi]" 1>&2
#   25|   	exit 1

Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/ps2pdfwr:23:15: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   21|   done
#   22|   
#   23|-> if [ $# -lt 1 -o $# -gt 2 ]; then
#   24|   	echo "Usage: `basename \"$0\"` [options...] (input.[e]ps|-) [output.pdf|-]" 1>&2
#   25|   	exit 1

Error: COMPILER_WARNING (CWE-681): [#def4]
ghostscript-10.05.1/base/fapi_ft.c: scope_hint: In function ‘gs_fapi_ft_get_scaled_font’
ghostscript-10.05.1/base/fapi_ft.c:1284:86: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘a_font->retrieve_tt_font’ differ in signedness
# 1284 |                     code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
#      |                                                                                      ^~~
#      |                                                                                      |
#      |                                                                                      unsigned int *
ghostscript-10.05.1/base/fapi_ft.c:1284:86: note: expected ‘int *’ but argument is of type ‘unsigned int *’
# 1282|                   if (a_font->retrieve_tt_font != NULL) {
# 1283|                       unsigned int ms;
# 1284|->                     code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
# 1285|                       if (code == 0) {
# 1286|                           data_owned = false;

Error: COMPILER_WARNING (CWE-563): [#def5]
ghostscript-10.05.1/base/gdevdbit.c: scope_hint: In function ‘gx_default_strip_tile_rect_devn’
ghostscript-10.05.1/base/gdevdbit.c:603:11: warning[-Wunused-variable]: unused variable ‘tile_id’
#  603 |     gs_id tile_id = tiles->id;
#      |           ^~~~~~~
#  601|       int rheight = tiles->rep_height;
#  602|       int shift = tiles->shift;
#  603|->     gs_id tile_id = tiles->id;
#  604|       int code;
#  605|   

Error: CPPCHECK_WARNING (CWE-909): [#def6]
ghostscript-10.05.1/base/gdevdevn.c:938: error[uninitStructMember]: Uninitialized struct member: saved_equiv_colors.all_color_info_valid
#  936|           *pdevn_params = saved_devn_params;
#  937|           if (pequiv_colors != NULL)
#  938|->            *pequiv_colors = saved_equiv_colors;
#  939|           return code;
#  940|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
ghostscript-10.05.1/base/gdevdevn.c:1536:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘linelength[i]’
ghostscript-10.05.1/base/gdevdevn.c:1471:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1483:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1492:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1494:33: branch_false: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1496:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1489:27: branch_false: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1522:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1523:9: branch_true: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1522:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1528:8: branch_false: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1528:8: branch_false: following ‘false’ branch (when ‘npcmcolors == 0’)...
ghostscript-10.05.1/base/gdevdevn.c:1534:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1534:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevdevn.c:1535:61: branch_true: ...to here
ghostscript-10.05.1/base/gdevdevn.c:1536:16: danger: use of uninitialized value ‘linelength[i]’ here
# 1534|       for(i = 0; i < nspot; i++) {
# 1535|           gs_snprintf(spotname, gp_file_name_sizeof, "%ss%d", pdevn->fname, i);
# 1536|->         code = devn_write_pcx_file(pdev, spotname, 1, bpc, linelength[i]);
# 1537|           if (code < 0)
# 1538|               goto prn_done;

Error: CPPCHECK_WARNING (CWE-457): [#def8]
ghostscript-10.05.1/base/gdevdrop.c:157: warning[uninitvar]: Uninitialized variables: planes.depth, planes.shift, planes.index
#  155|           /* RJW: This code, like most of ghostscripts planar support,
#  156|            * will only work if every plane has the same depth. */
#  157|->         draster = bitmap_raster(width * planes[0].depth);
#  158|           code = gdev_mem_set_planar(pmdev, num_comp, planes);
#  159|           if (code < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
ghostscript-10.05.1/base/gdevmem.c:959:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/base/gdevmem.c:948:6: enter_function: entry to ‘mem_dev_initialize_device_procs’
ghostscript-10.05.1/base/gdevmem.c:955:11: call_function: inlined call to ‘gdev_mem_functions_for_bits’ from ‘mem_dev_initialize_device_procs’
ghostscript-10.05.1/base/gdevmem.c:957:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevmem.c:959:5: danger: dereference of NULL ‘<unknown>’
#  957|       mem_initialize_device_procs(dev);
#  958|   
#  959|->     set_dev_proc(dev, map_rgb_color, fns->map_rgb_color);
#  960|       set_dev_proc(dev, map_color_rgb, fns->map_color_rgb);
#  961|       set_dev_proc(dev, fill_rectangle, fns->fill_rectangle);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
ghostscript-10.05.1/base/gdevmem.c:976:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/base/gdevmem.c:969:6: enter_function: entry to ‘mem_word_dev_initialize_device_procs’
ghostscript-10.05.1/base/gdevmem.c:972:17: call_function: inlined call to ‘gdev_mem_word_functions_for_bits’ from ‘mem_word_dev_initialize_device_procs’
ghostscript-10.05.1/base/gdevmem.c:974:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevmem.c:976:5: danger: dereference of NULL ‘<unknown>’
#  974|       mem_initialize_device_procs(dev);
#  975|   
#  976|->     set_dev_proc(dev, map_rgb_color, fns->map_rgb_color);
#  977|       set_dev_proc(dev, map_color_rgb, fns->map_color_rgb);
#  978|       set_dev_proc(dev, fill_rectangle, fns->fill_rectangle);

Error: CPPCHECK_WARNING (CWE-457): [#def11]
ghostscript-10.05.1/base/gdevp14.c:7463: warning[uninitvar]: Uninitialized variable: comp_bits
# 7461|       memset(&(pdev->color_info.comp_bits), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7462|       memset(&(pdev->color_info.comp_shift), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7463|->     memcpy(&(pdev->color_info.comp_bits), comp_bits, new_num_comps);
# 7464|       memcpy(&(pdev->color_info.comp_shift), comp_shift, new_num_comps);
# 7465|       group_color->max_color = pdev->color_info.max_color = deep ? 65535 : 255;

Error: CPPCHECK_WARNING (CWE-457): [#def12]
ghostscript-10.05.1/base/gdevp14.c:7464: warning[uninitvar]: Uninitialized variable: comp_shift
# 7462|       memset(&(pdev->color_info.comp_shift), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7463|       memcpy(&(pdev->color_info.comp_bits), comp_bits, new_num_comps);
# 7464|->     memcpy(&(pdev->color_info.comp_shift), comp_shift, new_num_comps);
# 7465|       group_color->max_color = pdev->color_info.max_color = deep ? 65535 : 255;
# 7466|       group_color->max_gray = pdev->color_info.max_gray = deep ? 65535 : 255;

Error: CPPCHECK_WARNING (CWE-457): [#def13]
ghostscript-10.05.1/base/gdevp14.c:8752: warning[uninitvar]: Uninitialized variable: comp_value
# 8750|           for (i = pgs->color_component_map.num_components - 1; i >= 0; i--)
# 8751|               comp_value[i] = all;
# 8752|->         map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps);
# 8753|       }
# 8754|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
ghostscript-10.05.1/base/gdevpipe.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(fname,  mode)’
ghostscript-10.05.1/base/gdevpipe.c:47:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevpipe.c:50:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevpipe.c:55:9: acquire_memory: allocated here
ghostscript-10.05.1/base/gdevpipe.c:55:9: danger: ‘popen(fname,  mode)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   53|        * prototype for popen, so we have to break const here.
#   54|        */
#   55|->     if (gp_file_FILE_set(*file, popen((char *)fname, (char *)mode), do_pclose)) {
#   56|           *file = NULL;
#   57|           return_error(gs_fopen_errno_to_code(errno));

Error: CPPCHECK_WARNING (CWE-190): [#def15]
ghostscript-10.05.1/base/gdevplnx.c:329: error[integerOverflow]: Signed integer overflow for expression '-(1<<3)'.
#  327|               pts->size.y = buffer_size / width_raster;
#  328|           } else {
#  329|->             pts->buffer.raster = buffer_size & -align_bitmap_mod;
#  330|               pts->size.x =
#  331|                   pts->buffer.raster * (8 / edev->plane_dev->color_info.depth);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def16]
ghostscript-10.05.1/base/gdevsclass.c:397:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.05.1/base/gdevsclass.c:378:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:379:16: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:380:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevsclass.c:383:13: branch_false: ...to here
ghostscript-10.05.1/base/gdevsclass.c:383:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:384:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:387:24: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:388:29: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:397:32: danger: pointer ‘dev’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  395|                           psubclass_data->pre_composite_device = NULL;
#  396|                           psubclass_data->saved_finalize_method = NULL;
#  397|->                         while (dev) {
#  398|                               memcpy(&(dev->color_info), &(dev->child->color_info), sizeof(gx_device_color_info));
#  399|                               dev->num_planar_planes = dev->child->num_planar_planes;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def17]
ghostscript-10.05.1/base/gdevsclass.c:438:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.05.1/base/gdevsclass.c:378:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:379:16: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:380:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevsclass.c:383:13: branch_false: ...to here
ghostscript-10.05.1/base/gdevsclass.c:383:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:384:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:437:24: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevsclass.c:437:24: branch_true: ...to here
ghostscript-10.05.1/base/gdevsclass.c:438:32: danger: pointer ‘dev’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  436|                        */
#  437|                       if (psubclass_data->pre_composite_device != NULL) {
#  438|->                         while (dev) {
#  439|                               memcpy(&(dev->color_info), &(dev->child->color_info), sizeof(gx_device_color_info));
#  440|                               dev->num_planar_planes = dev->child->num_planar_planes;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
ghostscript-10.05.1/base/gdevvec.c:121:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line_start.x’
ghostscript-10.05.1/base/gdevvec.c:99:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevvec.c:101:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: following ‘true’ branch (when ‘incomplete_line == 0’)...
ghostscript-10.05.1/base/gdevvec.c:112:21: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:120:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:121:36: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:121:36: danger: use of uninitialized value ‘line_start.x’ here
#  119|                    */
#  120|                   if (vs[0].x == line_end.x) {
#  121|->                     if (vs[0].x == line_start.x &&
#  122|                           coord_between(line_start.y, line_end.y, vs[0].y)
#  123|                           ) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
ghostscript-10.05.1/base/gdevvec.c:128:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line_start.y’
ghostscript-10.05.1/base/gdevvec.c:99:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevvec.c:101:5: branch_false: ...to here
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: following ‘true’ branch (when ‘incomplete_line == 0’)...
ghostscript-10.05.1/base/gdevvec.c:112:21: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.05.1/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:120:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gdevvec.c:127:28: branch_false: ...to here
ghostscript-10.05.1/base/gdevvec.c:127:27: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gdevvec.c:128:36: branch_true: ...to here
ghostscript-10.05.1/base/gdevvec.c:128:36: danger: use of uninitialized value ‘line_start.y’ here
#  126|                       }
#  127|                   } else if (vs[0].y == line_end.y) {
#  128|->                     if (vs[0].y == line_start.y &&
#  129|                           coord_between(line_start.x, line_end.x, vs[0].x)
#  130|                           ) {

Error: COMPILER_WARNING: [#def20]
ghostscript-10.05.1/base/gen_ordered.c: scope_hint: In function ‘htsc_setpoint’
ghostscript-10.05.1/base/gen_ordered.c:915:9: warning[-Wunused-but-set-variable=]: variable ‘kk’ set but not used
#  915 |     int kk = 0;;
#      |         ^~
#  913|   htsc_setpoint(htsc_dig_grid_t *dig_grid, int x, int y, int value)
#  914|   {
#  915|->     int kk = 0;;
#  916|       if (x < 0 || x > dig_grid->width-1 || y < 0 || y > dig_grid->height-1) {
#  917|           kk++;  /* Here to catch issues during debug */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
ghostscript-10.05.1/base/genarch.c:46:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:181:5: call_function: inlined call to ‘section’ from ‘main’
#   44|   section(FILE * f, const char *str)
#   45|   {
#   46|->     fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
#   47|   }
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
ghostscript-10.05.1/base/genarch.c:46:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:181:5: call_function: inlined call to ‘section’ from ‘main’
#   44|   section(FILE * f, const char *str)
#   45|   {
#   46|->     fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
#   47|   }
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
ghostscript-10.05.1/base/genarch.c:58:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:184:5: call_function: inlined call to ‘define_int’ from ‘main’
#   56|   define_int(FILE *f, const char *str, int value)
#   57|   {
#   58|->     fprintf(f, "#define %s %d\n", str, value);
#   59|   }
#   60|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
ghostscript-10.05.1/base/genarch.c:58:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:184:5: call_function: inlined call to ‘define_int’ from ‘main’
#   56|   define_int(FILE *f, const char *str, int value)
#   57|   {
#   58|->     fprintf(f, "#define %s %d\n", str, value);
#   59|   }
#   60|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
ghostscript-10.05.1/base/genarch.c:76:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:214:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘define_int’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘ilog2’ from ‘main’
#   74|   
#   75|       while (m > 1)
#   76|->         ++i, m = (m + 1) >> 1;
#   77|       return i;
#   78|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
ghostscript-10.05.1/base/genarch.c:76:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:214:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘define_int’ from ‘main’
ghostscript-10.05.1/base/genarch.c:215:5: call_function: inlined call to ‘ilog2’ from ‘main’
#   74|   
#   75|       while (m > 1)
#   76|->         ++i, m = (m + 1) >> 1;
#   77|       return i;
#   78|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
ghostscript-10.05.1/base/genarch.c:95:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infname, "r")’
ghostscript-10.05.1/base/genarch.c:83:16: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:87:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:87:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:92:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genarch.c:93:13: branch_true: ...to here
ghostscript-10.05.1/base/genarch.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/base/genarch.c:95:13: danger: ‘fopen(infname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#   93|           l = fread(buffer, 1, 1024, in);
#   94|           if (l > 0)
#   95|->             fwrite(buffer, 1, l, f);
#   96|       }
#   97|       fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
ghostscript-10.05.1/base/genarch.c:95:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infname, "r")’
ghostscript-10.05.1/base/genarch.c:83:16: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:87:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:87:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:92:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genarch.c:93:13: branch_true: ...to here
ghostscript-10.05.1/base/genarch.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/base/genarch.c:95:13: danger: ‘fopen(infname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#   93|           l = fread(buffer, 1, 1024, in);
#   94|           if (l > 0)
#   95|->             fwrite(buffer, 1, l, f);
#   96|       }
#   97|       fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
ghostscript-10.05.1/base/genarch.c:167:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_true: following ‘true’ branch (when ‘argc == 3’)...
ghostscript-10.05.1/base/genarch.c:167:16: branch_true: ...to here
ghostscript-10.05.1/base/genarch.c:167:16: call_function: calling ‘copy_existing_file’ from ‘main’
#  165|   
#  166|       if (argc == 3) {
#  167|->         return copy_existing_file(f, argv[2]);
#  168|       }
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
ghostscript-10.05.1/base/genarch.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_true: following ‘true’ branch (when ‘argc == 3’)...
ghostscript-10.05.1/base/genarch.c:167:16: branch_true: ...to here
ghostscript-10.05.1/base/genarch.c:167:16: call_function: calling ‘copy_existing_file’ from ‘main’
#  165|   
#  166|       if (argc == 3) {
#  167|->         return copy_existing_file(f, argv[2]);
#  168|       }
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
ghostscript-10.05.1/base/genarch.c:170:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:170:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genarch.c:170:5: danger: ‘fopen(fname, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
#  168|       }
#  169|   
#  170|->     fprintf(f, "/* Parameters derived from machine and compiler architecture. */\n");
#  171|       fprintf(f, "/* This file is generated mechanically by genarch.c. */\n");
#  172|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
ghostscript-10.05.1/base/genarch.c:170:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:170:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genarch.c:170:5: danger: ‘fopen(fname, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
#  168|       }
#  169|   
#  170|->     fprintf(f, "/* Parameters derived from machine and compiler architecture. */\n");
#  171|       fprintf(f, "/* This file is generated mechanically by genarch.c. */\n");
#  172|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
ghostscript-10.05.1/base/genarch.c:171:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:171:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genarch.c:171:5: danger: ‘fopen(fname, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
#  169|   
#  170|       fprintf(f, "/* Parameters derived from machine and compiler architecture. */\n");
#  171|->     fprintf(f, "/* This file is generated mechanically by genarch.c. */\n");
#  172|   
#  173|       /* We have to test the size dynamically here, */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
ghostscript-10.05.1/base/genarch.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.05.1/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.05.1/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.05.1/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.05.1/base/genarch.c:171:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genarch.c:171:5: danger: ‘fopen(fname, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
#  169|   
#  170|       fprintf(f, "/* Parameters derived from machine and compiler architecture. */\n");
#  171|->     fprintf(f, "/* This file is generated mechanically by genarch.c. */\n");
#  172|   
#  173|       /* We have to test the size dynamically here, */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
ghostscript-10.05.1/base/genconf.c:777:19: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(fname) + strlen(*pconf.file_prefix) + 1)’
ghostscript-10.05.1/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.05.1/base/genconf.c:765:19: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.05.1/base/genconf.c:777:19: danger: ‘malloc(strlen(fname) + strlen(*pconf.file_prefix) + 1)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  775|           exit(1);
#  776|       }
#  777|->     strcpy(cname, pconf->file_prefix);
#  778|       strcat(cname, fname);
#  779|       for (i = 0; i < pconf->file_names.count; ++i)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
ghostscript-10.05.1/base/genconf.c:795:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.05.1/base/genconf.c:795:5: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  793|           }
#  794|       }
#  795|->     fseek(in, 0L, 2 /*SEEK_END */ );
#  796|       end = ftell(in);
#  797|       if (end < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
ghostscript-10.05.1/base/genconf.c:795:5: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.05.1/base/genconf.c:795:5: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  793|           }
#  794|       }
#  795|->     fseek(in, 0L, 2 /*SEEK_END */ );
#  796|       end = ftell(in);
#  797|       if (end < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
ghostscript-10.05.1/base/genconf.c:796:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:796:11: throw: if ‘ftell’ throws an exception...
ghostscript-10.05.1/base/genconf.c:796:11: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  794|       }
#  795|       fseek(in, 0L, 2 /*SEEK_END */ );
#  796|->     end = ftell(in);
#  797|       if (end < 0) {
#  798|           fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
ghostscript-10.05.1/base/genconf.c:796:11: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:796:11: throw: if ‘ftell’ throws an exception...
ghostscript-10.05.1/base/genconf.c:796:11: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  794|       }
#  795|       fseek(in, 0L, 2 /*SEEK_END */ );
#  796|->     end = ftell(in);
#  797|       if (end < 0) {
#  798|           fclose(in);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
ghostscript-10.05.1/base/genconf.c:805:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:804:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:805:9: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:805:9: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genconf.c:805:9: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  803|       cont = mmalloc(end + 1, "read_file(cont)");
#  804|       if (cont == 0) {
#  805|->         fprintf(stderr, "Can't allocate %d bytes to read %s.\n",
#  806|                   end + 1, cname);
#  807|           mfree(cname, "read_file(cname)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
ghostscript-10.05.1/base/genconf.c:805:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:804:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:805:9: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:805:9: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genconf.c:805:9: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  803|       cont = mmalloc(end + 1, "read_file(cont)");
#  804|       if (cont == 0) {
#  805|->         fprintf(stderr, "Can't allocate %d bytes to read %s.\n",
#  806|                   end + 1, cname);
#  807|           mfree(cname, "read_file(cname)");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
ghostscript-10.05.1/base/genconf.c:810:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.05.1/base/genconf.c:810:5: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  808|           exit(1);
#  809|       }
#  810|->     rewind(in);
#  811|       nread = fread(cont, 1, end, in);
#  812|       if (nread < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
ghostscript-10.05.1/base/genconf.c:810:5: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.05.1/base/genconf.c:810:5: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  808|           exit(1);
#  809|       }
#  810|->     rewind(in);
#  811|       nread = fread(cont, 1, end, in);
#  812|       if (nread < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
ghostscript-10.05.1/base/genconf.c:810:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(end + 1))’
ghostscript-10.05.1/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:803:12: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.05.1/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.05.1/base/genconf.c:810:5: danger: ‘malloc((long unsigned int)(end + 1))’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  808|           exit(1);
#  809|       }
#  810|->     rewind(in);
#  811|       nread = fread(cont, 1, end, in);
#  812|       if (nread < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
ghostscript-10.05.1/base/genconf.c:811:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(end + 1))’
ghostscript-10.05.1/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.05.1/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.05.1/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:803:12: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.05.1/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:812:8: branch_false: following ‘false’ branch (when ‘nread >= 0’)...
ghostscript-10.05.1/base/genconf.c:819:5: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:821:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:822:9: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:822:9: throw: if ‘printf’ throws an exception...
ghostscript-10.05.1/base/genconf.c:811:13: danger: ‘malloc((long unsigned int)(end + 1))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
#  809|       }
#  810|       rewind(in);
#  811|->     nread = fread(cont, 1, end, in);
#  812|       if (nread < 0) {
#  813|           fclose(in);

Error: COMPILER_WARNING: [#def46]
ghostscript-10.05.1/base/genconf.c: scope_hint: In function ‘main’
ghostscript-10.05.1/base/genconf.c:1139:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 60 bytes from a string of length 80
# 1139 |     strncpy(pat.pattern, pstr, MAX_PATTERN);
#      |     ^
# 1137|       pat.upper_case = false;
# 1138|       pat.drop_extn = false;
# 1139|->     strncpy(pat.pattern, pstr, MAX_PATTERN);
# 1140|       write_list_pattern(out, list, &pat);
# 1141|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def47]
ghostscript-10.05.1/base/genconf.c:1159:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(len + 1))’ where non-null expected
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1159:9: danger: argument 1 (‘malloc((long unsigned int)(len + 1))’) from [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
# 1157|           char *alist;
# 1158|   
# 1159|->         strcpy(str, lstr);
# 1160|           if (pat->drop_extn) {
# 1161|               char *dot = str + len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
ghostscript-10.05.1/base/genconf.c:1160:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(xlen + 1))’
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1156:22: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1184:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1186:17: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1186:17: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genconf.c:1160:13: danger: ‘malloc((long unsigned int)(xlen + 1))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 1158|   
# 1159|           strcpy(str, lstr);
# 1160|->         if (pat->drop_extn) {
# 1161|               char *dot = str + len;
# 1162|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def49]
ghostscript-10.05.1/base/genconf.c:1180:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(xlen + 1))’ where non-null expected
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1156:22: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1180:17: danger: argument 1 (‘malloc((long unsigned int)(xlen + 1))’) from [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
# 1178|           /* Check to make sure the item is within the scope of */
# 1179|           /* an appropriate #ifdef, if necessary. */
# 1180|->         alist = strchr(xstr, '(');
# 1181|           if (alist != 0 && alist != xstr && alist[-1] == '_') {
# 1182|               *alist = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
ghostscript-10.05.1/base/genconf.c:1185:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1163:33: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1184:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1185:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1185:21: throw: if ‘fputs’ throws an exception...
ghostscript-10.05.1/base/genconf.c:1185:21: danger: ‘ptr’ leaks here; was allocated at [(28)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/27)
# 1183|               if (strcmp(xstr, macname)) {
# 1184|                   if (*macname)
# 1185|->                     fputs("#endif\n", out);
# 1186|                   fprintf(out, "#ifdef %s\n", xstr);
# 1187|                   strncpy(macname, xstr, MAX_PATTERN);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
ghostscript-10.05.1/base/genconf.c:1186:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1184:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1186:17: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1186:17: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/genconf.c:1186:17: danger: ‘ptr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 1184|                   if (*macname)
# 1185|                       fputs("#endif\n", out);
# 1186|->                 fprintf(out, "#ifdef %s\n", xstr);
# 1187|                   strncpy(macname, xstr, MAX_PATTERN);
# 1188|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
ghostscript-10.05.1/base/genconf.c:1192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1163:33: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1191:17: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1191:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1192:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1192:17: throw: if ‘fputs’ throws an exception...
ghostscript-10.05.1/base/genconf.c:1192:17: danger: ‘ptr’ leaks here; was allocated at [(28)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/27)
# 1190|           } else {
# 1191|               if (*macname) {
# 1192|->                 fputs("#endif\n", out);
# 1193|                   *macname = 0;
# 1194|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
ghostscript-10.05.1/base/genconf.c:1196:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.05.1/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.05.1/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.05.1/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.05.1/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.05.1/base/genconf.c:1196:9: throw: if ‘fputs’ throws an exception...
ghostscript-10.05.1/base/genconf.c:1196:9: danger: ‘ptr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 1194|               }
# 1195|           }
# 1196|->         fputs(xstr, out);
# 1197|           mfree(xstr, "write_list_pattern(xstr)");
# 1198|           mfree(str, "write_list_pattern(str)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
ghostscript-10.05.1/base/gp.h:331:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bitData’
ghostscript-10.05.1/devices/gdevdjtc.c:77:1: enter_function: entry to ‘djet500c_print_page’
ghostscript-10.05.1/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.05.1/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:125:24: acquire_memory: allocated here
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:129:22: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevdjtc.c:215:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:215:5: call_function: calling ‘gp_fputs’ from ‘djet500c_print_page’
#  329|   gp_fputs(const char *string, gp_file *f) {
#  330|       size_t len = strlen(string);
#  331|->     return (f->ops.write)(f, 1, len, string);
#  332|   }
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
ghostscript-10.05.1/base/gp.h:331:12: warning[-Wanalyzer-malloc-leak]: leak of ‘indata1’
ghostscript-10.05.1/devices/gdevtknk.c:125:1: enter_function: entry to ‘tekink_print_page’
ghostscript-10.05.1/devices/gdevtknk.c:144:21: acquire_memory: allocated here
ghostscript-10.05.1/devices/gdevtknk.c:145:8: branch_false: following ‘false’ branch (when ‘indata1’ is non-NULL)...
ghostscript-10.05.1/devices/gdevtknk.c:148:15: branch_false: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:160:22: branch_false: following ‘false’ branch (when ‘scan_line >= scan_lines’)...
ghostscript-10.05.1/devices/gdevtknk.c:160:22: branch_false: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:251:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevtknk.c:255:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:255:8: branch_true: following ‘true’ branch (when the strings are equal)...
ghostscript-10.05.1/devices/gdevtknk.c:256:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:256:9: call_function: calling ‘gp_fputs’ from ‘tekink_print_page’
#  329|   gp_fputs(const char *string, gp_file *f) {
#  330|       size_t len = strlen(string);
#  331|->     return (f->ops.write)(f, 1, len, string);
#  332|   }
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
ghostscript-10.05.1/base/gp_unifs.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
ghostscript-10.05.1/base/gp_unifs.c:95:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:97:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:115:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:125:14: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:125:14: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unifs.c:126:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
ghostscript-10.05.1/base/gp_unifs.c:146:1: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:141:8: branch_true: following ‘true’ branch (when ‘remove != 0’)...
ghostscript-10.05.1/base/gp_unifs.c:142:9: branch_true: ...to here
ghostscript-10.05.1/base/gp_unifs.c:142:9: throw: if ‘unlink’ throws an exception...
ghostscript-10.05.1/base/gp_unifs.c:142:9: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  140|   
#  141|       if (remove)
#  142|->         unlink(fname); /* unlink, not gp_unlink here. */
#  143|   
#  144|       return fp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
ghostscript-10.05.1/base/gp_unifs.c:529:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(work)’
ghostscript-10.05.1/base/gp_unifs.c:499:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:502:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:502:8: branch_true: following ‘true’ branch (when ‘worklen == 0’)...
ghostscript-10.05.1/base/gp_unifs.c:503:34: branch_true: ...to here
ghostscript-10.05.1/base/gp_unifs.c:514:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:518:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:518:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gp_unifs.c:523:19: branch_true: ...to here
ghostscript-10.05.1/base/gp_unifs.c:523:19: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unifs.c:524:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:529:13: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:529:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unifs.c:552:24: branch_false: ...to here
ghostscript-10.05.1/base/gp_unifs.c:552:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gp_unifs.c:567:17: branch_true: ...to here
ghostscript-10.05.1/base/gp_unifs.c:567:17: throw: if the called function throws an exception...
ghostscript-10.05.1/base/gp_unifs.c:529:13: danger: ‘opendir(work)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  527|           }
#  528|   
#  529|->         if (pfen->patlen == pathead + 1) {      /* Listing "foo/?/" -- return this entry */
#  530|               closedir(dp);
#  531|               work[len++] = '/';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
ghostscript-10.05.1/base/gp_unix.c:340:17: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:340:17: throw: if ‘FcInitLoadConfigAndFonts’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:340:17: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  338|   
#  339|       /* Load the fontconfig library */
#  340|->     state->fc = FcInitLoadConfigAndFonts();
#  341|       if (state->fc == NULL) {
#  342|           free(state);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
ghostscript-10.05.1/base/gp_unix.c:348:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:348:16: throw: if ‘FcConfigGetFontDirs’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:348:16: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  346|       }
#  347|   
#  348|->     fdirlist = FcConfigGetFontDirs(state->fc);
#  349|       if (fdirlist == NULL) {
#  350|           FcConfigDestroy(state->fc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
ghostscript-10.05.1/base/gp_unix.c:350:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gp_unix.c:350:9: branch_true: ...to here
ghostscript-10.05.1/base/gp_unix.c:350:9: throw: if ‘FcConfigDestroy’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:350:9: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  348|       fdirlist = FcConfigGetFontDirs(state->fc);
#  349|       if (fdirlist == NULL) {
#  350|->         FcConfigDestroy(state->fc);
#  351|           free(state);
#  352|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
ghostscript-10.05.1/base/gp_unix.c:359:22: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:359:22: throw: if ‘FcStrListNext’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:359:22: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  357|        */
#  358|       code = 0;
#  359|->     while ((dirstr = FcStrListNext(fdirlist)) != NULL && code >= 0) {
#  360|           char dirstr2[gp_file_name_sizeof];
#  361|           dirstr2[0] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
ghostscript-10.05.1/base/gp_unix.c:364:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:359:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gp_unix.c:364:16: throw: if ‘gs_add_control_path’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:364:16: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  362|           strncat(dirstr2, (char *)dirstr, gp_file_name_sizeof - 2);
#  363|           strncat(dirstr2, "/", gp_file_name_sizeof - 1);
#  364|->         code = gs_add_control_path(mem, gs_permit_file_reading, (char *)dirstr2);
#  365|       }
#  366|       FcStrListDone(fdirlist);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
ghostscript-10.05.1/base/gp_unix.c:366:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:366:5: throw: if ‘FcStrListDone’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:366:5: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  364|           code = gs_add_control_path(mem, gs_permit_file_reading, (char *)dirstr2);
#  365|       }
#  366|->     FcStrListDone(fdirlist);
#  367|       if (code < 0) {
#  368|           FcConfigDestroy(state->fc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
ghostscript-10.05.1/base/gp_unix.c:368:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:359:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:361:9: branch_true: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_true: following ‘true’ branch (when ‘code < 0’)...
ghostscript-10.05.1/base/gp_unix.c:368:9: branch_true: ...to here
ghostscript-10.05.1/base/gp_unix.c:368:9: throw: if ‘FcConfigDestroy’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:368:9: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  366|       FcStrListDone(fdirlist);
#  367|       if (code < 0) {
#  368|->         FcConfigDestroy(state->fc);
#  369|           free(state);
#  370|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
ghostscript-10.05.1/base/gp_unix.c:374:11: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:374:11: throw: if ‘FcPatternBuild’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:374:11: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  372|   
#  373|       /* load the font set that we'll iterate over */
#  374|->     pat = FcPatternBuild(NULL,
#  375|               FC_OUTLINE, FcTypeBool, 1,
#  376|               FC_SCALABLE, FcTypeBool, 1,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
ghostscript-10.05.1/base/gp_unix.c:381:10: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:381:10: throw: if ‘FcObjectSetBuild’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:381:10: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  379|   #endif
#  380|               NULL);
#  381|->     os = FcObjectSetBuild(FC_FILE, FC_OUTLINE,
#  382|               FC_FAMILY, FC_WEIGHT, FC_SLANT,
#  383|               NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
ghostscript-10.05.1/base/gp_unix.c:390:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:390:24: throw: if ‘FcFontList’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:390:24: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  388|           ./sanbin/gs -dNODISPLAY -dBATCH -dNOPAUSE -c "/A_Font findfont"
#  389|       */
#  390|->     state->font_list = FcFontList(0, pat, os);
#  391|       FcPatternDestroy(pat);
#  392|       FcObjectSetDestroy(os);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
ghostscript-10.05.1/base/gp_unix.c:391:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:391:5: throw: if ‘FcPatternDestroy’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:391:5: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  389|       */
#  390|       state->font_list = FcFontList(0, pat, os);
#  391|->     FcPatternDestroy(pat);
#  392|       FcObjectSetDestroy(os);
#  393|       if (state->font_list == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
ghostscript-10.05.1/base/gp_unix.c:392:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.05.1/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.05.1/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.05.1/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.05.1/base/gp_unix.c:392:5: throw: if ‘FcObjectSetDestroy’ throws an exception...
ghostscript-10.05.1/base/gp_unix.c:392:5: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  390|       state->font_list = FcFontList(0, pat, os);
#  391|       FcPatternDestroy(pat);
#  392|->     FcObjectSetDestroy(os);
#  393|       if (state->font_list == NULL) {
#  394|           free(state);

Error: CPPCHECK_WARNING (CWE-190): [#def70]
ghostscript-10.05.1/base/gsalloc.c:763: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
#  761|       iimem->large_size = 1;
#  762|   #else
#  763|->     iimem->large_size = ((clump_size / 4) & -obj_align_mod) + 1;
#  764|   #endif
#  765|       iimem->is_controlled = false;

Error: CPPCHECK_WARNING (CWE-190): [#def71]
ghostscript-10.05.1/base/gsalloc.c:1834: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1832|                pfree = *(const obj_header_t * const *)pfree
# 1833|               )
# 1834|->             unused += obj_align_round(pfree[-1].o_size);
# 1835|       }
# 1836|       return unused;

Error: CPPCHECK_WARNING (CWE-190): [#def72]
ghostscript-10.05.1/base/gsalloc.c:1845: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1843|       /* Scan large object freelist. We'll grab an object up to 1/8 bigger */
# 1844|       /* right away, else use best fit of entire scan. */
# 1845|->     obj_size_t aligned_size = obj_align_round(size);
# 1846|       size_t aligned_min_size = aligned_size + sizeof(obj_header_t);
# 1847|       size_t aligned_max_size =

Error: CPPCHECK_WARNING (CWE-190): [#def73]
ghostscript-10.05.1/base/gsalloc.c:1860: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1858|   
# 1859|       while ((pfree = *ppfprev) != 0) {
# 1860|->         obj_size_t free_size = obj_align_round(pfree[-1].o_size);
# 1861|   
# 1862|           if (free_size == aligned_size ||

Error: CPPCHECK_WARNING (CWE-190): [#def74]
ghostscript-10.05.1/base/gsalloc.c:1908: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1906|            */
# 1907|           obj_size_t asize =
# 1908|->             ((lsize + obj_align_mask) & -obj_align_mod) +
# 1909|               sizeof(obj_header_t);
# 1910|           clump_t *cp =

Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
ghostscript-10.05.1/base/gsalloc.c:2223:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_free[i]’
ghostscript-10.05.1/base/gsalloc.c:2198:24: branch_true: following ‘true’ branch (when ‘cur != top’)...
ghostscript-10.05.1/base/gsalloc.c:2202:9: branch_true: ...to here
ghostscript-10.05.1/base/gsalloc.c:2203:13: branch_true: following ‘true’ branch (when ‘size <= 800’)...
ghostscript-10.05.1/base/gsalloc.c:2204:14: branch_true: ...to here
ghostscript-10.05.1/base/gsalloc.c:2205:12: branch_false: following ‘false’ branch (when ‘smallest <= i’)...
ghostscript-10.05.1/base/gsalloc.c:2218:12: branch_false: ...to here
ghostscript-10.05.1/base/gsalloc.c:2218:12: branch_true: following ‘true’ branch (when ‘largest < i’)...
ghostscript-10.05.1/base/gsalloc.c:2219:16: branch_true: ...to here
ghostscript-10.05.1/base/gsalloc.c:2219:16: branch_false: following ‘false’ branch (when ‘largest < 0’)...
ghostscript-10.05.1/base/gsalloc.c:2223:9: branch_false: ...to here
ghostscript-10.05.1/base/gsalloc.c:2223:9: danger: use of uninitialized value ‘num_free[i]’ here
# 2221|               largest = i;
# 2222|           }
# 2223|->         num_free[i]++;
# 2224|       }
# 2225|   

Error: CPPCHECK_WARNING (CWE-190): [#def76]
ghostscript-10.05.1/base/gsalloc.c:2245: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2243|                   /* We're removing an object. */
# 2244|                   *ppfprev = *(obj_header_t **) pfree;
# 2245|->                 removed += obj_align_round(pfree[-1].o_size);
# 2246|                   if (!--count)
# 2247|                       break;

Error: CPPCHECK_WARNING (CWE-190): [#def77]
ghostscript-10.05.1/base/gsalloc.c:2261: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2259|   /* trailing dummy obj_header */
# 2260|   {
# 2261|->     obj_size_t rounded_size = obj_align_round(size);
# 2262|       obj_header_t *pre_obj = obj - 1;
# 2263|       obj_header_t *excess_pre = (obj_header_t*)((char*)obj + rounded_size);

Error: CPPCHECK_WARNING (CWE-190): [#def78]
ghostscript-10.05.1/base/gsalloc.c:2264: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2262|       obj_header_t *pre_obj = obj - 1;
# 2263|       obj_header_t *excess_pre = (obj_header_t*)((char*)obj + rounded_size);
# 2264|->     obj_size_t old_rounded_size = obj_align_round(pre_obj->o_size);
# 2265|       obj_size_t excess_size = old_rounded_size - rounded_size - sizeof(obj_header_t);
# 2266|   

Error: CPPCHECK_WARNING (CWE-190): [#def79]
ghostscript-10.05.1/base/gsalloc.c:2317: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2315|                                    log2_obj_align_mod];
# 2316|           else {
# 2317|->             uint rounded_size = obj_align_round(excess_size);
# 2318|   
# 2319|               pfl = &mem->freelists[LARGE_FREELIST_INDEX];

Error: COMPILER_WARNING: [#def80]
ghostscript-10.05.1/base/gscdevn.c: scope_hint: In function ‘gx_check_process_names_DeviceN’
ghostscript-10.05.1/base/gscdevn.c:683:31: warning[-Wunused-but-set-variable=]: variable ‘num_other’ set but not used
#  683 |     int num_cmyk_process = 0, num_other = 0;
#      |                               ^~~~~~~~~
#  681|   {
#  682|       int i, num_comp, num_spots = 0, num_rgb_process = 0;
#  683|->     int num_cmyk_process = 0, num_other = 0;
#  684|       char **names;
#  685|       const char *pname;

Error: CPPCHECK_WARNING (CWE-562): [#def81]
ghostscript-10.05.1/base/gscrdp.c:567: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  565|               break;
#  566|       }
#  567|->     pcrd->client_data = &data;
#  568|       if (code_lmn > 0)
#  569|           pcrd->EncodeLMN = Encode_default;

Error: CPPCHECK_WARNING (CWE-457): [#def82]
ghostscript-10.05.1/base/gsdevmem.c:188: error[uninitvar]: Uninitialized variable: palette
#  186|           new_dev->palette.size = pcount;
#  187|           new_dev->palette.data = dev_palette;
#  188|->         memcpy(dev_palette, palette, pcount);
#  189|           if (!has_color) {
#  190|               new_dev->color_info.num_components = 1;

Error: CPPCHECK_WARNING (CWE-457): [#def83]
ghostscript-10.05.1/base/gsfunc0.c:1069: warning[uninitvar]: Uninitialized variable: TT0
# 1067|               TT1[i] = 0;
# 1068|       }
# 1069|->     *mask = tensor_dimension_monotonity(TT0, TT1, ii, i0, pole, 0,
# 1070|                           count_of(pole) / 4, 1, pfn->params.Order);
# 1071|       return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def84]
ghostscript-10.05.1/base/gsfunc0.c:1069: warning[uninitvar]: Uninitialized variable: TT1
# 1067|               TT1[i] = 0;
# 1068|       }
# 1069|->     *mask = tensor_dimension_monotonity(TT0, TT1, ii, i0, pole, 0,
# 1070|                           count_of(pole) / 4, 1, pfn->params.Order);
# 1071|       return 0;

Error: COMPILER_WARNING: [#def85]
ghostscript-10.05.1/base/gsgcache.c: scope_hint: In function ‘gs_glyph_cache_elem__locate’
ghostscript-10.05.1/base/gsgcache.c:136:9: warning[-Wunused-but-set-variable=]: variable ‘count’ set but not used
#  136 |     int count = 0; /* debug purpose only */
#      |         ^~~~~
#  134|   {   /* If not fond, returns an unlocked element. */
#  135|       gs_glyph_cache_elem **e = &self->list, **p_unlocked = NULL;
#  136|->     int count = 0; /* debug purpose only */
#  137|   
#  138|       for (; *e != 0; e = &(*e)->next, count++) {

Error: COMPILER_WARNING: [#def86]
ghostscript-10.05.1/base/gsicc_cache.c:1552:44: warning[-Wunused-but-set-variable=]: variable ‘num_process’ set but not used
# 1552 |     int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
#      |                                            ^~~~~~~~~~~
# 1550|       gsicc_namedcolortable_t *namedcolor_table;
# 1551|       unsigned int num_entries;
# 1552|->     int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# 1553|       gs_color_space_index type = gs_color_space_get_index(pcs);
# 1554|       char **names = NULL;

Error: COMPILER_WARNING: [#def87]
ghostscript-10.05.1/base/gsicc_cache.c: scope_hint: In function ‘gsicc_support_named_color’
ghostscript-10.05.1/base/gsicc_cache.c:1552:59: warning[-Wunused-but-set-variable=]: variable ‘num_other’ set but not used
# 1552 |     int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
#      |                                                           ^~~~~~~~~
# 1550|       gsicc_namedcolortable_t *namedcolor_table;
# 1551|       unsigned int num_entries;
# 1552|->     int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# 1553|       gs_color_space_index type = gs_color_space_get_index(pcs);
# 1554|       char **names = NULL;

Error: CPPCHECK_WARNING (CWE-562): [#def88]
ghostscript-10.05.1/base/gsicc_create.c:1546: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1544|       if (lutatobparts->matrix == NULL) {
# 1545|           gsicc_create_copy_matrix3(cam, (float*) &temp_matrix);
# 1546|->         lutatobparts->matrix = &temp_matrix;
# 1547|       } else {
# 1548|           if (yonly) {

Error: CPPCHECK_WARNING (CWE-562): [#def89]
ghostscript-10.05.1/base/gsicc_create.c:1577: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1575|               matrixmult(cam, 3, 3, &(lutatobparts->matrix->cu.u), 3, 3,
# 1576|                       &(temp_matrix.cu.u));
# 1577|->             lutatobparts->matrix = &temp_matrix;
# 1578|           }
# 1579|       }

Error: CPPCHECK_WARNING (CWE-562): [#def90]
ghostscript-10.05.1/base/gsicc_create.c:1655: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1653|       ones_vec.w = 1;
# 1654|       gsicc_make_diag_matrix(&ident_matrix,&ones_vec);
# 1655|->     icc_luta2bparts->matrix = &ident_matrix;
# 1656|       /* Now create the profile */
# 1657|       if (icc_luta2bparts->num_in == 1 ) {

Error: CPPCHECK_WARNING (CWE-562): [#def91]
ghostscript-10.05.1/base/gsicc_create.c:2152: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2150|           /* Table can stay as is. Handle the ABC/LMN portions via the curves
# 2151|              matrix curves operation */
# 2152|->         icc_luta2bparts->matrix = &matrix_input_trans;
# 2153|           code = gsicc_create_abc_merge(icc_luta2bparts, &(pcie->common.MatrixLMN),
# 2154|                                   &(pcie->MatrixABC), has_abc_procs,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
ghostscript-10.05.1/base/gsicc_manage.c:577:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘profile_data’
ghostscript-10.05.1/base/gsicc_manage.c:576:13: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:576:13: branch_true: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:577:13: danger: dereference of NULL ‘profile_data’
#  575|           } else {
#  576|               rc_adjust(profile_data, delta, name_str);
#  577|->             gx_monitor_leave(profile_data->lock);
#  578|           }
#  579|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
ghostscript-10.05.1/base/gsicc_manage.c:1691:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gsicc_new_namelist(mem)’
ghostscript-10.05.1/base/gsicc_manage.c:1585:1: enter_function: entry to ‘gsicc_set_device_profile_colorants’
ghostscript-10.05.1/base/gsicc_manage.c:1601:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1602:12: branch_true: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1651:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1659:22: branch_false: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1659:22: call_function: calling ‘gsicc_new_namelist’ from ‘gsicc_set_device_profile_colorants’
ghostscript-10.05.1/base/gsicc_manage.c:1659:22: return_function: returning to ‘gsicc_set_device_profile_colorants’ from ‘gsicc_new_namelist’
ghostscript-10.05.1/base/gsicc_manage.c:1663:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1665:9: branch_false: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1671:16: branch_true: following ‘true’ branch (when ‘pch’ is non-NULL)...
ghostscript-10.05.1/base/gsicc_manage.c:1672:17: branch_true: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1672:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1672:16: branch_false: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1679:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1686:26: branch_false: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1686:26: call_function: calling ‘gsicc_new_colorname’ from ‘gsicc_set_device_profile_colorants’
ghostscript-10.05.1/base/gsicc_manage.c:1686:26: return_function: returning to ‘gsicc_set_device_profile_colorants’ from ‘gsicc_new_colorname’
ghostscript-10.05.1/base/gsicc_manage.c:1687:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsicc_manage.c:1690:13: branch_false: ...to here
ghostscript-10.05.1/base/gsicc_manage.c:1691:13: danger: dereference of NULL ‘gsicc_new_namelist(mem)’
# 1689|               /* Set our current entry to this one */
# 1690|               *curr_entry = name_entry;
# 1691|->             spot_names->count += 1;
# 1692|               name_entry->length = strlen(temp_ptr);
# 1693|               name_entry->name = (char *) gs_alloc_bytes(mem, name_entry->length,

Error: GCC_ANALYZER_WARNING: [#def94]
ghostscript-10.05.1/base/gsiorom.c:235:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.05.1/base/gsiorom.c:140:1: enter_function: entry to ‘s_block_read_seek’
ghostscript-10.05.1/base/gsiorom.c:147:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsiorom.c:159:30: call_function: calling ‘s_block_read_process’ from ‘s_block_read_seek’
#  233|               return ERRC;
#  234|           if (need_copy) {
#  235|->             memcpy(pw->ptr+1, dest, max_count);
#  236|               count = max_count;
#  237|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
ghostscript-10.05.1/base/gsmalloc.c:131:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mem’
ghostscript-10.05.1/base/gsmalloc.c:115:31: acquire_memory: allocated here
ghostscript-10.05.1/base/gsmalloc.c:117:8: branch_false: following ‘false’ branch (when ‘mem’ is non-NULL)...
ghostscript-10.05.1/base/gsmalloc.c:120:5: branch_false: ...to here
ghostscript-10.05.1/base/gsmalloc.c:131:20: throw: if ‘gx_monitor_alloc’ throws an exception...
ghostscript-10.05.1/base/gsmalloc.c:131:20: danger: ‘mem’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  129|       /* Allocate a monitor to serialize access to structures within */
#  130|       mem->monitor = NULL;	/* prevent use during initial allocation */
#  131|->     mem->monitor = gx_monitor_label(gx_monitor_alloc((gs_memory_t *)mem), "heap");
#  132|       if (mem->monitor == NULL) {
#  133|           free(mem);

Error: CPPCHECK_WARNING (CWE-590): [#def96]
ghostscript-10.05.1/base/gsmalloc.c:366: error[autovarInvalidDeallocation]: Deallocation of an auto-variable ([) results in undefined behaviour.
#  364|       gs_alloc_fill(bp, gs_alloc_fill_free,
#  365|                     bp->size + sizeof(gs_malloc_block_t));
#  366|->     free(bp);
#  367|   #else
#  368|       bp = mmem->allocated; /* If 'finalize' releases a memory,

Error: COMPILER_WARNING (CWE-457): [#def97]
ghostscript-10.05.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.05.1/base/gdevprn.h:24: included_from: Included from here.
ghostscript-10.05.1/contrib/japanese/gdev10v.c:33: included_from: Included from here.
ghostscript-10.05.1/contrib/japanese/gdev10v.c: scope_hint: In function ‘bj10v_print_page’
ghostscript-10.05.1/base/gsmalloc.h:58:21: warning[-Wmaybe-uninitialized]: ‘in’ may be used uninitialized
#   58 |   gs_free_object(mem->non_gc_memory, data, cname)
ghostscript-10.05.1/contrib/japanese/gdev10v.c:202:15: note: ‘in’ was declared here
#  202 |         byte *in, *out;
#      |               ^~
#   56|     (void *)gs_alloc_byte_array(mem->non_gc_memory, nelts, esize, cname)
#   57|   #define gs_free(mem, data, nelts, esize, cname)\
#   58|->   gs_free_object(mem->non_gc_memory, data, cname)
#   59|   
#   60|   /* ---------------- Locking ---------------- */

Error: COMPILER_WARNING (CWE-457): [#def98]
ghostscript-10.05.1/base/gsmalloc.h:58:21: warning[-Wmaybe-uninitialized]: ‘out’ may be used uninitialized
#   58 |   gs_free_object(mem->non_gc_memory, data, cname)
ghostscript-10.05.1/contrib/japanese/gdev10v.c:202:20: note: ‘out’ was declared here
#  202 |         byte *in, *out;
#      |                    ^~~
#   56|     (void *)gs_alloc_byte_array(mem->non_gc_memory, nelts, esize, cname)
#   57|   #define gs_free(mem, data, nelts, esize, cname)\
#   58|->   gs_free_object(mem->non_gc_memory, data, cname)
#   59|   
#   60|   /* ---------------- Locking ---------------- */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
ghostscript-10.05.1/base/gsparaml.c:760:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str’
ghostscript-10.05.1/base/gsparaml.c:1056:5: enter_function: entry to ‘gs_param_list_dump’
ghostscript-10.05.1/base/gsparaml.c:1065:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gsparaml.c:1068:13: branch_true: ...to here
ghostscript-10.05.1/base/gsparaml.c:1068:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsparaml.c:1072:9: branch_false: ...to here
ghostscript-10.05.1/base/gsparaml.c:1075:16: call_function: inlined call to ‘gs_param_list_to_string’ from ‘gs_param_list_dump’
#  758|       out->last = str[slen-1];
#  759|       if (out->value != NULL) {
#  760|->         memcpy(out->value, str, slen);
#  761|           out->value += slen;
#  762|           *out->value = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
ghostscript-10.05.1/base/gsptype1.c:1012:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1010|        * Otherwise we want to use image type 1 processing.
# 1011|        */
# 1012|->     int transparent = ppmap->white_index < (1 << (pbitmap->num_comps * pbitmap->pix_depth));
# 1013|   
# 1014|       /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
ghostscript-10.05.1/base/gsptype1.c:1159:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/base/gsptype1.c:1120:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsptype1.c:1123:12: branch_false: ...to here
ghostscript-10.05.1/base/gsptype1.c:1124:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsptype1.c:1127:5: branch_false: ...to here
ghostscript-10.05.1/base/gsptype1.c:1130:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsptype1.c:1134:20: branch_false: ...to here
ghostscript-10.05.1/base/gsptype1.c:1139:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsptype1.c:1146:9: branch_false: ...to here
ghostscript-10.05.1/base/gsptype1.c:1154:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gsptype1.c:1159:9: branch_false: ...to here
ghostscript-10.05.1/base/gsptype1.c:1159:9: danger: dereference of NULL ‘<unknown>’
# 1157|       }
# 1158|   
# 1159|->     if (ppmap->pcspace != 0)
# 1160|           code = image_PaintProc(&pdc->ccolor, pgs);
# 1161|       else {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def102]
ghostscript-10.05.1/base/gssprintf.c:583:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
ghostscript-10.05.1/base/gssprintf.c:1498:5: enter_function: entry to ‘gs_vsprintf’
ghostscript-10.05.1/base/gssprintf.c:1507:10: call_function: calling ‘apr_vformatter’ from ‘gs_vsprintf’
#  581|       if (apr_isalpha(*p)) {
#  582|           *len = strlen(p);
#  583|->         memcpy(buf, p, *len + 1);
#  584|           *is_negative = FALSE;
#  585|           return (buf);

Error: COMPILER_WARNING (CWE-1164): [#def103]
ghostscript-10.05.1/base/gstiffio.c:180:1: warning[-Wunused-function]: ‘gs_tifsWarningHandlerEx’ defined but not used
#  180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
#      | ^~~~~~~~~~~~~~~~~~~~~~~
#  178|   
#  179|   static void
#  180|-> gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
#  181|   {
#  182|       tifs_io_private *tiffio = (tifs_io_private *)client_data;

Error: COMPILER_WARNING (CWE-1164): [#def104]
ghostscript-10.05.1/base/gstiffio.c:196:1: warning[-Wunused-function]: ‘gs_tifsErrorHandlerEx’ defined but not used
#  196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
#      | ^~~~~~~~~~~~~~~~~~~~~
#  194|   
#  195|   static void
#  196|-> gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
#  197|   {
#  198|       tifs_io_private *tiffio = (tifs_io_private *)client_data;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def105]
ghostscript-10.05.1/base/gstype1.c:198:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.05.1/base/gstype1.c:158:5: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gstype1.c:160:8: branch_true: ...to here
ghostscript-10.05.1/base/gstype1.c:160:8: branch_true: following ‘true’ branch (when ‘pgd’ is NULL)...
ghostscript-10.05.1/base/gstype1.c:161:9: branch_true: ...to here
ghostscript-10.05.1/base/gstype1.c:214:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype1.c:170:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype1.c:173:9: branch_false: ...to here
ghostscript-10.05.1/base/gstype1.c:173:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gstype1.c:173:9: branch_true: ...to here
ghostscript-10.05.1/base/gstype1.c:174:12: branch_true: following ‘true’ branch (when ‘c <= 31’)...
ghostscript-10.05.1/base/gstype1.c:187:13: branch_true: ...to here
ghostscript-10.05.1/base/gstype1.c:197:17: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype1.c:198:21: branch_false: ...to here
ghostscript-10.05.1/base/gstype1.c:198:21: danger: out-of-bounds read from byte -4 till byte -1 but ‘cstack’ starts at byte 0
#  196|               case c_callsubr:
#  197|                   CS_CHECK_POP(csp, cstack);
#  198|->                 c = fixed2int_var(*csp) + pdata->subroutineNumberBias;
#  199|                   code = pdata->procs.subr_data
#  200|                       (pfont, c, false, &ipsp[1].cs_data);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def106]
ghostscript-10.05.1/base/gstype2.c:234:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.05.1/base/gstype2.c:172:5: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gstype2.c:174:8: branch_true: ...to here
ghostscript-10.05.1/base/gstype2.c:174:8: branch_true: following ‘true’ branch (when ‘pgd’ is NULL)...
ghostscript-10.05.1/base/gstype2.c:175:9: branch_true: ...to here
ghostscript-10.05.1/base/gstype2.c:249:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype2.c:185:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype2.c:188:15: branch_false: ...to here
ghostscript-10.05.1/base/gstype2.c:190:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gstype2.c:190:9: branch_true: ...to here
ghostscript-10.05.1/base/gstype2.c:191:12: branch_false: following ‘false’ branch (when ‘c <= 31’)...
ghostscript-10.05.1/base/gstype2.c:222:9: branch_false: ...to here
ghostscript-10.05.1/base/gstype2.c:232:20: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gstype2.c:233:21: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gstype2.c:234:25: danger: out-of-bounds read from byte -4 till byte -1 but ‘cstack’ starts at byte 0
#  232|                   if (CS_CHECK_CSTACK_BOUNDS(csp, cstack)) {
#  233|                       CS_CHECK_IPSTACK(&(ipsp[1]), pcis->ipstack);
#  234|->                     c = fixed2int_var(*csp) + pdata->subroutineNumberBias;
#  235|                       code = pdata->procs.subr_data
#  236|                           (pfont, c, false, &ipsp[1].cs_data);

Error: CPPCHECK_WARNING (CWE-457): [#def107]
ghostscript-10.05.1/base/gstype42.c:826: error[legacyUninitvar]: Uninitialized variable: code
#  824|   
#  825|       if (code2 < 0) code = gs_note_error(code2);
#  826|->     return code;
#  827|   }
#  828|   

Error: CPPCHECK_WARNING (CWE-476): [#def108]
ghostscript-10.05.1/base/gxblend.c:3508: error[ctunullpointer]: Null pointer dereference: table
# 3506|   {
# 3507|       byte     top = idx>>8;
# 3508|->     uint16_t a   = table[top];
# 3509|       int      b   = table[top+1]-a;
# 3510|   

Error: CPPCHECK_WARNING (CWE-190): [#def109]
ghostscript-10.05.1/base/gxccman.c:82: error[integerOverflow]: Signed integer overflow for expression '-((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))&((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))-1)?(((int)sizeof(struct cached_char))+((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))-1))/(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))*(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8)):(((int)sizeof(struct cached_char))+((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))-1))&-(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8)))'.
#   80|          cache character memory before filling the table.  The searching
#   81|          code uses an empty table entry as a sentinel. */
#   82|->     chsize = max(chsize, ROUND_UP(bmax, sizeof_cached_char) / sizeof_cached_char + 1);
#   83|   
#   84|       /* Round up chsize to a power of 2. */

Error: CPPCHECK_WARNING (CWE-190): [#def110]
ghostscript-10.05.1/base/gxccman.c:762: error[integerOverflow]: Signed integer overflow for expression '-(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))'.
#  760|       cc_set_raster(cc, nraster);
#  761|       {
#  762|->         uint diff = ROUND_DOWN(cc->head.size - sizeof_cached_char -
#  763|                                  nraster * cc->height,
#  764|                                  align_cached_char_mod);

Error: CPPCHECK_WARNING (CWE-190): [#def111]
ghostscript-10.05.1/base/gxccman.c:866: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
#  864|               char_cache_chunk *cck_prev = dir->ccache.chunks;
#  865|               char_cache_chunk *cck;
#  866|->             uint cksize = ROUND_UP(dir->ccache.bmax / 5 + 1, obj_align_mod);
#  867|               uint tsize = ROUND_UP(dir->ccache.bmax - dir->ccache.bspace, obj_align_mod);
#  868|               byte *cdata;

Error: CPPCHECK_WARNING (CWE-190): [#def112]
ghostscript-10.05.1/base/gxccman.c:867: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
#  865|               char_cache_chunk *cck;
#  866|               uint cksize = ROUND_UP(dir->ccache.bmax / 5 + 1, obj_align_mod);
#  867|->             uint tsize = ROUND_UP(dir->ccache.bmax - dir->ccache.bspace, obj_align_mod);
#  868|               byte *cdata;
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def113]
ghostscript-10.05.1/base/gxchar.c:412:16: warning[-Wanalyzer-infinite-loop]: infinite loop
#  410|           /* Reduce the scale to fit into alpha bits. */
#  411|           excess = log2_scale.x + log2_scale.y - alpha_bits;
#  412|->         while (excess > 0) {
#  413|               if (log2_scale.y > 0) {
#  414|                   log2_scale.y --;

Error: COMPILER_WARNING: [#def114]
ghostscript-10.05.1/base/gxclimag.c: scope_hint: In function ‘clist_image_plane_data’
ghostscript-10.05.1/base/gxclimag.c:1230:20: warning[-Wunused-but-set-variable=]: variable ‘iy’ set but not used
# 1230 |             int i, iy, ih, xskip, xoff, nrows;
#      |                    ^~
# 1228|               int num_planes = pie->num_planes;
# 1229|               uint offsets[GS_IMAGE_MAX_COMPONENTS];
# 1230|->             int i, iy, ih, xskip, xoff, nrows;
# 1231|               uint bytes_per_plane, bytes_per_row, rows_per_cmd;
# 1232|   

Error: COMPILER_WARNING: [#def115]
ghostscript-10.05.1/base/gxclipm.c:181:21: warning[-Wunused-but-set-variable=]: variable ‘sdata’ set but not used
#  181 |         const byte *sdata;\
#      |                     ^~~~~
ghostscript-10.05.1/base/gxclipm.c:270:5: note: in expansion of macro ‘DECLARE_MASK_COPY’
#  270 |     DECLARE_MASK_COPY;
#      |     ^~~~~~~~~~~~~~~~~
#  179|    */
#  180|   #define DECLARE_MASK_COPY\
#  181|->         const byte *sdata;\
#  182|           int sx, mx0, my0, mx1, my1
#  183|   #define FIT_MASK_COPY(data, sourcex, raster, vx, vy, vw, vh)\

Error: COMPILER_WARNING: [#def116]
ghostscript-10.05.1/base/gxclipm.c: scope_hint: In function ‘clip_runs_enumerate’
ghostscript-10.05.1/base/gxclipm.c:182:13: warning[-Wunused-but-set-variable=]: variable ‘sx’ set but not used
#  182 |         int sx, mx0, my0, mx1, my1
#      |             ^~
ghostscript-10.05.1/base/gxclipm.c:270:5: note: in expansion of macro ‘DECLARE_MASK_COPY’
#  270 |     DECLARE_MASK_COPY;
#      |     ^~~~~~~~~~~~~~~~~
#  180|   #define DECLARE_MASK_COPY\
#  181|           const byte *sdata;\
#  182|->         int sx, mx0, my0, mx1, my1
#  183|   #define FIT_MASK_COPY(data, sourcex, raster, vx, vy, vw, vh)\
#  184|           BEGIN\

Error: GCC_ANALYZER_WARNING (CWE-457): [#def117]
ghostscript-10.05.1/base/gxclist.c:276:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hsize’
ghostscript-10.05.1/base/gxclist.c:269:12: branch_false: following ‘false’ branch (when ‘hc <= 2’)...
ghostscript-10.05.1/base/gxclist.c:271:8: branch_false: ...to here
ghostscript-10.05.1/base/gxclist.c:271:8: branch_false: following ‘false’ branch (when ‘hc > 2’)...
ghostscript-10.05.1/base/gxclist.c:273:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclist.c:276:5: danger: use of uninitialized value ‘hsize’ here
#  274|       cdev->tile_max_count = hc - (hc >> 2);
#  275|       cdev->tile_table = (tile_hash *) data;
#  276|->     data += hsize;
#  277|       bits_size -= hsize;
#  278|       gx_bits_cache_chunk_init(cdev->cache_chunk, data, bits_size);

Error: COMPILER_WARNING: [#def118]
ghostscript-10.05.1/base/gxclmem.c:951:25: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
#  949|                       back_up = f->rd.limit - f->rd.ptr;
#  950|                       for (i = 0; i < back_up; i++)
#  951|->                         *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
#  952|                   }
#  953|                   f->rd.ptr = (const byte *)bp->phys_blk->link->data - back_up - 1;

Error: COMPILER_WARNING: [#def119]
ghostscript-10.05.1/base/gxclmem.c: scope_hint: In function ‘memfile_get_pdata.isra.0’
ghostscript-10.05.1/base/gxclmem.c:951:67: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
#  951 |                         *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
#      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
ghostscript-10.05.1/base/gxclmem.c:21: included_from: Included from here.
ghostscript-10.05.1/base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
#   56 |     char data[MEMFILE_DATA_SIZE];
#      |          ^~~~
#  949|                       back_up = f->rd.limit - f->rd.ptr;
#  950|                       for (i = 0; i < back_up; i++)
#  951|->                         *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
#  952|                   }
#  953|                   f->rd.ptr = (const byte *)bp->phys_blk->link->data - back_up - 1;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def120]
ghostscript-10.05.1/base/gxclmem.c:1167:20: warning[-Wanalyzer-deref-before-check]: check of ‘pphys’ for NULL after already dereferencing it
ghostscript-10.05.1/base/gxclmem.c:1155:8: branch_true: following ‘true’ branch (when ‘bp’ is non-NULL)...
ghostscript-10.05.1/base/gxclmem.c:1157:27: branch_true: ...to here
ghostscript-10.05.1/base/gxclmem.c:1160:30: branch_true: following ‘true’ branch (when ‘tmpbp’ is non-NULL)...
ghostscript-10.05.1/base/gxclmem.c:1161:21: branch_true: ...to here
ghostscript-10.05.1/base/gxclmem.c:1165:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxclmem.c:1165:12: branch_true: ...to here
ghostscript-10.05.1/base/gxclmem.c:1167:20: danger: pointer ‘pphys’ is checked for NULL here but it was already dereferenced at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
# 1165|           if (pphys->data_limit != NULL) {
# 1166|               /* the data was compressed, free the chain of blocks             */
# 1167|->             while (pphys != NULL) {
# 1168|                   PHYS_MEMFILE_BLK *tmpphys = pphys->link;
# 1169|   

Error: COMPILER_WARNING: [#def121]
ghostscript-10.05.1/base/gxclmem.h:56:10: note[note]: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
#   54|                           /* data_limit is NULL if not compressed */
#   55|       char data_spare[4];		/* used during de-compress      */
#   56|->     char data[MEMFILE_DATA_SIZE];
#   57|   } PHYS_MEMFILE_BLK;
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def122]
ghostscript-10.05.1/base/gxclrast.c:1492:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.05.1/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:651:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:653:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:657:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:661:12: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:662:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:666:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:678:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:678:9: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:686:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:723:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gxclrast.c:726:13: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1490:28: branch_true: following ‘true’ branch (when ‘data_height == 0’)...
ghostscript-10.05.1/base/gxclrast.c:1492:36: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1492:36: danger: use of uninitialized value ‘image_info’ here
# 1490|                           if (data_height == 0) {
# 1491|                               if_debug0m('L', mem, " done image\n");
# 1492|->                             code = gx_image_end(image_info, true);
# 1493|                               if (code < 0)
# 1494|                                   goto out;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def123]
ghostscript-10.05.1/base/gxclrast.c:1527:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.05.1/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:651:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:653:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:657:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:661:12: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:662:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:666:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:678:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:678:9: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:686:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:723:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gxclrast.c:726:13: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1525:28: branch_true: following ‘true’ branch (when ‘data_height == 0’)...
ghostscript-10.05.1/base/gxclrast.c:1527:36: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1527:36: danger: use of uninitialized value ‘image_info’ here
# 1525|                           if (data_height == 0) {
# 1526|                               if_debug0m('L', mem, " done image\n");
# 1527|->                             code = gx_image_end(image_info, true);
# 1528|                               if (code < 0)
# 1529|                                   goto out;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def124]
ghostscript-10.05.1/base/gxclrast.c:3401:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vs[1]’
ghostscript-10.05.1/base/gxclrast.c:511:1: enter_function: entry to ‘clist_playback_band’
ghostscript-10.05.1/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:651:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:653:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:657:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:661:12: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:662:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:666:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:678:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:678:9: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:686:5: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:719:8: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:723:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/gxclrast.c:726:13: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:734:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxclrast.c:735:17: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:735:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxclrast.c:736:28: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:736:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:747:15: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:2019:20: branch_true: following ‘true’ branch (when ‘op == 241’)...
ghostscript-10.05.1/base/gxclrast.c:2020:21: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1954:24: branch_true: following ‘true’ branch (when ‘in_path == 0’)...
ghostscript-10.05.1/base/gxclrast.c:1955:34: branch_true: ...to here
ghostscript-10.05.1/base/gxclrast.c:1962:33: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclrast.c:2012:28: branch_false: ...to here
ghostscript-10.05.1/base/gxclrast.c:2012:28: call_function: calling ‘clist_decode_segment’ from ‘clist_playback_band’
# 3399|               break;
# 3400|           case cmd_opv_rgapto:
# 3401|->             code = gx_path_add_gap_notes(ppath, px += A, py += B, notes);
# 3402|               break;
# 3403|           case cmd_opv_hlineto:

Error: CPPCHECK_WARNING (CWE-457): [#def125]
ghostscript-10.05.1/base/gxclread.c:782: warning[uninitvar]: Uninitialized variable: lines_rasterized
#  780|       }
#  781|       cdev->buf_procs.destroy_buf_device(bdev);
#  782|->     if (code < 0 || lines_rasterized == line_count)
#  783|           return code;
#  784|       /*

Error: CPPCHECK_WARNING (CWE-457): [#def126]
ghostscript-10.05.1/base/gxclthrd.c:906: warning[uninitvar]: Uninitialized variable: code
#  904|           (endtime[1] - starttime[1]) / 1000000;
#  905|   #endif
#  906|->     if (code < 0)
#  907|           thread->status = THREAD_ERROR;          /* shouldn't happen */
#  908|       else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def127]
ghostscript-10.05.1/base/gxclthrd.c:906:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘code’
ghostscript-10.05.1/base/gxclthrd.c:868:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxclthrd.c:906:8: branch_false: ...to here
ghostscript-10.05.1/base/gxclthrd.c:906:8: danger: use of uninitialized value ‘code’ here
#  904|           (endtime[1] - starttime[1]) / 1000000;
#  905|   #endif
#  906|->     if (code < 0)
#  907|           thread->status = THREAD_ERROR;          /* shouldn't happen */
#  908|       else

Error: CPPCHECK_WARNING (CWE-457): [#def128]
ghostscript-10.05.1/base/gxcmap.c:2496: error[legacyUninitvar]: Uninitialized variable: cv_frac[i]
# 2494|              which does not take a frac value...  */
# 2495|           for (i = 0; i < nc; i++) {
# 2496|->             color_val[i] = frac2cv(cv_frac[i]);
# 2497|           }
# 2498|           if (i < ncomps)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
ghostscript-10.05.1/base/gxcpath.c:963:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.05.1/base/gxcpath.c:481:1: enter_function: entry to ‘gx_cpath_to_path’
ghostscript-10.05.1/base/gxcpath.c:483:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxcpath.c:487:9: branch_true: ...to here
ghostscript-10.05.1/base/gxcpath.c:488:16: call_function: calling ‘gx_cpath_to_path_synthesize’ from ‘gx_cpath_to_path’
#  961|                 left:		/* Trace upward along a left edge. */
#  962|                   /* We're at the lower left corner of rp. */
#  963|->                 rp->to_visit &= ~visit_left;
#  964|                   /* Look for an adjacent rectangle above rp. */
#  965|                   for (look = rp;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
ghostscript-10.05.1/base/gxcpath.c:1009:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.05.1/base/gxcpath.c:481:1: enter_function: entry to ‘gx_cpath_to_path’
ghostscript-10.05.1/base/gxcpath.c:483:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxcpath.c:487:9: branch_true: ...to here
ghostscript-10.05.1/base/gxcpath.c:488:16: call_function: calling ‘gx_cpath_to_path_synthesize’ from ‘gx_cpath_to_path’
# 1007|                 right:		/* Trace downward along a right edge. */
# 1008|                   /* We're at the upper right corner of rp. */
# 1009|->                 rp->to_visit &= ~visit_right;
# 1010|                   /* Look for an adjacent rectangle below rp. */
# 1011|                   for (look = rp;

Error: COMPILER_WARNING: [#def131]
ghostscript-10.05.1/base/gxctable.c: scope_hint: In function ‘gx_color_interpolate_nearest’
ghostscript-10.05.1/base/gxctable.c:35:28: warning[-Wunused-but-set-variable=]: variable ‘table’ set but not used
#   35 |     const gs_const_string *table = pclt->table;
#      |                            ^~~~~
#   33|       const int *pdim = pclt->dims;
#   34|       int m = pclt->m;
#   35|->     const gs_const_string *table = pclt->table;
#   36|   
#   37|       if (pclt->n > 3) {

Error: CPPCHECK_WARNING (CWE-758): [#def132]
ghostscript-10.05.1/base/gxfill.c:519: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  517|           }
#  518|           code = (*fill_loop)
#  519|->             (&lst, (max_fill_band == 0 ? NO_BAND_MASK : int2fixed(-max_fill_band)));
#  520|           if (lst.windings != NULL && lst.windings != lst.local_windings)
#  521|               gs_free_object(pdev->memory, lst.windings, "gx_general_fill_path");

Error: GCC_ANALYZER_WARNING: [#def133]
ghostscript-10.05.1/base/gxht_thresh.c:1089:29: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.05.1/base/gxht_thresh.c:1016:29: branch_true: following ‘true’ branch (when ‘j < spp_out’)...
ghostscript-10.05.1/base/gxht_thresh.c:1017:32: branch_true: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1024:24: branch_false: following ‘false’ branch (when ‘threshold’ is non-NULL)...
ghostscript-10.05.1/base/gxht_thresh.c:1027:37: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1060:24: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxht_thresh.c:1060:24: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1067:34: branch_false: following ‘false’ branch (when ‘jj >= init_tile’)...
ghostscript-10.05.1/base/gxht_thresh.c:1083:24: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1083:24: branch_true: following ‘true’ branch (when ‘replicate_tile != 0’)...
ghostscript-10.05.1/base/gxht_thresh.c:1086:34: branch_true: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1088:38: branch_true: following ‘true’ branch (when ‘jj < num_tiles’)...
ghostscript-10.05.1/base/gxht_thresh.c:1089:59: branch_true: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1089:29: danger: overlapping buffers passed as arguments to ‘memcpy’
# 1087|                           tile_remainder = dest_height - (num_tiles + 1) * thresh_height;
# 1088|                           for (jj = 0; jj < num_tiles; jj ++) {
# 1089|->                             memcpy(ptr_out, thresh_align, LAND_BITS * thresh_height);
# 1090|                               ptr_out += LAND_BITS * thresh_height;
# 1091|                           }

Error: GCC_ANALYZER_WARNING: [#def134]
ghostscript-10.05.1/base/gxht_thresh.c:1093:25: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.05.1/base/gxht_thresh.c:1016:29: branch_true: following ‘true’ branch (when ‘j < spp_out’)...
ghostscript-10.05.1/base/gxht_thresh.c:1017:32: branch_true: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1024:24: branch_false: following ‘false’ branch (when ‘threshold’ is non-NULL)...
ghostscript-10.05.1/base/gxht_thresh.c:1027:37: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1060:24: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxht_thresh.c:1060:24: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1067:34: branch_false: following ‘false’ branch (when ‘jj >= init_tile’)...
ghostscript-10.05.1/base/gxht_thresh.c:1083:24: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1083:24: branch_true: following ‘true’ branch (when ‘replicate_tile != 0’)...
ghostscript-10.05.1/base/gxht_thresh.c:1086:34: branch_true: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1088:38: branch_false: following ‘false’ branch (when ‘jj >= num_tiles’)...
ghostscript-10.05.1/base/gxht_thresh.c:1093:55: branch_false: ...to here
ghostscript-10.05.1/base/gxht_thresh.c:1093:25: danger: overlapping buffers passed as arguments to ‘memcpy’
# 1091|                           }
# 1092|                           /* Now fill in the remainder */
# 1093|->                         memcpy(ptr_out, thresh_align, LAND_BITS * tile_remainder);
# 1094|                       }
# 1095|                       /* Apply the threshold operation */

Error: GCC_ANALYZER_WARNING (CWE-835): [#def135]
ghostscript-10.05.1/base/gxi12bit.c:514:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gxi12bit.c:514:13: danger: infinite loop here
ghostscript-10.05.1/base/gxi12bit.c:514:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gxi12bit.c:514:13: branch_true: ...to here
ghostscript-10.05.1/base/gxi12bit.c:515:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gxi12bit.c:515:22: branch_false: ...to here
#  512|       float temp;
#  513|   
#  514|->     while ( curr_pos < bufend ) {
#  515|           for ( k = 0; k < spp; k ++ ) {
#  516|               switch ( penum->map[k].decoding ) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def136]
ghostscript-10.05.1/base/gxi12bit.c:553:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gxi12bit.c:553:13: danger: infinite loop here
ghostscript-10.05.1/base/gxi12bit.c:553:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gxi12bit.c:553:13: branch_true: ...to here
ghostscript-10.05.1/base/gxi12bit.c:554:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gxi12bit.c:554:22: branch_false: ...to here
#  551|       float temp;
#  552|   
#  553|->     while ( curr_pos < bufend ) {
#  554|           for ( k = 0; k < spp; k ++ ) {
#  555|               switch ( penum->map[k].decoding ) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def137]
ghostscript-10.05.1/base/gxicolor.c:376:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gxicolor.c:376:13: danger: infinite loop here
ghostscript-10.05.1/base/gxicolor.c:376:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gxicolor.c:376:13: branch_true: ...to here
ghostscript-10.05.1/base/gxicolor.c:377:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gxicolor.c:377:22: branch_false: ...to here
#  374|       float temp;
#  375|   
#  376|->     while ( curr_pos < bufend ) {
#  377|           for ( k = 0; k < spp; k ++ ) {
#  378|               switch ( penum->map[k].decoding ) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def138]
ghostscript-10.05.1/base/gxicolor.c:415:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gxicolor.c:415:13: danger: infinite loop here
ghostscript-10.05.1/base/gxicolor.c:415:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gxicolor.c:415:13: branch_true: ...to here
ghostscript-10.05.1/base/gxicolor.c:416:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gxicolor.c:416:22: branch_false: ...to here
#  413|       float temp;
#  414|   
#  415|->     while ( curr_pos < bufend ) {
#  416|           for ( k = 0; k < spp; k ++ ) {
#  417|               switch ( penum->map[k].decoding ) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def139]
ghostscript-10.05.1/base/gximdecode.c:191:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gximdecode.c:191:12: danger: infinite loop here
ghostscript-10.05.1/base/gximdecode.c:191:12: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gximdecode.c:191:12: branch_true: ...to here
ghostscript-10.05.1/base/gximdecode.c:192:21: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gximdecode.c:192:21: branch_false: ...to here
#  189|       float temp;
#  190|   
#  191|->     while (curr_pos < (byte*) bufend) {
#  192|           for (k = 0; k < spp; k++) {
#  193|               switch (map[k].decoding) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def140]
ghostscript-10.05.1/base/gximdecode.c:227:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/base/gximdecode.c:227:12: danger: infinite loop here
ghostscript-10.05.1/base/gximdecode.c:227:12: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.05.1/base/gximdecode.c:227:12: branch_true: ...to here
ghostscript-10.05.1/base/gximdecode.c:228:21: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.05.1/base/gximdecode.c:228:21: branch_false: ...to here
#  225|       float temp;
#  226|   
#  227|->     while (curr_pos < (unsigned short*) bufend) {
#  228|           for (k = 0; k < spp; k++) {
#  229|               switch (map[k].decoding) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
ghostscript-10.05.1/base/gximono.c:972:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ghostscript-10.05.1/base/gximono.c:425:8: branch_false: following ‘false’ branch (when ‘h != 0’)...
ghostscript-10.05.1/base/gximono.c:433:5: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:435:8: branch_false: following ‘false’ branch (when ‘masked != 0’)...
ghostscript-10.05.1/base/gximono.c:439:5: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:451:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gximono.c:947:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gximono.c:948:17: branch_true: ...to here
ghostscript-10.05.1/base/gximono.c:972:13: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gximono.c:972:13: branch_true: ...to here
ghostscript-10.05.1/base/gximono.c:972:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gximono.c:972:13: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:972:13: danger: jump through null pointer here
#  970|                   goto err;
#  971|   #else
#  972|->             IMAGE_SET_GRAY(*stop);
#  973|   #endif
#  974|               code = gx_fill_rectangle_device_rop(xi, yt, wi, iht,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def142]
ghostscript-10.05.1/base/gximono.c:1169:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc_contone[0]’
ghostscript-10.05.1/base/gximono.c:1128:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gximono.c:1154:8: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:1154:8: branch_false: following ‘false’ branch (when ‘flush_buff == 0’)...
ghostscript-10.05.1/base/gximono.c:1154:8: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:1158:17: branch_false: following ‘false’ branch (when ‘k >= spp_out’)...
ghostscript-10.05.1/base/gximono.c:1167:10: branch_false: ...to here
ghostscript-10.05.1/base/gximono.c:1169:5: danger: use of uninitialized value ‘devc_contone[0]’ here
# 1167|       xr = fixed2int_var_rounded(dda_current(dda_ht));	/* indexes in the destination (contone) */
# 1168|   
# 1169|->     devc_contone_gray = devc_contone[0];
# 1170|       if (penum->color_cache == NULL) {
# 1171|           /* No look-up in the cache to fill the source buffer. Still need to

Error: COMPILER_WARNING (CWE-457): [#def143]
ghostscript-10.05.1/base/gximono.c: scope_hint: In function ‘image_render_mono_ht’
ghostscript-10.05.1/base/gximono.c:1169:23: warning[-Wmaybe-uninitialized]: ‘devc_contone’ may be used uninitialized
# 1169 |     devc_contone_gray = devc_contone[0];
#      |     ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
ghostscript-10.05.1/base/gximono.c:1040:11: note: ‘devc_contone’ declared here
# 1040 |     byte *devc_contone[GX_DEVICE_COLOR_MAX_COMPONENTS];
#      |           ^~~~~~~~~~~~
# 1167|       xr = fixed2int_var_rounded(dda_current(dda_ht));	/* indexes in the destination (contone) */
# 1168|   
# 1169|->     devc_contone_gray = devc_contone[0];
# 1170|       if (penum->color_cache == NULL) {
# 1171|           /* No look-up in the cache to fill the source buffer. Still need to

Error: GCC_ANALYZER_WARNING (CWE-457): [#def144]
ghostscript-10.05.1/base/gxiscale.c:2457:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc.type’
ghostscript-10.05.1/base/gxiscale.c:2312:1: enter_function: entry to ‘image_render_interpolate_landscape’
ghostscript-10.05.1/base/gxiscale.c:2330:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxiscale.c:2333:9: branch_false: ...to here
ghostscript-10.05.1/base/gxiscale.c:2337:5: call_function: calling ‘initial_decode’ from ‘image_render_interpolate_landscape’
ghostscript-10.05.1/base/gxiscale.c:2337:5: return_function: returning to ‘image_render_interpolate_landscape’ from ‘initial_decode’
ghostscript-10.05.1/base/gxiscale.c:2363:16: branch_true: following ‘true’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.05.1/base/gxiscale.c:2364:17: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2367:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxiscale.c:2367:17: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2377:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxiscale.c:2379:17: branch_false: ...to here
ghostscript-10.05.1/base/gxiscale.c:2379:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/gxiscale.c:2380:32: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2384:20: branch_true: following ‘true’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.05.1/base/gxiscale.c:2385:32: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2385:32: call_function: calling ‘interpolate_scaled_expanded_height’ from ‘image_render_interpolate_landscape’
ghostscript-10.05.1/base/gxiscale.c:2385:32: return_function: returning to ‘image_render_interpolate_landscape’ from ‘interpolate_scaled_expanded_height’
ghostscript-10.05.1/base/gxiscale.c:2391:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/gxiscale.c:2395:26: branch_false: ...to here
ghostscript-10.05.1/base/gxiscale.c:2396:20: branch_true: following ‘true’ branch (when ‘color_handler’ is NULL)...
ghostscript-10.05.1/base/gxiscale.c:2397:37: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2397:37: call_function: calling ‘get_color_handler’ from ‘image_render_interpolate_landscape’
ghostscript-10.05.1/base/gxiscale.c:2397:37: return_function: returning to ‘image_render_interpolate_landscape’ from ‘get_color_handler’
ghostscript-10.05.1/base/gxiscale.c:2398:30: branch_true: following ‘true’ branch (when ‘x < xe’)...
ghostscript-10.05.1/base/gxiscale.c:2399:24: branch_true: ...to here
ghostscript-10.05.1/base/gxiscale.c:2399:24: branch_false: following ‘false’ branch (when ‘color_handler’ is NULL)...
ghostscript-10.05.1/base/gxiscale.c:2420:25: branch_false: ...to here
ghostscript-10.05.1/base/gxiscale.c:2449:28: branch_false: following ‘false’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.05.1/base/gxiscale.c:2454:49: branch_false: ...to here
ghostscript-10.05.1/base/gxiscale.c:2456:40: call_function: calling ‘interpolate_scaled_expanded_width’ from ‘image_render_interpolate_landscape’
ghostscript-10.05.1/base/gxiscale.c:2456:40: return_function: returning to ‘image_render_interpolate_landscape’ from ‘interpolate_scaled_expanded_width’
ghostscript-10.05.1/base/gxiscale.c:2457:37: danger: use of uninitialized value ‘devc.type’ here
# 2455|   
# 2456|                               scaled_w = interpolate_scaled_expanded_width(rep, pss);
# 2457|->                             rcode = gx_fill_rectangle_device_rop(scaled_y, scaled_x, scaled_h, scaled_w,
# 2458|                                                                    &devc, dev, lop);
# 2459|                               if (rcode < 0)

Error: COMPILER_WARNING (CWE-457): [#def145]
ghostscript-10.05.1/base/gxshade6.c:1438:35: warning[-Wmaybe-uninitialized]: ‘d0001’ may be used uninitialized
# 1438 |     m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
ghostscript-10.05.1/base/gxshade6.c: scope_hint: In function ‘fill_quadrangle.isra.0’
ghostscript-10.05.1/base/gxshade6.c:3297:19: note: ‘d0001’ declared here
# 3297 |     patch_color_t d0001, d1011, d;
#      |                   ^~~~~
# 1436|       double m;
# 1437|   
# 1438|->     m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
# 1439|       for (i = 1; i < n; i++)
# 1440|           m = max(m, any_abs(c->cc.paint.values[i]) / pfs->color_domain.paint.values[i]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
ghostscript-10.05.1/base/pack_ps.c:76:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ghostscript-10.05.1/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:328:14: acquire_resource: opened here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:349:12: call_function: calling ‘readline’ from ‘main’
#   74|           return false;
#   75|       }
#   76|->     while (i < len - 1) {
#   77|           if (c < 0 || c == 10) {	/* ^J, Unix EOL */
#   78|               break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
ghostscript-10.05.1/base/pack_ps.c:76:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ghostscript-10.05.1/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:333:15: acquire_resource: opened here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:349:12: call_function: calling ‘readline’ from ‘main’
#   74|           return false;
#   75|       }
#   76|->     while (i < len - 1) {
#   77|           if (c < 0 || c == 10) {	/* ^J, Unix EOL */
#   78|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
ghostscript-10.05.1/base/pack_ps.c:76:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ghostscript-10.05.1/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:328:14: acquire_memory: allocated here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:349:12: call_function: calling ‘readline’ from ‘main’
#   74|           return false;
#   75|       }
#   76|->     while (i < len - 1) {
#   77|           if (c < 0 || c == 10) {	/* ^J, Unix EOL */
#   78|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
ghostscript-10.05.1/base/pack_ps.c:76:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ghostscript-10.05.1/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:333:15: acquire_memory: allocated here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:349:12: call_function: calling ‘readline’ from ‘main’
#   74|           return false;
#   75|       }
#   76|->     while (i < len - 1) {
#   77|           if (c < 0 || c == 10) {	/* ^J, Unix EOL */
#   78|               break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
ghostscript-10.05.1/base/pack_ps.c:347:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:328:14: acquire_resource: opened here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/pack_ps.c:347:5: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  345|           buildtime = time(NULL);
#  346|       }
#  347|->     fprintf(outfile,"/* Auto-generated from PostScript file \"%s\" at time %ld */\n", infilename, (long)buildtime);
#  348|   
#  349|       while (readline(infile, inputline, INPUT_LINE_LENGTH_MAX)) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
ghostscript-10.05.1/base/pack_ps.c:347:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:333:15: acquire_resource: opened here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/pack_ps.c:347:5: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  345|           buildtime = time(NULL);
#  346|       }
#  347|->     fprintf(outfile,"/* Auto-generated from PostScript file \"%s\" at time %ld */\n", infilename, (long)buildtime);
#  348|   
#  349|       while (readline(infile, inputline, INPUT_LINE_LENGTH_MAX)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
ghostscript-10.05.1/base/pack_ps.c:347:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:328:14: acquire_memory: allocated here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/pack_ps.c:347:5: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  345|           buildtime = time(NULL);
#  346|       }
#  347|->     fprintf(outfile,"/* Auto-generated from PostScript file \"%s\" at time %ld */\n", infilename, (long)buildtime);
#  348|   
#  349|       while (readline(infile, inputline, INPUT_LINE_LENGTH_MAX)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
ghostscript-10.05.1/base/pack_ps.c:347:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.05.1/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.05.1/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.05.1/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:333:15: acquire_memory: allocated here
ghostscript-10.05.1/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.05.1/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/base/pack_ps.c:347:5: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  345|           buildtime = time(NULL);
#  346|       }
#  347|->     fprintf(outfile,"/* Auto-generated from PostScript file \"%s\" at time %ld */\n", infilename, (long)buildtime);
#  348|   
#  349|       while (readline(infile, inputline, INPUT_LINE_LENGTH_MAX)) {

Error: CPPCHECK_WARNING (CWE-457): [#def154]
ghostscript-10.05.1/base/sdcparam.c:152: warning[uninitvar]: Uninitialized variable: comp_info
#  150|   
#  151|           for (i = 0; i < num_in_tables; ++i) {
#  152|->             JQUANT_TBL *tbl = table_ptrs[comp_info[i].quant_tbl_no];
#  153|               JQUANT_TBL *default_tbl =
#  154|               (default_comp_info == 0 || default_table_ptrs == 0 ? 0 :

Error: GCC_ANALYZER_WARNING (CWE-457): [#def155]
ghostscript-10.05.1/base/sfilter2.c:206:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[1]’
ghostscript-10.05.1/base/sfilter2.c:182:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/sfilter2.c:184:22: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.05.1/base/sfilter2.c:184:40: branch_true: ...to here
ghostscript-10.05.1/base/sfilter2.c:196:26: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/sfilter2.c:197:27: branch_true: ...to here
ghostscript-10.05.1/base/sfilter2.c:196:26: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/sfilter2.c:205:17: branch_false: ...to here
ghostscript-10.05.1/base/sfilter2.c:205:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/base/sfilter2.c:206:32: danger: use of uninitialized value ‘buf[1]’ here
#  204|           }
#  205|           space = count && buf[0] == '%' &&
#  206|->           ( (prev == '\n' && ( buf[1] == '%' || buf[1] =='!')) ||
#  207|               (prev == '%'  && qn - q == LINE_LIMIT - 1)
#  208|             );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def156]
ghostscript-10.05.1/base/slzwd.c:371:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ghostscript-10.05.1/base/slzwd.c:132:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/slzwd.c:136:8: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:136:8: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/base/slzwd.c:137:13: branch_true: ...to here
ghostscript-10.05.1/base/slzwd.c:150:16: branch_false: following ‘false’ branch (when ‘n < 0’)...
ghostscript-10.05.1/base/slzwd.c:154:13: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:154:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/slzwd.c:158:9: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:161:12: branch_false: following ‘false’ branch (when ‘c != eod’)...
ghostscript-10.05.1/base/slzwd.c:161:12: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:165:20: branch_false: following ‘false’ branch (when ‘c == eod’)...
ghostscript-10.05.1/base/slzwd.c:168:9: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:324:16: branch_true: following ‘true’ branch (when ‘prev_code >= 0’)...
ghostscript-10.05.1/base/slzwd.c:330:21: branch_true: ...to here
ghostscript-10.05.1/base/slzwd.c:330:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/base/slzwd.c:370:20: branch_false: ...to here
ghostscript-10.05.1/base/slzwd.c:370:20: branch_true: following ‘true’ branch (when ‘next_code <= 4095’)...
ghostscript-10.05.1/base/slzwd.c:371:21: branch_true: ...to here
ghostscript-10.05.1/base/slzwd.c:371:21: danger: use of uninitialized value ‘b’ here
#  369|                   }
#  370|                   if (next_code < lzw_decode_max) {
#  371|->                     dc_next->datum = b;	/* added char of string */
#  372|                       dc_next->len = min(prev_len, 254) + 1;
#  373|                       dc_next->prefix = prev_code;

Error: CPPCHECK_WARNING (CWE-457): [#def157]
ghostscript-10.05.1/base/spsdf.c:102: error[uninitvar]: Uninitialized variable: buf
#  100|   
#  101|               status = (*templat->process) (st, &r, &w, true);
#  102|->             stream_write(s, buf, (uint) (w.ptr + 1 - buf));
#  103|           }
#  104|           while (status == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:381:12: warning[-Wanalyzer-malloc-leak]: leak of ‘get_sysname()’
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:807:1: enter_function: entry to ‘escv_beginpage’
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:955:23: call_function: calling ‘get_sysname’ from ‘escv_beginpage’
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:955:23: return_function: returning to ‘escv_beginpage’ from ‘get_sysname’
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:956:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:958:11: branch_true: ...to here
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:958:11: call_function: calling ‘lputs’ from ‘escv_beginpage’
#  379|     int		status;
#  380|   
#  381|->   status = sputs(s, (const byte *)str, len, &used);
#  382|   
#  383|     return (status >= 0 && used == len ? 0 : EOF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:796:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdest’
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:795:13: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:796:7: danger: dereference of NULL ‘pdest’
#  794|   
#  795|       while ( ( len < (dest_len -1) ) && *cp && ( '_' != *cp) ) {
#  796|->       *pdest = toupper( *cp );
#  797|         pdest++;
#  798|         cp++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:800:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdest’
#  798|         cp++;
#  799|       }
#  800|->     *pdest = '\0';
#  801|     }
#  802|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
ghostscript-10.05.1/contrib/gdevadmp.c:212:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.05.1/contrib/gdevadmp.c:165:1: enter_function: entry to ‘dmp_print_page’
ghostscript-10.05.1/contrib/gdevadmp.c:175:28: call_function: inlined call to ‘gp_get_file’ from ‘dmp_print_page’
ghostscript-10.05.1/contrib/gdevadmp.c:178:30: branch_true: ...to here
ghostscript-10.05.1/contrib/gdevadmp.c:187:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/gdevadmp.c:212:9: danger: argument 2 (‘<unknown>’) NULL where non-null expected
#  210|           /* Initialize the printer and reset the margins. */
#  211|   
#  212|->         fputs("\r\n\033>\033T16", prn_stream);
#  213|   
#  214|           switch(dev_type)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
ghostscript-10.05.1/contrib/gdevln03.c:367:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
ghostscript-10.05.1/contrib/gdevln03.c:291:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/gdevln03.c:293:5: branch_false: ...to here
ghostscript-10.05.1/contrib/gdevln03.c:297:29: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/gdevln03.c:298:9: branch_true: ...to here
ghostscript-10.05.1/contrib/gdevln03.c:304:42: branch_false: following ‘false’ branch (when ‘l < 0’)...
ghostscript-10.05.1/contrib/gdevln03.c:367:12: branch_false: ...to here
ghostscript-10.05.1/contrib/gdevln03.c:367:12: danger: use of uninitialized value ‘c’ here
#  365|               }
#  366|           }
#  367|->         if (c != 077) {
#  368|              if (count > 3) {
#  369|                   /* use run length encoding */

Error: COMPILER_WARNING (CWE-457): [#def163]
ghostscript-10.05.1/contrib/gdevlx32.c: scope_hint: In function ‘finalizeheader’
ghostscript-10.05.1/contrib/gdevlx32.c:1298:23: warning[-Wmaybe-uninitialized]: ‘offs2’ may be used uninitialized
# 1298 |             nstartabs = newstart + offs2;
#      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ghostscript-10.05.1/contrib/gdevlx32.c:1260:13: note: ‘offs2’ was declared here
# 1260 |         int offs2, nstartabs, back, fwd;
#      |             ^~~~~
# 1296|           /* Calculate absolute starting position of new stripe */
# 1297|           if (newhead >= 0) {
# 1298|->             nstartabs = newstart + offs2;
# 1299|           }
# 1300|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def164]
ghostscript-10.05.1/contrib/gdevmd2k.c:386:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘contflag’
ghostscript-10.05.1/contrib/gdevmd2k.c:371:11: branch_true: following ‘true’ branch (when ‘p_in < p_end’)...
ghostscript-10.05.1/contrib/gdevmd2k.c:374:18: branch_true: ...to here
ghostscript-10.05.1/contrib/gdevmd2k.c:375:16: branch_false: following ‘false’ branch (when ‘count >= climit’)...
ghostscript-10.05.1/contrib/gdevmd2k.c:380:12: branch_false: ...to here
ghostscript-10.05.1/contrib/gdevmd2k.c:380:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
ghostscript-10.05.1/contrib/gdevmd2k.c:386:12: branch_false: ...to here
ghostscript-10.05.1/contrib/gdevmd2k.c:386:12: danger: use of uninitialized value ‘contflag’ here
#  384|           }
#  385|   
#  386|->         if (contflag) {
#  387|               climit = min(129, p_end - p_in);
#  388|               p_in += 3;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def165]
ghostscript-10.05.1/contrib/japanese/gdev10v.c:335:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out’
ghostscript-10.05.1/contrib/japanese/gdev10v.c:335:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/japanese/gdev10v.c:335:9: branch_true: ...to here
ghostscript-10.05.1/contrib/japanese/gdev10v.c:335:9: danger: use of uninitialized value ‘out’ here
#  333|           prn_flush(pdev);
#  334|   error:
#  335|->         gs_free(pdev->memory->non_gc_memory, (char *)out, bits_per_column, line_size, "bj10v_print_page(out)");
#  336|           gs_free(pdev->memory->non_gc_memory, (char *)in, 8, line_size, "bj10v_print_page(in)");
#  337|           return code;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def166]
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:332:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c[0]’
#  330|   
#  331|       lips_param(param, c);
#  332|->     for (i = 0; i < strlen(c); i++)
#  333|           sputc(s, c[i]);
#  334|   }

Error: CPPCHECK_WARNING (CWE-786): [#def167]
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:470: error[negativeIndex]: Array 'pdev->id_cache[257]' accessed at index -1, which is out of bounds.
#  468|               }
#  469|               for (i = j; i < pdev->count - 1; i++) {
#  470|->                 pdev->id_cache[i] = pdev->id_cache[i + 1];
#  471|               }
#  472|               pdev->id_cache[pdev->count - 1] = tmpid;

Error: CPPCHECK_WARNING (CWE-190): [#def168]
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:1928: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1926|           int i, j;
# 1927|           uint width_bytes = (w + 7) >> 3;
# 1928|->         uint num_bytes = round_up(width_bytes, 4) * h;
# 1929|           byte *buf = gs_alloc_bytes(vdev->memory, num_bytes,
# 1930|                                      "lips4v_copy_mono(buf)");

Error: CPPCHECK_WARNING (CWE-190): [#def169]
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:2092: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 2090|           int i;
# 2091|           uint width_bytes = (w + 7) >> 3;
# 2092|->         uint num_bytes = round_up(width_bytes, 4) * h;
# 2093|           byte *buf = gs_alloc_bytes(vdev->memory, num_bytes,
# 2094|                                      "lips4v_fill_mask(buf)");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:971:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4852:1: enter_function: entry to ‘opvp_setdash’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4870:8: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4871:13: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4871:13: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4872:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4872:12: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4873:25: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4883:13: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4883:13: call_function: calling ‘gsopvpSetLineDash’ from ‘opvp_setdash’
#  969|       gx_device_opvp *opdev = (gx_device_opvp*)dev;
#  970|   
#  971|->     return opdev->globals.apiEntry_0_2->SetLineDash(printerContext, num,
#  972|         /* remove const */ (OPVP_Fix *)pdash);
#  973|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1285:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4852:1: enter_function: entry to ‘opvp_setdash’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4870:8: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4871:13: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4871:13: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4872:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4872:12: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4873:25: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4883:13: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4883:13: call_function: calling ‘gsopvpSetLineDash’ from ‘opvp_setdash’
# 1283|           return SetLineDashWrapper(dev, printerContext, num, pdash);
# 1284|       } else if (opdev->globals.apiEntry->opvpSetLineDash) {
# 1285|->         return opdev->globals.apiEntry->opvpSetLineDash(printerContext, num, pdash);
# 1286|       } else
# 1287|           return OPVP_FATALERROR;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def172]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1569:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4688:1: enter_function: entry to ‘opvp_beginpage’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4698:12: call_function: calling ‘opvp_startpage’ from ‘opvp_beginpage’
# 1567|       if (string) {
# 1568|           *destin = realloc(*destin, strlen(*destin) +strlen(string)+1);
# 1569|->         strcat(*destin, string);
# 1570|       }
# 1571|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1657:24: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", locale)’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4688:1: enter_function: entry to ‘opvp_beginpage’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4698:12: call_function: calling ‘opvp_startpage’ from ‘opvp_beginpage’
# 1655|               if (locale) {
# 1656|                   if (strcmp(locale, "C") && buff) {
# 1657|->                     if ((cd = iconv_open("UTF-8", locale)) != (iconv_t)-1) {
# 1658|                           ibuff = string;
# 1659|                           obuff = buff;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1657:31: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4688:1: enter_function: entry to ‘opvp_beginpage’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4698:12: call_function: calling ‘opvp_startpage’ from ‘opvp_beginpage’
# 1655|               if (locale) {
# 1656|                   if (strcmp(locale, "C") && buff) {
# 1657|->                     if ((cd = iconv_open("UTF-8", locale)) != (iconv_t)-1) {
# 1658|                           ibuff = string;
# 1659|                           obuff = buff;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1660:29: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", locale)’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4688:1: enter_function: entry to ‘opvp_beginpage’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4698:12: call_function: calling ‘opvp_startpage’ from ‘opvp_beginpage’
# 1658|                           ibuff = string;
# 1659|                           obuff = buff;
# 1660|->                         if (iconv(cd, &ibuff, &ib, &obuff, &ob) != -1) {
# 1661|                               *obuff = 0;
# 1662|                               complete = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:1660:29: warning[-Wanalyzer-malloc-leak]: leak of ‘obuff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4688:1: enter_function: entry to ‘opvp_beginpage’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4698:12: call_function: calling ‘opvp_startpage’ from ‘opvp_beginpage’
# 1658|                           ibuff = string;
# 1659|                           obuff = buff;
# 1660|->                         if (iconv(cd, &ibuff, &ib, &obuff, &ob) != -1) {
# 1661|                               *obuff = 0;
# 1662|                               complete = true;

Error: CPPCHECK_WARNING (CWE-401): [#def177]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:2399: error[memleakOnRealloc]: Common realloc mistake: 'p' nulled but not freed upon failure
# 2397|                == OPVP_PARAMERROR && nn > n) {
# 2398|               /* realloc buffer and retry */
# 2399|->             p = realloc(p,nn*sizeof(opvp_cspace_t));
# 2400|               r = gsopvpQueryColorSpace(dev, pdev->globals.printerContext,&nn,p);
# 2401|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mybuf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3050:8: branch_false: following ‘false’ branch (when ‘data_x == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3088:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3117:8: branch_true: following ‘true’ branch (when ‘reverse != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3119:13: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3121:12: branch_true: following ‘true’ branch (when ‘buff == data’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3124:26: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3124:26: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3124:16: branch_false: following ‘false’ branch (when ‘mybuf’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3126:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3134:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3135:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3135:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3135:9: danger: ‘mybuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 3133|       OPVP_I2FIX(y, point.y);
# 3134|       if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
# 3135|->         opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext,point.x, point.y);
# 3136|       }
# 3137|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mybuf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3212:8: branch_true: following ‘true’ branch (when ‘data_x != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3213:17: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3218:24: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3219:12: branch_false: following ‘false’ branch (when ‘mybuf’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3223:20: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3225:20: branch_true: following ‘true’ branch (when ‘i < h’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3226:13: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3225:20: branch_true: following ‘true’ branch (when ‘i < h’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3226:13: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3241:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3242:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3242:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3242:9: danger: ‘mybuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 3240|       OPVP_I2FIX(y, point.y);
# 3241|       if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
# 3242|->         opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext, point.x, point.y);
# 3243|       }
# 3244|   

Error: CPPCHECK_WARNING (CWE-401): [#def180]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3465: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3463|               return_error(gs_error_invalidaccess);
# 3464|           }
# 3465|->         buff = realloc(buff, vdps.size + 1);
# 3466|           memcpy(buff, vdps.data, vdps.size);
# 3467|           buff[vdps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def181]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3466:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
# 3464|           }
# 3465|           buff = realloc(buff, vdps.size + 1);
# 3466|->         memcpy(buff, vdps.data, vdps.size);
# 3467|           buff[vdps.size] = 0;
# 3468|           opvp_alloc_string(&(opdev->globals.vectorDriver), buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3480:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3480:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3480:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
# 3478|       /* printer model name */
# 3479|       pname = "Model";
# 3480|->     code = param_read_string(plist, pname, &pmps);
# 3481|       switch (code) {
# 3482|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def183]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3483: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3481|       switch (code) {
# 3482|       case 0:
# 3483|->         buff = realloc(buff, pmps.size + 1);
# 3484|           memcpy(buff, pmps.data, pmps.size);
# 3485|           buff[pmps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3493:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3493:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
# 3491|       default:
# 3492|           ecode = code;
# 3493|->         param_signal_error(plist, pname, ecode);
# 3494|       }
# 3495|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3498:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3498:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3498:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
# 3496|       /* job info */
# 3497|       pname = "JobInfo";
# 3498|->     code = param_read_string(plist, pname, &jips);
# 3499|       switch (code) {
# 3500|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def186]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3501: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3499|       switch (code) {
# 3500|       case 0:
# 3501|->         buff = realloc(buff, jips.size + 1);
# 3502|           memcpy(buff, jips.data, jips.size);
# 3503|           buff[jips.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def187]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3501:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3486:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3486:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3501:16: danger: second ‘free’ here
# 3499|       switch (code) {
# 3500|       case 0:
# 3501|->         buff = realloc(buff, jips.size + 1);
# 3502|           memcpy(buff, jips.data, jips.size);
# 3503|           buff[jips.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def188]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3502:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3486:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3486:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3502:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3500|       case 0:
# 3501|           buff = realloc(buff, jips.size + 1);
# 3502|->         memcpy(buff, jips.data, jips.size);
# 3503|           buff[jips.size] = 0;
# 3504|           opvp_alloc_string(&(opdev->globals.jobInfo), buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3511:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3511:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3511:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/3)
# 3509|       default:
# 3510|           ecode = code;
# 3511|->         param_signal_error(plist, pname, ecode);
# 3512|       }
# 3513|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3516:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3516:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3516:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
# 3514|       /* doc info */
# 3515|       pname = "DocInfo";
# 3516|->     code = param_read_string(plist, pname, &dips);
# 3517|       switch (code) {
# 3518|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def191]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3519: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3517|       switch (code) {
# 3518|       case 0:
# 3519|->         buff = realloc(buff, dips.size + 1);
# 3520|           memcpy(buff, dips.data, dips.size);
# 3521|           buff[dips.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3529:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3529:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3529:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/3)
# 3527|       default:
# 3528|           ecode = code;
# 3529|->         param_signal_error(plist, pname, ecode);
# 3530|       }
# 3531|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3534:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3534:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3534:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
# 3532|       /* fast image support */
# 3533|       pname = "FastImage";
# 3534|->     code = param_read_string(plist, pname, &fips);
# 3535|       switch (code) {
# 3536|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def194]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3537: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3535|       switch (code) {
# 3536|       case 0:
# 3537|->         buff = realloc(buff, fips.size + 1);
# 3538|           memcpy(buff, fips.data, fips.size);
# 3539|           buff[fips.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def195]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3537:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3537:16: danger: second ‘free’ here
# 3535|       switch (code) {
# 3536|       case 0:
# 3537|->         buff = realloc(buff, fips.size + 1);
# 3538|           memcpy(buff, fips.data, fips.size);
# 3539|           buff[fips.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def196]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3538:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3538:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3536|       case 0:
# 3537|           buff = realloc(buff, fips.size + 1);
# 3538|->         memcpy(buff, fips.data, fips.size);
# 3539|           buff[fips.size] = 0;
# 3540|           opvp_alloc_string(&fastImage, buff);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def197]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3537:16: release_memory: state of ‘(void *)0B’: ‘stop’ -> ‘freed’ (NULL origin)
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: release_memory: using NULL here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: danger: argument 1 (‘fastImage’) NULL where non-null expected
# 3539|           buff[fips.size] = 0;
# 3540|           opvp_alloc_string(&fastImage, buff);
# 3541|->         if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542|               FastImageMode = FastImageNoCTM;
# 3543|           } else if (strncasecmp(fastImage,"NoRotate",8)==0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def198]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: release_memory: ‘buff’ is NULL
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: danger: argument 1 (‘fastImage’) NULL where non-null expected
# 3539|           buff[fips.size] = 0;
# 3540|           opvp_alloc_string(&fastImage, buff);
# 3541|->         if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542|               FastImageMode = FastImageNoCTM;
# 3543|           } else if (strncasecmp(fastImage,"NoRotate",8)==0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def199]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fastImage’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3540:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3541:13: danger: argument 1 (‘fastImage’) NULL where non-null expected
# 3539|           buff[fips.size] = 0;
# 3540|           opvp_alloc_string(&fastImage, buff);
# 3541|->         if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542|               FastImageMode = FastImageNoCTM;
# 3543|           } else if (strncasecmp(fastImage,"NoRotate",8)==0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3560:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3560:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3560:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/3)
# 3558|       default:
# 3559|           ecode = code;
# 3560|->         param_signal_error(plist, pname, ecode);
# 3561|       }
# 3562|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3565:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3565:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3565:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/3)
# 3563|       /* margins */
# 3564|       pname = "MarginLeft";
# 3565|->     code = param_read_string(plist, pname, &mlps);
# 3566|       switch (code) {
# 3567|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def202]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3568: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3566|       switch (code) {
# 3567|       case 0:
# 3568|->         buff = realloc(buff, mlps.size + 1);
# 3569|           memcpy(buff, mlps.data, mlps.size);
# 3570|           buff[mlps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def203]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3568:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3568:16: danger: second ‘free’ here
# 3566|       switch (code) {
# 3567|       case 0:
# 3568|->         buff = realloc(buff, mlps.size + 1);
# 3569|           memcpy(buff, mlps.data, mlps.size);
# 3570|           buff[mlps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3569:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3569:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3567|       case 0:
# 3568|           buff = realloc(buff, mlps.size + 1);
# 3569|->         memcpy(buff, mlps.data, mlps.size);
# 3570|           buff[mlps.size] = 0;
# 3571|           opdev->globals.margins[0] = atof(buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3577:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3577:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/3)
# 3575|       default:
# 3576|           ecode = code;
# 3577|->         param_signal_error(plist, pname, ecode);
# 3578|       }
# 3579|       pname = "MarginTop";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3580:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3580:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3580:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/3)
# 3578|       }
# 3579|       pname = "MarginTop";
# 3580|->     code = param_read_string(plist, pname, &mtps);
# 3581|       switch (code) {
# 3582|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def207]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3583: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3581|       switch (code) {
# 3582|       case 0:
# 3583|->         buff = realloc(buff, mtps.size + 1);
# 3584|           memcpy(buff, mtps.data, mtps.size);
# 3585|           buff[mtps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def208]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3583:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3583:16: danger: second ‘free’ here
# 3581|       switch (code) {
# 3582|       case 0:
# 3583|->         buff = realloc(buff, mtps.size + 1);
# 3584|           memcpy(buff, mtps.data, mtps.size);
# 3585|           buff[mtps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def209]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3584:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3584:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3582|       case 0:
# 3583|           buff = realloc(buff, mtps.size + 1);
# 3584|->         memcpy(buff, mtps.data, mtps.size);
# 3585|           buff[mtps.size] = 0;
# 3586|           opdev->globals.margins[3] = atof(buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3592:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3592:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3592:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
# 3590|       default:
# 3591|           ecode = code;
# 3592|->         param_signal_error(plist, pname, ecode);
# 3593|       }
# 3594|       pname = "MarginRight";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3595:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3595:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3595:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
# 3593|       }
# 3594|       pname = "MarginRight";
# 3595|->     code = param_read_string(plist, pname, &mrps);
# 3596|       switch (code) {
# 3597|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def212]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3598: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3596|       switch (code) {
# 3597|       case 0:
# 3598|->         buff = realloc(buff, mrps.size + 1);
# 3599|           memcpy(buff, mrps.data, mrps.size);
# 3600|           buff[mrps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def213]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3598:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3598:16: danger: second ‘free’ here
# 3596|       switch (code) {
# 3597|       case 0:
# 3598|->         buff = realloc(buff, mrps.size + 1);
# 3599|           memcpy(buff, mrps.data, mrps.size);
# 3600|           buff[mrps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3599:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3599:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3597|       case 0:
# 3598|           buff = realloc(buff, mrps.size + 1);
# 3599|->         memcpy(buff, mrps.data, mrps.size);
# 3600|           buff[mrps.size] = 0;
# 3601|           opdev->globals.margins[2] = atof(buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3607:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3607:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3607:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/3)
# 3605|       default:
# 3606|           ecode = code;
# 3607|->         param_signal_error(plist, pname, ecode);
# 3608|       }
# 3609|       pname = "MarginBottom";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3610:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3610:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3610:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
# 3608|       }
# 3609|       pname = "MarginBottom";
# 3610|->     code = param_read_string(plist, pname, &mbps);
# 3611|       switch (code) {
# 3612|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def217]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3613: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3611|       switch (code) {
# 3612|       case 0:
# 3613|->         buff = realloc(buff, mbps.size + 1);
# 3614|           memcpy(buff, mbps.data, mbps.size);
# 3615|           buff[mbps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def218]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3613:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3613:16: danger: second ‘free’ here
# 3611|       switch (code) {
# 3612|       case 0:
# 3613|->         buff = realloc(buff, mbps.size + 1);
# 3614|           memcpy(buff, mbps.data, mbps.size);
# 3615|           buff[mbps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def219]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3614:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3614:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3612|       case 0:
# 3613|           buff = realloc(buff, mbps.size + 1);
# 3614|->         memcpy(buff, mbps.data, mbps.size);
# 3615|           buff[mbps.size] = 0;
# 3616|           opdev->globals.margins[1] = atof(buff);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3622:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3622:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3622:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/3)
# 3620|       default:
# 3621|           ecode = code;
# 3622|->         param_signal_error(plist, pname, ecode);
# 3623|       }
# 3624|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3627:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3627:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3627:12: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/3)
# 3625|       /* zoom */
# 3626|       pname = "Zoom";
# 3627|->     code = param_read_string(plist, pname, &zmps);
# 3628|       switch (code) {
# 3629|       case 0:

Error: CPPCHECK_WARNING (CWE-401): [#def222]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3630: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3628|       switch (code) {
# 3629|       case 0:
# 3630|->         buff = realloc(buff, zmps.size + 1);
# 3631|           memcpy(buff, zmps.data, zmps.size);
# 3632|           buff[zmps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def223]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3630:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: passing freed pointer ‘buff’ in call to ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3630:16: danger: second ‘free’ here
# 3628|       switch (code) {
# 3629|       case 0:
# 3630|->         buff = realloc(buff, zmps.size + 1);
# 3631|           memcpy(buff, zmps.data, zmps.size);
# 3632|           buff[zmps.size] = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def224]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3631:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3522:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3631:9: danger: argument 1 (‘buff’) NULL where non-null expected
# 3629|       case 0:
# 3630|           buff = realloc(buff, zmps.size + 1);
# 3631|->         memcpy(buff, zmps.data, zmps.size);
# 3632|           buff[zmps.size] = 0;
# 3633|           if (strncasecmp(buff, "Auto", 4)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3649:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3649:9: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3649:9: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/3)
# 3647|       default:
# 3648|           ecode = code;
# 3649|->         param_signal_error(plist, pname, ecode);
# 3650|       }
# 3651|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3655:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3436:1: enter_function: entry to ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3468:9: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3652:8: branch_false: following ‘false’ branch (when ‘buff’ is NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3463:13: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:3655:1: danger: ‘buff’ leaks here; was allocated at [(4)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/3)
# 3653|   
# 3654|       return ecode;
# 3655|-> }
# 3656|   
# 3657|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4266:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4263:11: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4265:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4266:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4266:9: throw: if ‘gx_image_plane_data’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4266:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 4264|   
# 4265|       if (vinfo->default_info) {
# 4266|->         gx_image_plane_data(vinfo->default_info, planes, height);
# 4267|       }
# 4268|       if (vinfo->bbox_info) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4269:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4263:11: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4268:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4269:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4269:9: throw: if ‘gx_image_plane_data’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4269:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
# 4267|       }
# 4268|       if (vinfo->bbox_info) {
# 4269|->         gx_image_plane_data(vinfo->bbox_info, planes, height);
# 4270|       }
# 4271|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4263:11: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4272:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4274:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4275:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4279:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4328:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4332:17: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4590:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4590:12: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4591:25: branch_true: following ‘true’ branch (when ‘i < height’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4592:29: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4593:29: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: throw: if ‘gx_color_frac_map’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4594:34: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 4592|                   ptr = buf + raster_length * i;
# 4593|                   for (j = 0; j < vinfo->width; j++) {
# 4594|->                     ptr[j*3+0] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+0]), effective_transfer[0]));
# 4595|                       ptr[j*3+1] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+1]), effective_transfer[1]));
# 4596|                       ptr[j*3+2] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+2]), effective_transfer[2]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4263:11: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4272:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4274:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4275:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4279:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4328:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4332:17: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4590:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4599:19: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4599:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4599:19: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4600:25: branch_true: following ‘true’ branch (when ‘i < height’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4601:29: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4602:27: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: throw: if ‘gx_color_frac_map’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4603:30: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
# 4601|                   ptr = buf + raster_length * i;
# 4602|                   for (j=0; j < vinfo->width; j++) {
# 4603|->                     ptr[j] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j]), effective_transfer[3]));
# 4604|                   }
# 4605|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4610:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4255:8: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4263:11: acquire_memory: allocated here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4272:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4274:9: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4275:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4279:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4328:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4332:17: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4590:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4599:19: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4599:19: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4609:13: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4609:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4611:25: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4610:13: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:4610:13: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
# 4608|           /* call TansferDrawImage */
# 4609|           if (opdev->globals.apiEntry->opvpTransferDrawImage) {
# 4610|->             opdev->globals.apiEntry->opvpTransferDrawImage(opdev->globals.printerContext,
# 4611|                           raster_length * height, (void *)buf);
# 4612|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: warning[-Wanalyzer-malloc-leak]: leak of ‘points’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5158:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: throw: if ‘gx_path_enum_next’ throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: danger: ‘points’ leaks here; was allocated at [(7)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/6)
# 5080|   
# 5081|       while (!ecode) {
# 5082|->         op = gx_path_enum_next(&path, (gs_fixed_point *)vs);
# 5083|           if (begin) {
# 5084|               /* start point */

Error: CPPCHECK_WARNING (CWE-401): [#def233]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5091: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5089|   #ifdef  OPVP_OPT_MULTI_PATH
# 5090|               npoints = 1;
# 5091|->             points = realloc(points, sizeof(_fPoint));
# 5092|               current = start;
# 5093|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5095:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘points’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5095:13: danger: dereference of NULL ‘points’
# 5093|   #endif
# 5094|   
# 5095|->             points[0] = start;
# 5096|   
# 5097|   #ifdef  OPVP_OPT_MULTI_PATH

Error: CPPCHECK_WARNING (CWE-401): [#def235]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5100: error[memleakOnRealloc]: Common realloc mistake: 'opvp_p' nulled but not freed upon failure
# 5098|           } else if (op != pop) {
# 5099|               /* convert float to Fix */
# 5100|->             opvp_p = realloc(opvp_p, sizeof(opvp_point_t) * npoints);
# 5101|               for (i = 0; i < npoints; i++) {
# 5102|                   OPVP_F2FIX(points[i].x, opvp_p[i].x);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def236]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5100:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘opvp_p’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5158:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_false: following ‘false’ branch (when ‘begin == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5098:19: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5098:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5100:22: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5100:22: danger: second ‘free’ here
# 5098|           } else if (op != pop) {
# 5099|               /* convert float to Fix */
# 5100|->             opvp_p = realloc(opvp_p, sizeof(opvp_point_t) * npoints);
# 5101|               for (i = 0; i < npoints; i++) {
# 5102|                   OPVP_F2FIX(points[i].x, opvp_p[i].x);

Error: CPPCHECK_WARNING (CWE-401): [#def237]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5151: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5149|               /* reset */
# 5150|               npoints = 1;
# 5151|->             points = realloc(points, sizeof(_fPoint));
# 5152|               points[0] = current;
# 5153|   #endif

Error: CPPCHECK_WARNING (CWE-401): [#def238]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5164: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5162|               i = npoints;
# 5163|               npoints += 1;
# 5164|->             points = realloc(points, sizeof(_fPoint) * npoints);
# 5165|               points[i].x = fixed2float(vs[0]) / scale.x;
# 5166|               points[i].y = fixed2float(vs[1]) / scale.y;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def239]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5164:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘points’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5158:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_false: following ‘false’ branch (when ‘begin == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5098:19: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5098:19: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5158:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5164:22: danger: second ‘free’ here
# 5162|               i = npoints;
# 5163|               npoints += 1;
# 5164|->             points = realloc(points, sizeof(_fPoint) * npoints);
# 5165|               points[i].x = fixed2float(vs[0]) / scale.x;
# 5166|               points[i].y = fixed2float(vs[1]) / scale.y;

Error: CPPCHECK_WARNING (CWE-401): [#def240]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5191: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5189|               i = npoints;
# 5190|               npoints += 1;
# 5191|->             points = realloc(points, sizeof(_fPoint) * npoints);
# 5192|               points[i].x = fixed2float(vs[0]) / scale.x;
# 5193|               points[i].y = fixed2float(vs[1]) / scale.y;

Error: CPPCHECK_WARNING (CWE-401): [#def241]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5215: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5213|               i = npoints;
# 5214|               npoints += 3;
# 5215|->             points = realloc(points, sizeof(_fPoint) * npoints);
# 5216|               points[i  ].x = fixed2float(vs[0]) / scale.x;
# 5217|               points[i  ].y = fixed2float(vs[1]) / scale.y;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5247:20: warning[-Wanalyzer-malloc-leak]: leak of ‘points’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5158:9: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5247:20: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5247:20: danger: ‘points’ leaks here; was allocated at [(7)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/6)
# 5245|           case gs_pe_closepath:
# 5246|               /* close path */
# 5247|->             code = (*vdev_proc(vdev, closepath))(
# 5248|                          vdev,
# 5249|                          points[0].x,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5272:12: warning[-Wanalyzer-malloc-leak]: leak of ‘points’
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5069:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5076:14: branch_false: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5081:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5082:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5083:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5085:23: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5156:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5272:14: branch_true: ...to here
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5272:12: throw: if the called function throws an exception...
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:5272:12: danger: ‘points’ leaks here; was allocated at [(7)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/6)
# 5270|   
# 5271|       /* end path */
# 5272|->     code = (*vdev_proc(vdev, endpath))(vdev, type);
# 5273|       if (code) ecode = code;
# 5274|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def244]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:409:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘approx[0]’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:562:6: enter_function: entry to ‘eprn_split_FS’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:567:6: branch_false: following ‘false’ branch (when ‘colour_model != 0’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:573:12: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:577:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:578:7: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:578:7: call_function: calling ‘split_colour_at_most_2’ from ‘eprn_split_FS’
#  407|       /* Determine the black component for CMY+K */
#  408|       if (colour_model == eprn_DeviceCMY_plus_K &&
#  409|->         approx[0] == approx[1] && approx[1] == approx[2] && approx[0] > 0) {
#  410|         approx[BLACK_INDEX] = approx[0];
#  411|         approx[0] = approx[1] = approx[2] = 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def245]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:511:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘approx[0]’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:480:22: branch_true: following ‘true’ branch (when ‘colorant != 3’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:481:25: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:490:36: branch_true: following ‘true’ branch (when ‘pixel < pixels’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: following ‘true’ branch (when ‘pixel_mod_8 == 8’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:493:23: branch_false: following ‘false’ branch (when ‘plane >= planes’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:497:5: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:497:36: branch_false: following ‘false’ branch (when ‘colorant == -1’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:510:8: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:510:8: branch_true: following ‘true’ branch (when ‘colour_model == 3’)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:511:9: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnfs.c:511:9: danger: use of uninitialized value ‘approx[0]’ here
#  509|       /* Determine the black component for CMY+K */
#  510|       if (colour_model == eprn_DeviceCMY_plus_K &&
#  511|->         approx[0] == approx[1] && approx[1] == approx[2] && approx[0] > 0) {
#  512|         int value = approx[0]*(black_levels - 1);
#  513|         if (value % (non_black_levels - 1) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:447:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:393:12: enter_function: entry to ‘eprn_read_media_data’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:8: branch_true: following ‘true’ branch (when ‘s’ is NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:47: call_function: inlined call to ‘gp_fgetc’ from ‘eprn_read_media_data’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:9: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:446:24: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:447:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:447:26: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:447:26: danger: dereference of NULL ‘s’
#  445|       */
#  446|       if (s == NULL) s = strchr(buffer, '\0');
#  447|->     while (buffer < s && isspace(*(s-1))) s--;
#  448|       *s = '\0';
#  449|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:505:27: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:505:27: throw: if ‘ms_find_code_from_name’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:505:27: danger: ‘new_list’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  503|       }
#  504|       {
#  505|->       ms_MediaCode code = ms_find_code_from_name(tables, s, eprn->flag_desc);
#  506|         if (code == ms_none) {
#  507|           eprintf5("%s" ERRPREF "Unknown media name (%s) in "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:506:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:507:9: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:507:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:507:9: danger: ‘new_list’ leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
#  505|         ms_MediaCode code = ms_find_code_from_name(tables, s, eprn->flag_desc);
#  506|         if (code == ms_none) {
#  507|->         eprintf5("%s" ERRPREF "Unknown media name (%s) in "
#  508|               "media configuration file\n%s  %s, line %d.\n",
#  509|             epref, s, epref, eprn->media_file, line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:514:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:506:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:513:11: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:513:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:514:9: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:514:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/eprn/eprnparm.c:514:9: danger: ‘new_list’ leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
#  512|         }
#  513|         if (code & MS_ROTATED_FLAG) {
#  514|->         eprintf5("%s" ERRPREF "Invalid substring \"" MS_ROTATED_STRING
#  515|               "\" in media name (%s)\n"
#  516|             "%s  in media configuration file %s, line %d.\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:308:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:272:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:283:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:283:6: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:286:9: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:287:6: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:287:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:294:10: branch_true: following ‘true’ branch (when ‘t’ is NULL)...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:294:45: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:299:7: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:305:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:306:7: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:308:14: danger: dereference of NULL ‘t’
#  306|         flags |= flag;
#  307|         s = t;
#  308|->     } while (*t != '\0');
#  309|     }
#  310|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def251]
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:376:7: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:368:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:369:29: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:369:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:370:18: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:371:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:375:16: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/mediasize.c:376:7: danger: argument 1 (‘buffer’) NULL where non-null expected
#  374|         }
#  375|         *code &= ~flag_list[j].code;
#  376|->       strcpy(buffer, flag_list[j].name);
#  377|         buffer += l;
#  378|         *length -= l;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def252]
ghostscript-10.05.1/contrib/pcl3/eprn/pagecount.c:67:8: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.05.1/contrib/pcl3/eprn/pagecount.c:58:12: enter_function: entry to ‘lock_file’
ghostscript-10.05.1/contrib/pcl3/eprn/pagecount.c:67:8: call_function: inlined call to ‘gp_get_file’ from ‘lock_file’
ghostscript-10.05.1/contrib/pcl3/eprn/pagecount.c:67:8: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/eprn/pagecount.c:67:8: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#   65|   
#   66|     /* Obtain file descriptor */
#   67|->   fd = fileno(gp_get_file(f));
#   68|     if (fd == -1) {
#   69|       fprintf(stderr, ERRPREFIX "Cannot obtain file descriptor (%s).\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:360:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:346:6: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:352:44: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:360:12: branch_true: following ‘true’ branch (when ‘t > s’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:360:21: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:360:21: danger: dereference of NULL ‘t’
#  358|       char *t = strchr(s, '\0');
#  359|   
#  360|->     while (s < t && isspace(*(t-1))) t--;
#  361|       *t = '\0';
#  362|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:361:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:346:6: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:352:44: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:360:12: branch_false: following ‘false’ branch (when ‘t <= s’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:361:5: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:361:5: danger: dereference of NULL ‘t’
#  359|   
#  360|       while (s < t && isspace(*(t-1))) t--;
#  361|->     *t = '\0';
#  362|     }
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: warning[-Wanalyzer-malloc-leak]: leak of ‘lengths’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1507:29: acquire_memory: allocated here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1508:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: throw: if ‘eprn_number_of_octets’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: danger: ‘lengths’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1510|       goto end;
# 1511|     }
# 1512|->   eprn_number_of_octets((eprn_Device *)dev, lengths);
# 1513|     rd.next = (pcl_OctetString *)malloc(planes*sizeof(pcl_OctetString));
# 1514|     if (!rd.next) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.next’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1508:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1513:32: acquire_memory: allocated here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1539:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1547:28: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1555:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:72: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: throw: if ‘pcl3_begin_page’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: danger: ‘rd.next’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1560|   
# 1561|     /* Open the page and start raster mode */
# 1562|->   rc = convert(pcl3_begin_page(out, &dev->file_data));
# 1563|     if (rc) {
# 1564|       (void) gs_note_error(rc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.workspace[0]’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1508:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1539:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1547:28: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1554:20: acquire_memory: allocated here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1555:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:72: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: throw: if ‘pcl3_begin_page’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: danger: ‘rd.workspace[0]’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
# 1560|   
# 1561|     /* Open the page and start raster mode */
# 1562|->   rc = convert(pcl3_begin_page(out, &dev->file_data));
# 1563|     if (rc) {
# 1564|       (void) gs_note_error(rc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.next’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1470:12: enter_function: entry to ‘pcl3_print_page’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1508:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1513:32: acquire_memory: allocated here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1539:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1547:28: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1555:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:72: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: call_function: inlined call to ‘convert’ from ‘pcl3_print_page’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: throw: if ‘pcl3_begin_raster’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: danger: ‘rd.next’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
# 1565|       goto end;
# 1566|     }
# 1567|->   rc = convert(pcl3_begin_raster(out, &rd));
# 1568|     if (rc) {
# 1569|       (void) gs_note_error(rc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.workspace[0]’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1470:12: enter_function: entry to ‘pcl3_print_page’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1508:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1512:3: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1514:6: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1539:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1547:28: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1548:15: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1554:20: acquire_memory: allocated here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1555:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:72: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_true: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1552:7: branch_false: following ‘false’ branch...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1562:8: call_function: inlined call to ‘convert’ from ‘pcl3_print_page’
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: branch_false: ...to here
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: throw: if ‘pcl3_begin_raster’ throws an exception...
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:1567:8: danger: ‘rd.workspace[0]’ leaks here; was allocated at [(14)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/13)
# 1565|       goto end;
# 1566|     }
# 1567|->   rc = convert(pcl3_begin_raster(out, &rd));
# 1568|     if (rc) {
# 1569|       (void) gs_note_error(rc);

Error: CPPCHECK_WARNING (CWE-457): [#def260]
ghostscript-10.05.1/contrib/pcl3/src/pclsize.c:123: warning[uninitvar]: Uninitialized variable: &key.ps
#  121|   
#  122|     key.mc = ms_without_flags(code) |( code & PCL_CARD_FLAG);
#  123|->   result = (const CodeEntry *)bsearch(&key, table->code_map, array_size(code_map),
#  124|       sizeof(CodeEntry), cmp_by_size);
#  125|   

Error: CPPCHECK_WARNING (CWE-457): [#def261]
ghostscript-10.05.1/contrib/pcl3/src/pclsize.c:164: warning[uninitvar]: Uninitialized variable: &key.mc
#  162|   
#  163|     key.ps = code;
#  164|->   result = (const CodeEntry *)bsearch(&key, table->inverse_map,
#  165|       array_size(code_map), sizeof(CodeEntry), cmp_by_code);
#  166|     if (result == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def262]
ghostscript-10.05.1/cups/gdevcups.c:2994:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.05.1/cups/gdevcups.c:2889:1: enter_function: entry to ‘cups_print_pages’
ghostscript-10.05.1/cups/gdevcups.c:2952:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/cups/gdevcups.c:2955:3: branch_false: ...to here
ghostscript-10.05.1/cups/gdevcups.c:2964:6: branch_false: following ‘false’ branch...
ghostscript-10.05.1/cups/gdevcups.c:2967:22: branch_false: ...to here
ghostscript-10.05.1/cups/gdevcups.c:2973:6: branch_true: following ‘true’ branch...
ghostscript-10.05.1/cups/gdevcups.c:2975:21: branch_true: ...to here
ghostscript-10.05.1/cups/gdevcups.c:2994:25: call_function: inlined call to ‘gp_get_file’ from ‘cups_print_pages’
ghostscript-10.05.1/cups/gdevcups.c:2994:25: branch_true: ...to here
ghostscript-10.05.1/cups/gdevcups.c:2994:25: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 2992|          is a temporary workaround for the time being until up-to-date CUPS
# 2993|          libraries get included. */
# 2994|->     if ((cups->stream = cupsRasterOpen(fileno(gp_get_file(cups->file)),
# 2995|   #if defined(CUPS_RASTER_HAVE_PWGRASTER)
# 2996|                                          (strcasecmp(cups->header.MediaClass,

Error: GCC_ANALYZER_WARNING (CWE-835): [#def263]
ghostscript-10.05.1/devices/gdev4693.c:124:35: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/devices/gdev4693.c:124:35: danger: infinite loop here
ghostscript-10.05.1/devices/gdev4693.c:124:35: branch_true: if it ever follows ‘true’ branch, it will always do so...
ghostscript-10.05.1/devices/gdev4693.c:125:29: branch_true: ...to here
#  122|           *p++ = (char)0x81;
#  123|   
#  124|->         for (checksum = 0, i = 0; &header[i] != p; i++)
#  125|                   checksum += header[i];
#  126|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
ghostscript-10.05.1/devices/gdevdjtc.c:133:20: warning[-Wanalyzer-malloc-leak]: leak of ‘bitData’
ghostscript-10.05.1/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.05.1/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:125:24: acquire_memory: allocated here
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:129:22: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevdjtc.c:133:20: branch_true: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:133:20: throw: if ‘gdev_prn_copy_scan_lines’ throws an exception...
ghostscript-10.05.1/devices/gdevdjtc.c:133:20: danger: ‘bitData’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  131|               byte *endData;
#  132|   
#  133|->             code = gdev_prn_copy_scan_lines(pdev, lnum, bitData, lineSize);
#  134|               if (code < 0)
#  135|                   goto xit;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
ghostscript-10.05.1/devices/gdevdjtc.c:267:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
ghostscript-10.05.1/devices/gdevdjtc.c:77:1: enter_function: entry to ‘djet500c_print_page’
ghostscript-10.05.1/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.05.1/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.05.1/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:129:22: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevdjtc.c:133:20: branch_true: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:134:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevdjtc.c:138:23: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:153:20: branch_false: following ‘false’ branch (when ‘planeSize >= lineLen’)...
ghostscript-10.05.1/devices/gdevdjtc.c:168:17: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:168:29: branch_false: following ‘false’ branch (when ‘k >= lineLen’)...
ghostscript-10.05.1/devices/gdevdjtc.c:186:20: branch_false: ...to here
ghostscript-10.05.1/devices/gdevdjtc.c:202:25: call_function: calling ‘mode2compress’ from ‘djet500c_print_page’
#  265|       while (1)
#  266|       {
#  267|->         test = *exam++;
#  268|           /* Advance exam until test==*exam  or exam==end_row */
#  269|           while ((test != *exam) && (exam < end_row))

Error: CPPCHECK_WARNING (CWE-476): [#def266]
ghostscript-10.05.1/devices/gdevdsp.c:980: warning[nullPointer]: Possible null pointer dereference: dh.data
#  978|               code = 0;
#  979|               for (i=0; i<dh.size; i++) {
#  980|->                 val = dh.data[i];
#  981|                   if ((val >= '0') && (val <= '9'))
#  982|                       val = val - '0';

Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
ghostscript-10.05.1/devices/gdevijs.c:822:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:822:19: throw: if ‘ijs_invoke_server’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:822:19: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  820|        * someone changing the ijs server (e.g. running a shell).
#  821|        */
#  822|->     ijsdev->ctx = ijs_invoke_server(ijsdev->IjsServer);
#  823|       if (ijsdev->ctx == (IjsClientCtx *)NULL) {
#  824|           emprintf1(ijsdev->memory,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def268]
ghostscript-10.05.1/devices/gdevijs.c:824:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:824:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:824:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:824:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  822|       ijsdev->ctx = ijs_invoke_server(ijsdev->IjsServer);
#  823|       if (ijsdev->ctx == (IjsClientCtx *)NULL) {
#  824|->         emprintf1(ijsdev->memory,
#  825|                     "Can't start ijs server \042%s\042\n", ijsdev->IjsServer);
#  826|           if (fd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def269]
ghostscript-10.05.1/devices/gdevijs.c:827:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:824:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:826:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.05.1/devices/gdevijs.c:827:13: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:827:13: throw: if ‘close’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:827:13: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  825|                     "Can't start ijs server \042%s\042\n", ijsdev->IjsServer);
#  826|           if (fd >= 0)
#  827|->             close(fd);
#  828|           return gs_note_error(gs_error_ioerror);
#  829|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def270]
ghostscript-10.05.1/devices/gdevijs.c:831:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:831:27: throw: if ‘ijs_client_get_version’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:831:27: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  829|       }
#  830|   
#  831|->     ijsdev->ijs_version = ijs_client_get_version (ijsdev->ctx);
#  832|   
#  833|       if (ijs_client_open(ijsdev->ctx) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def271]
ghostscript-10.05.1/devices/gdevijs.c:833:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:9: throw: if ‘ijs_client_open’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:833:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  831|       ijsdev->ijs_version = ijs_client_get_version (ijsdev->ctx);
#  832|   
#  833|->     if (ijs_client_open(ijsdev->ctx) < 0) {
#  834|           emprintf(ijsdev->memory, "Can't open ijs\n");
#  835|           if (fd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def272]
ghostscript-10.05.1/devices/gdevijs.c:834:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:834:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:834:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:834:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  832|   
#  833|       if (ijs_client_open(ijsdev->ctx) < 0) {
#  834|->         emprintf(ijsdev->memory, "Can't open ijs\n");
#  835|           if (fd >= 0)
#  836|               close(fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def273]
ghostscript-10.05.1/devices/gdevijs.c:836:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:834:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:835:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.05.1/devices/gdevijs.c:836:13: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:836:13: throw: if ‘close’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:836:13: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
#  834|           emprintf(ijsdev->memory, "Can't open ijs\n");
#  835|           if (fd >= 0)
#  836|->             close(fd);
#  837|           return gs_note_error(gs_error_ioerror);
#  838|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def274]
ghostscript-10.05.1/devices/gdevijs.c:839:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:839:9: throw: if ‘ijs_client_begin_job’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:839:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
#  837|           return gs_note_error(gs_error_ioerror);
#  838|       }
#  839|->     if (ijs_client_begin_job(ijsdev->ctx, 0) < 0) {
#  840|           emprintf(ijsdev->memory, "Can't begin ijs job 0\n");
#  841|           ijs_client_close(ijsdev->ctx);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def275]
ghostscript-10.05.1/devices/gdevijs.c:840:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:840:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:840:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
#  838|       }
#  839|       if (ijs_client_begin_job(ijsdev->ctx, 0) < 0) {
#  840|->         emprintf(ijsdev->memory, "Can't begin ijs job 0\n");
#  841|           ijs_client_close(ijsdev->ctx);
#  842|           if (fd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def276]
ghostscript-10.05.1/devices/gdevijs.c:841:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:841:9: throw: if ‘ijs_client_close’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:841:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
#  839|       if (ijs_client_begin_job(ijsdev->ctx, 0) < 0) {
#  840|           emprintf(ijsdev->memory, "Can't begin ijs job 0\n");
#  841|->         ijs_client_close(ijsdev->ctx);
#  842|           if (fd >= 0)
#  843|               close(fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def277]
ghostscript-10.05.1/devices/gdevijs.c:843:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:842:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.05.1/devices/gdevijs.c:843:13: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:843:13: throw: if ‘close’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:843:13: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/12)
#  841|           ijs_client_close(ijsdev->ctx);
#  842|           if (fd >= 0)
#  843|->             close(fd);
#  844|           return gs_note_error(gs_error_ioerror);
#  845|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def278]
ghostscript-10.05.1/devices/gdevijs.c:851:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.05.1/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.05.1/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.05.1/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.05.1/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:839:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevijs.c:847:8: branch_false: ...to here
ghostscript-10.05.1/devices/gdevijs.c:847:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.05.1/devices/gdevijs.c:851:9: branch_true: ...to here
ghostscript-10.05.1/devices/gdevijs.c:851:9: throw: if ‘gs_snprintf’ throws an exception...
ghostscript-10.05.1/devices/gdevijs.c:851:9: danger: ‘fd’ leaks here; was opened at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
#  849|              platforms. In that case, this branch should be #ifdef'ed out.
#  850|           */
#  851|->         gs_snprintf(buf, sizeof(buf), "%d", fd);
#  852|           ijs_client_set_param(ijsdev->ctx, 0, "OutputFD", buf, strlen(buf));
#  853|           close(fd);

Error: CPPCHECK_WARNING (CWE-758): [#def279]
ghostscript-10.05.1/devices/gdevl31s.c:130: error[ctuPointerArith]: Pointer arithmetic overflow; 'buffer' buffer size is 4096
#  128|   lj3100sw_output_data_byte(gp_file *prn_stream, char *buffer, char **pptr, int val)
#  129|   {
#  130|->         if (*pptr >= buffer + BUFFERSIZE)
#  131|                   lj3100sw_flush_buffer(prn_stream, buffer, pptr);
#  132|           *(*pptr)++ = val;

Error: COMPILER_WARNING: [#def280]
ghostscript-10.05.1/devices/gdevlxm.c: scope_hint: In function ‘lxm5700m_print_page’
ghostscript-10.05.1/devices/gdevlxm.c:275:21: warning[-Wunused-but-set-variable=]: variable ‘retval’ set but not used
#  275 |                 int retval=0;
#      |                     ^~~~~~
#  273|                   int words[directorySize];
#  274|                   bool f, sum;
#  275|->                 int retval=0;
#  276|                   int j,c,y;
#  277|                   int j1,c1;

Error: CPPCHECK_WARNING (CWE-457): [#def281]
ghostscript-10.05.1/devices/gdevpbm.c:1258: warning[uninitvar]: Uninitialized variable: raw
# 1256|               if (x > end)
# 1257|                   outp -= 3;
# 1258|->             if (gp_fwrite(raw, 1, outp - raw, pstream) != outp - raw)
# 1259|                   return_error(gs_error_ioerror);
# 1260|           }

Error: CPPCHECK_WARNING (CWE-457): [#def282]
ghostscript-10.05.1/devices/gdevpdfimg.c:610: error[uninitvar]: Uninitialized variable: buf
#  608|               stream_cursor_write_init(&w, buf, sizeof(buf));
#  609|               status = (*templat->process) (st, &r, &w, true);
#  610|->             stream_write(s, buf, (uint) (w.ptr + 1 - buf));
#  611|           }
#  612|           while (status == 1);

Error: COMPILER_WARNING: [#def283]
ghostscript-10.05.1/devices/gdevpng.c: scope_hint: In function ‘do_png_print_page’
ghostscript-10.05.1/devices/gdevpng.c:504:17: warning[-Wunused-but-set-variable=]: variable ‘valid’ set but not used
#  504 |     png_uint_32 valid = 0;
#      |                 ^~~~~
#  502|       png_color *palettep;
#  503|       png_uint_16 num_palette;
#  504|->     png_uint_32 valid = 0;
#  505|       int upfactor, downfactor;
#  506|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
ghostscript-10.05.1/devices/gdevtknk.c:162:16: warning[-Wanalyzer-malloc-leak]: leak of ‘indata1’
ghostscript-10.05.1/devices/gdevtknk.c:144:21: acquire_memory: allocated here
ghostscript-10.05.1/devices/gdevtknk.c:145:8: branch_false: following ‘false’ branch (when ‘indata1’ is non-NULL)...
ghostscript-10.05.1/devices/gdevtknk.c:148:15: branch_false: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:160:22: branch_true: following ‘true’ branch (when ‘scan_line < scan_lines’)...
ghostscript-10.05.1/devices/gdevtknk.c:162:16: branch_true: ...to here
ghostscript-10.05.1/devices/gdevtknk.c:162:16: throw: if ‘gdev_prn_copy_scan_lines’ throws an exception...
ghostscript-10.05.1/devices/gdevtknk.c:162:16: danger: ‘indata1’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  160|       for (scan_line=0;scan_line<scan_lines;scan_line++){
#  161|           /* get data */
#  162|->         code = gdev_prn_copy_scan_lines(pdev,scan_line,indata1,line_size);
#  163|           if (code < 0)
#  164|               goto xit;

Error: CPPCHECK_WARNING (CWE-190): [#def285]
ghostscript-10.05.1/devices/gdevupd.c:3517: error[integerOverflow]: Signed integer underflow for expression 'hv-lv'.
# 3515|               upd->valbuf[i] = v;
# 3516|            }
# 3517|->          scale = (float) comp->threshold / (float) (hv - lv);
# 3518|            lv   += (int32_t)(comp->threshold / (2*scale));
# 3519|            for(i = icomp; i < upd->nvalbuf; i += upd->ncomp)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
ghostscript-10.05.1/devices/gdevupd.c:4216:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.05.1/devices/gdevupd.c:4196:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.05.1/devices/gdevupd.c:4199:15: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4208:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4210:10: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4211:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4212:10: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4216:25: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4216:58: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4216:57: danger: dereference of NULL ‘ip’
# 4214|   
# 4215|            for(iy = 1; iy < upd->ints[I_NYPASS]; ++iy) {
# 4216|->             for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4217|               *ip++ = 1;
# 4218|            }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def287]
ghostscript-10.05.1/devices/gdevupd.c:4217:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.05.1/devices/gdevupd.c:4196:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.05.1/devices/gdevupd.c:4199:15: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4208:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4210:10: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4211:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4212:10: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4216:25: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4217:14: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4217:13: danger: dereference of NULL ‘ip’
# 4215|            for(iy = 1; iy < upd->ints[I_NYPASS]; ++iy) {
# 4216|               for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4217|->             *ip++ = 1;
# 4218|            }
# 4219|            for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def288]
ghostscript-10.05.1/devices/gdevupd.c:4219:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.05.1/devices/gdevupd.c:4196:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.05.1/devices/gdevupd.c:4199:15: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4208:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4210:10: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4211:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4212:10: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4219:22: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4219:55: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4219:54: danger: dereference of NULL ‘ip’
# 4217|               *ip++ = 1;
# 4218|            }
# 4219|->          for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4220|            *ip = upd->ints[I_NYPASS] * upd->ints[I_PINS2WRITE]
# 4221|                - upd->ints[I_NYPASS] + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def289]
ghostscript-10.05.1/devices/gdevupd.c:4220:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.05.1/devices/gdevupd.c:4196:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.05.1/devices/gdevupd.c:4199:15: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4208:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4210:10: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4211:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4212:10: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4215:22: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4219:22: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4220:16: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4220:10: danger: dereference of NULL ‘ip’
# 4218|            }
# 4219|            for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4220|->          *ip = upd->ints[I_NYPASS] * upd->ints[I_PINS2WRITE]
# 4221|                - upd->ints[I_NYPASS] + 1;
# 4222|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
ghostscript-10.05.1/devices/gdevupd.c:4262:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.05.1/devices/gdevupd.c:4196:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.05.1/devices/gdevupd.c:4199:15: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4254:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4257:10: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4257:10: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4258:10: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4261:29: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:4262:21: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:4262:13: danger: dereference of NULL ‘ip’
# 4260|   
# 4261|            for(i = 0, ix = 0; i < upd->int_a[IA_STD_IX].size; ++i) {
# 4262|->             *ip++ = ix++;
# 4263|               if(ix == upd->ints[I_NXPASS]) ix = 0;
# 4264|            }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
ghostscript-10.05.1/devices/gdevupd.c:5442:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
ghostscript-10.05.1/devices/gdevupd.c:5424:4: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5425:7: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5435:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5437:13: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5438:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5439:43: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5441:26: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5442:17: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5442:16: danger: dereference of NULL ‘bp’
# 5440|               upd->int_a[IA_ROWMASK].data = bp;
# 5441|               for (i = 0 ; i < upd->ints[I_PATRPT] ; i++){
# 5442|->                *bp++  = 1; /* black */
# 5443|               }
# 5444|            }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def292]
ghostscript-10.05.1/devices/gdevupd.c:5453:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
ghostscript-10.05.1/devices/gdevupd.c:5424:4: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5425:7: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5446:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5448:13: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5449:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5450:42: branch_false: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5452:26: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/gdevupd.c:5453:17: branch_true: ...to here
ghostscript-10.05.1/devices/gdevupd.c:5453:16: danger: dereference of NULL ‘bp’
# 5451|               upd->int_a[IA_SCNOFS].data = bp;
# 5452|               for (i = 0 ; i < upd->ints[I_PATRPT] ; i++){
# 5453|->                *bp++  = i;
# 5454|               }
# 5455|            }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def293]
ghostscript-10.05.1/devices/gxfcopy.c:515:13: warning[-Wanalyzer-null-argument]: use of NULL ‘prefix’ where non-null expected
ghostscript-10.05.1/devices/gxfcopy.c:1059:1: enter_function: entry to ‘copy_glyph_type1’
ghostscript-10.05.1/devices/gxfcopy.c:1068:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/gxfcopy.c:1070:12: branch_false: ...to here
ghostscript-10.05.1/devices/gxfcopy.c:1070:12: call_function: calling ‘copy_glyph_data’ from ‘copy_glyph_type1’
#  513|           if ((options & COPY_GLYPH_NO_OLD) ||
#  514|               pcg->gdata.size != prefix_bytes + size ||
#  515|->             memcmp(pcg->gdata.data, prefix, prefix_bytes) ||
#  516|               memcmp(pcg->gdata.data + prefix_bytes,
#  517|                      pgdata->bits.data, size)

Error: CPPCHECK_WARNING (CWE-401): [#def294]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:156: error[memleak]: Memory leak: alloced
#  154|     result = (void *)(pad + (char *)alloced);
#  155|     ((int *)result)[-1] = pad;
#  156|->   return result;
#  157|   }
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1406:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1454:1: enter_function: entry to ‘even_better_line’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1470:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1473:11: call_function: calling ‘even_better_compress_rll’ from ‘even_better_line’
# 1404|             if (count > 0xffff - whole || val != last_val)
# 1405|               {
# 1406|->               dst[rll_idx].length = count;
# 1407|                 dst[rll_idx].value = last_val;
# 1408|                 rll_idx++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1424:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1454:1: enter_function: entry to ‘even_better_line’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1470:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1473:11: call_function: calling ‘even_better_compress_rll’ from ‘even_better_line’
# 1422|             if (count >= 0xffff - whole || val != last_val)
# 1423|               {
# 1424|->               dst[rll_idx].length = count;
# 1425|                 dst[rll_idx].value = last_val;
# 1426|                 rll_idx++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1439:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1454:1: enter_function: entry to ‘even_better_line’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1470:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1472:34: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1473:11: call_function: calling ‘even_better_compress_rll’ from ‘even_better_line’
# 1437|           }
# 1438|       }
# 1439|->   dst[rll_idx].length = count;
# 1440|     dst[rll_idx].value = last_val;
# 1441|     rll_idx++;

Error: CPPCHECK_WARNING (CWE-476): [#def298]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ebc
# 1541|     char *rs_lut;
# 1542|     double rbscale = eb_compute_rbscale(params);
# 1543|->   int even_c1 = ebc->even_c1;
# 1544|     int even_rlimit = 1 << (30 - EVEN_SHIFT + even_c1);
# 1545|     int do_shadows = params->do_shadows;

Error: CPPCHECK_WARNING (CWE-476): [#def299]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1551: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1549|     result = (EBPlaneCtx *)malloc (sizeof(EBPlaneCtx));
# 1550|   
# 1551|->   result->source_width = source_width;
# 1552|     result->dest_width = dest_width;
# 1553|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def300]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1551:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1549:26: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1551:3: danger: ‘result’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1549|     result = (EBPlaneCtx *)malloc (sizeof(EBPlaneCtx));
# 1550|   
# 1551|->   result->source_width = source_width;
# 1552|     result->dest_width = dest_width;
# 1553|   

Error: CPPCHECK_WARNING (CWE-476): [#def301]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1552: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1550|   
# 1551|     result->source_width = source_width;
# 1552|->   result->dest_width = dest_width;
# 1553|   
# 1554|     new_lut = (int *)malloc ((ET_SRC_MAX + 1) * sizeof(int));

Error: CPPCHECK_WARNING (CWE-476): [#def302]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1569: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_lut
# 1567|         else
# 1568|           nli = lut[i] >> (24 - EVEN_SHIFT);
# 1569|->       new_lut[i] = (1 << EVEN_SHIFT) - nli;
# 1570|       }
# 1571|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def303]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1569:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_lut’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1554:20: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1569:7: danger: ‘new_lut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1567|         else
# 1568|           nli = lut[i] >> (24 - EVEN_SHIFT);
# 1569|->       new_lut[i] = (1 << EVEN_SHIFT) - nli;
# 1570|       }
# 1571|   

Error: CPPCHECK_WARNING (CWE-476): [#def304]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_lut
# 1579|       {
# 1580|         double rb;
# 1581|->       int nl = new_lut[i] * (params->levels - 1);
# 1582|         int rs;
# 1583|   

Error: CPPCHECK_WARNING (CWE-476): [#def305]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1594: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rs_lut
# 1592|   
# 1593|         rs = eb_compute_randshift(nl, rs_base, do_shadows, params->levels);
# 1594|->       rs_lut[i] = rs;
# 1595|   
# 1596|         if (params->do_shadows)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1594:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rs_lut’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1573:20: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1594:7: danger: ‘rs_lut + (long unsigned int)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 1592|   
# 1593|         rs = eb_compute_randshift(nl, rs_base, do_shadows, params->levels);
# 1594|->       rs_lut[i] = rs;
# 1595|   
# 1596|         if (params->do_shadows)

Error: CPPCHECK_WARNING (CWE-476): [#def307]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rb_lut
# 1609|               }
# 1610|           }
# 1611|->       rb_lut[i] = rb;
# 1612|   
# 1613|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rb_lut’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1572:19: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:7: danger: ‘rb_lut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 1609|               }
# 1610|           }
# 1611|->       rb_lut[i] = rb;
# 1612|   
# 1613|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_false: following ‘false’ branch (when ‘i == 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1615:3: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1622:27: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1625:6: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1627:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1637:15: branch_true: following ‘true’ branch (when ‘i < dest_width’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:7: danger: ‘calloc((long unsigned int)dest_width, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/24)
# 1637|     for (i = 0; i < dest_width; i++)
# 1638|       {
# 1639|->       result->a_line[i] = 1;
# 1640|         result->b_line[i] = 1;
# 1641|         result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1640:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_false: following ‘false’ branch (when ‘i == 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1615:3: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1623:27: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1625:6: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1627:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1637:15: branch_true: following ‘true’ branch (when ‘i < dest_width’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1640:7: danger: ‘calloc((long unsigned int)dest_width, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/24)
# 1638|       {
# 1639|         result->a_line[i] = 1;
# 1640|->       result->b_line[i] = 1;
# 1641|         result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);
# 1642|         if (do_shadows)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1641:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_false: following ‘false’ branch (when ‘i == 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1615:3: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1620:29: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1625:6: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1627:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1637:15: branch_true: following ‘true’ branch (when ‘i < dest_width’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1641:7: danger: ‘calloc((long unsigned int)dest_width, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/24)
# 1639|         result->a_line[i] = 1;
# 1640|         result->b_line[i] = 1;
# 1641|->       result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);
# 1642|         if (do_shadows)
# 1643|           {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1644:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*result.a_line_sh + (long unsigned int)i * 4’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_false: following ‘false’ branch (when ‘i == 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1615:3: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1625:6: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1627:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1628:34: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1637:15: branch_true: following ‘true’ branch (when ‘i < dest_width’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1642:10: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1644:11: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1644:11: danger: ‘*result.a_line_sh + (long unsigned int)i * 4’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/26)
# 1642|         if (do_shadows)
# 1643|           {
# 1644|->           result->a_line_sh[i] = 1;
# 1645|             result->b_line_sh[i] = 1;
# 1646|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1645:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*result.b_line_sh + (long unsigned int)i * 4’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1555:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1559:10: branch_true: following ‘true’ branch (when ‘lut’ is NULL)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1562:18: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1581:23: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1584:10: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1593:12: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1596:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1598:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1600:14: branch_true: following ‘true’ branch (when ‘nl == 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1611:13: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1578:15: branch_false: following ‘false’ branch (when ‘i == 256’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1615:3: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1625:6: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1627:34: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1629:34: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1637:15: branch_true: following ‘true’ branch (when ‘i < dest_width’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1639:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1642:10: branch_true: following ‘true’ branch (when ‘do_shadows != 0’)...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1644:11: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1645:11: danger: ‘*result.b_line_sh + (long unsigned int)i * 4’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/26)
# 1643|           {
# 1644|             result->a_line_sh[i] = 1;
# 1645|->           result->b_line_sh[i] = 1;
# 1646|           }
# 1647|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1670:7: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1655:44: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1661:6: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1665:7: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1670:7: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1670:7: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1668|         header[3] = ET_SRC_MAX;
# 1669|         header[4] = sizeof(ET_SrcPixel);
# 1670|->       fwrite (header, sizeof(int), sizeof(header) / sizeof(header[0]),
# 1671|                 params->dump_file);
# 1672|         if (params->dump_level >= EB_DUMP_PARAMS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1675:11: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1655:44: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1661:6: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1665:7: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1672:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1675:56: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1675:11: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1675:11: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1673|           {
# 1674|   
# 1675|->           fwrite (params, 1, sizeof(EvenBetterParams), params->dump_file);
# 1676|           }
# 1677|         if (params->dump_level >= EB_DUMP_LUTS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1681:13: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1655:44: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1661:6: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1665:7: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1677:10: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1677:10: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1680:23: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1682:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1681:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1681:13: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1679|             int i;
# 1680|             for (i = 0; i < params->n_planes; i++)
# 1681|->             fwrite (params->luts[i], sizeof(int), ET_SRC_MAX + 1,
# 1682|                       params->dump_file);
# 1683|           }

Error: CPPCHECK_WARNING (CWE-476): [#def317]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1686: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1684|       }
# 1685|   
# 1686|->   result->source_width = params->source_width;
# 1687|     result->dest_width = params->dest_width;
# 1688|     result->n_planes = n_planes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def318]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1686:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1655:44: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1686:3: danger: ‘result’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1684|       }
# 1685|   
# 1686|->   result->source_width = params->source_width;
# 1687|     result->dest_width = params->dest_width;
# 1688|     result->n_planes = n_planes;

Error: CPPCHECK_WARNING (CWE-476): [#def319]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1687: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1685|   
# 1686|     result->source_width = params->source_width;
# 1687|->   result->dest_width = params->dest_width;
# 1688|     result->n_planes = n_planes;
# 1689|     result->levels = params->levels;

Error: CPPCHECK_WARNING (CWE-476): [#def320]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1688: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1686|     result->source_width = params->source_width;
# 1687|     result->dest_width = params->dest_width;
# 1688|->   result->n_planes = n_planes;
# 1689|     result->levels = params->levels;
# 1690|   

Error: CPPCHECK_WARNING (CWE-476): [#def321]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1689: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1687|     result->dest_width = params->dest_width;
# 1688|     result->n_planes = n_planes;
# 1689|->   result->levels = params->levels;
# 1690|   
# 1691|     result->aspect = params->aspect;

Error: CPPCHECK_WARNING (CWE-476): [#def322]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1691: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1689|     result->levels = params->levels;
# 1690|   
# 1691|->   result->aspect = params->aspect;
# 1692|   
# 1693|     result->even_ehi = 0.6 * (1 << EVEN_SHIFT) / (params->levels - 1);

Error: CPPCHECK_WARNING (CWE-476): [#def323]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1693: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1691|     result->aspect = params->aspect;
# 1692|   
# 1693|->   result->even_ehi = 0.6 * (1 << EVEN_SHIFT) / (params->levels - 1);
# 1694|     result->even_elo = -result->even_ehi;
# 1695|   

Error: CPPCHECK_WARNING (CWE-476): [#def324]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1694: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1692|   
# 1693|     result->even_ehi = 0.6 * (1 << EVEN_SHIFT) / (params->levels - 1);
# 1694|->   result->even_elo = -result->even_ehi;
# 1695|   
# 1696|     result->strengths = (int *)malloc (sizeof(int) * n_planes);

Error: CPPCHECK_WARNING (CWE-476): [#def325]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1696: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1694|     result->even_elo = -result->even_ehi;
# 1695|   
# 1696|->   result->strengths = (int *)malloc (sizeof(int) * n_planes);
# 1697|     memcpy (result->strengths, params->strengths,
# 1698|             sizeof(int) * n_planes);

Error: CPPCHECK_WARNING (CWE-476): [#def326]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1697: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1695|   
# 1696|     result->strengths = (int *)malloc (sizeof(int) * n_planes);
# 1697|->   memcpy (result->strengths, params->strengths,
# 1698|             sizeof(int) * n_planes);
# 1699|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def327]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1697:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)n_planes * 4)’ where non-null expected
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1696:30: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1697:3: danger: argument 1 (‘malloc((long unsigned int)n_planes * 4)’) from [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
# 1695|   
# 1696|     result->strengths = (int *)malloc (sizeof(int) * n_planes);
# 1697|->   memcpy (result->strengths, params->strengths,
# 1698|             sizeof(int) * n_planes);
# 1699|   

Error: CPPCHECK_WARNING (CWE-476): [#def328]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1702: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1700|     log2_levels = even_log2 (params->levels);
# 1701|     log2_aspect = even_log2 (params->aspect);
# 1702|->   result->even_c1 = 6 + log2_aspect + log2_levels - params->even_c1_scale;
# 1703|     result->do_shadows = params->do_shadows;
# 1704|   

Error: CPPCHECK_WARNING (CWE-476): [#def329]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1703: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1701|     log2_aspect = even_log2 (params->aspect);
# 1702|     result->even_c1 = 6 + log2_aspect + log2_levels - params->even_c1_scale;
# 1703|->   result->do_shadows = params->do_shadows;
# 1704|   
# 1705|     result->c_line = (int *)calloc (params->dest_width, sizeof(int));

Error: CPPCHECK_WARNING (CWE-476): [#def330]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1705: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1703|     result->do_shadows = params->do_shadows;
# 1704|   
# 1705|->   result->c_line = (int *)calloc (params->dest_width, sizeof(int));
# 1706|   
# 1707|     result->seed1 = 0x5324879f;

Error: CPPCHECK_WARNING (CWE-476): [#def331]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1707: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1705|     result->c_line = (int *)calloc (params->dest_width, sizeof(int));
# 1706|   
# 1707|->   result->seed1 = 0x5324879f;
# 1708|     result->seed2 = 0xb78d0945;
# 1709|   

Error: CPPCHECK_WARNING (CWE-476): [#def332]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1708: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1706|   
# 1707|     result->seed1 = 0x5324879f;
# 1708|->   result->seed2 = 0xb78d0945;
# 1709|   
# 1710|     result->dump_file = params->dump_file;

Error: CPPCHECK_WARNING (CWE-476): [#def333]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1710: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1708|     result->seed2 = 0xb78d0945;
# 1709|   
# 1710|->   result->dump_file = params->dump_file;
# 1711|     result->dump_level = params->dump_level;
# 1712|   

Error: CPPCHECK_WARNING (CWE-476): [#def334]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1711: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1709|   
# 1710|     result->dump_file = params->dump_file;
# 1711|->   result->dump_level = params->dump_level;
# 1712|   
# 1713|   #ifdef USE_SSE2

Error: CPPCHECK_WARNING (CWE-476): [#def335]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1752: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1750|     else
# 1751|       {
# 1752|->       result->plane_ctx = (EBPlaneCtx **)malloc(sizeof(EBPlaneCtx *) * n_planes);
# 1753|         for (i = 0; i < n_planes; i++)
# 1754|           result->plane_ctx[i] = even_better_plane_new (params, result, i);

Error: CPPCHECK_WARNING (CWE-476): [#def336]
ghostscript-10.05.1/devices/rinkj/evenbetter-rll.c:1754: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1752|         result->plane_ctx = (EBPlaneCtx **)malloc(sizeof(EBPlaneCtx *) * n_planes);
# 1753|         for (i = 0; i < n_planes; i++)
# 1754|->         result->plane_ctx[i] = even_better_plane_new (params, result, i);
# 1755|       }
# 1756|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def337]
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  102|     result = (RinkjByteStreamFile *)malloc (sizeof (RinkjByteStreamFile));
#  103|   
#  104|->   result->super.write = rinkj_byte_stream_file_write;
#  105|     result->f = f;
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def338]
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  103|   
#  104|     result->super.write = rinkj_byte_stream_file_write;
#  105|->   result->f = f;
#  106|   
#  107|     return &result->super;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def339]
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:105:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:102:35: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:105:3: danger: ‘result’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  103|   
#  104|     result->super.write = rinkj_byte_stream_file_write;
#  105|->   result->f = f;
#  106|   
#  107|     return &result->super;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:107:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:102:35: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/rinkj-byte-stream.c:107:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  105|     result->f = f;
#  106|   
#  107|->   return &result->super;
#  108|   }

Error: CPPCHECK_WARNING (CWE-476): [#def341]
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   39|   
#   40|     result = malloc (size + 1);
#   41|->   memcpy (result, src, size);
#   42|     result[size] = 0;
#   43|     return result;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def342]
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:41:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:109:1: enter_function: entry to ‘rinkj_config_keyval’
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:115:6: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:115:6: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:118:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:123:14: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:124:10: branch_true: following ‘true’ branch (when ‘p_nl’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:127:20: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:136:24: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:138:22: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:138:14: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:140:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:140:21: call_function: calling ‘rinkj_strdup_size’ from ‘rinkj_config_keyval’
#   39|   
#   40|     result = malloc (size + 1);
#   41|->   memcpy (result, src, size);
#   42|     result[size] = 0;
#   43|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def343]
ghostscript-10.05.1/devices/rinkj/rinkj-config.c:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   40|     result = malloc (size + 1);
#   41|     memcpy (result, src, size);
#   42|->   result[size] = 0;
#   43|     return result;
#   44|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:30:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:35:1: enter_function: entry to ‘rinkj_device_set_param’
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:40:15: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:49:12: call_function: inlined call to ‘rinkj_device_set’ from ‘rinkj_device_set_param’
#   28|     if (self->init_happened != 0)
#   29|       return -1;
#   30|->   return self->set (self, config);
#   31|   }
#   32|   

Error: CPPCHECK_WARNING (CWE-476): [#def345]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   43|     /* This implementation is in terms of device_set, but we're going to
#   44|        change the prototype of the device so this is native. */
#   45|->   memcpy (buf, key, keylen);
#   46|     memcpy (buf + keylen, ": ", 2);
#   47|     memcpy (buf + keylen + 2, value, value_size);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def346]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:45:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:40:15: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:45:3: danger: argument 1 (‘buf’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#   43|     /* This implementation is in terms of device_set, but we're going to
#   44|        change the prototype of the device so this is native. */
#   45|->   memcpy (buf, key, keylen);
#   46|     memcpy (buf + keylen, ": ", 2);
#   47|     memcpy (buf + keylen + 2, value, value_size);

Error: CPPCHECK_WARNING (CWE-682): [#def347]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:46: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#   44|        change the prototype of the device so this is native. */
#   45|     memcpy (buf, key, keylen);
#   46|->   memcpy (buf + keylen, ": ", 2);
#   47|     memcpy (buf + keylen + 2, value, value_size);
#   48|     buf[keylen + 2 + value_size] = 0;

Error: CPPCHECK_WARNING (CWE-682): [#def348]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:47: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#   45|     memcpy (buf, key, keylen);
#   46|     memcpy (buf + keylen, ": ", 2);
#   47|->   memcpy (buf + keylen + 2, value, value_size);
#   48|     buf[keylen + 2 + value_size] = 0;
#   49|     status = rinkj_device_set (self, buf);

Error: CPPCHECK_WARNING (CWE-476): [#def349]
ghostscript-10.05.1/devices/rinkj/rinkj-device.c:48: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   46|     memcpy (buf + keylen, ": ", 2);
#   47|     memcpy (buf + keylen + 2, value, value_size);
#   48|->   buf[keylen + 2 + value_size] = 0;
#   49|     status = rinkj_device_set (self, buf);
#   50|     free (buf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:586:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  584|         s0 = src[i * 2] << pass;
#  585|         s1 = src[i * 2 + 1] << pass;
#  586|->       dst[i] = (s0 & 0x80) | ((s0 & 0x20) << 1) | ((s0 & 8) << 2) | ((s0 & 2) << 3) |
#  587|           ((s1 & 0x80) >> 4) | ((s1 & 0x20) >> 3) | ((s1 & 8) >> 2) | ((s1 & 2) >> 1);
#  588|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:622:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  620|         s2 = src[i * 4 + 2] << shift;
#  621|         s3 = src[i * 4 + 3] << shift;
#  622|->       dst[i] = (s0 & 0x80) | ((s0 & 8) << 3) |
#  623|           ((s1 & 0x80) >> 2) | ((s1 & 8) << 1) |
#  624|           ((s2 & 0x80) >> 4) | ((s2 & 8) >> 1) |

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:664:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  662|         s0 = src[i * 2] << shift;
#  663|         s1 = src[i * 2 + 1] << shift;
#  664|->       dst[i] = (s0 & 0xc0) | ((s0 & 0x0c) << 2) |
#  665|           ((s1 & 0xc0) >> 4) | ((s1 & 0x0c) >> 2);
#  666|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def353]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:670:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  668|       {
#  669|         s0 = src[n_bytes - 1] << shift;
#  670|->       dst[i] = (s0 & 0xc0) | ((s0 & 0x0c) << 2);
#  671|       }
#  672|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:700:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  698|         s2 = src[i * 4 + 2] << shift;
#  699|         s3 = src[i * 4 + 3] << shift;
#  700|->       dst[i] = (s0 & 0xc0) | ((s1 & 0xc0) >> 2) |
#  701|           ((s2 & 0xc0) >> 4) | ((s3 & 0xc0) >> 6);
#  702|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:724:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  722|       {
#  723|         unsigned char s = src[i];
#  724|->       dst[i * 2] = (((s & 0x80) >> 1) | ((s & 0x40) >> 2) |
#  725|                       ((s & 0x20) >> 3) | ((s & 0x10) >> 4)) * DOT;
#  726|         dst[i * 2 + 1] = (((s & 8) << 3) | ((s & 4) << 2) |

Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:737:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  735|   
#  736|     for (i = 0; i < n_bytes; i++)
#  737|->     dst[i] = (src[i] >> (1 - x_pass) & 0x55) * DOT;
#  738|   }
#  739|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def357]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:752:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  750|         s0 = src[i * 2] << pass;
#  751|         s1 = src[i * 2 + 1] << pass;
#  752|->       dst[i] = (((s0 & 0x80) >> 1) | ((s0 & 8) << 1) |
#  753|           ((s1 & 0x80) >> 5) | ((s1 & 0x8) >> 3)) * DOT;
#  754|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def358]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:769:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dst’ where non-null expected
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  767|       {
#  768|         if (passes_per_scan == 1)
#  769|->         memcpy (dst, src, n_bytes);
#  770|         else if (passes_per_scan == 2)
#  771|           rinkj_escp_shuffle_2pass_2bit (dst, src, pass, n_bytes);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def359]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:787:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dst’ where non-null expected
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  785|       {
#  786|         if (passes_per_scan == 1)
#  787|->         memcpy (dst, src, n_bytes);
#  788|         else if (passes_per_scan == 2)
#  789|           rinkj_escp_shuffle_dblx (dst, src, pass, n_bytes);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def360]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:816:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘src’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  814|     for (i = 0; i < n; i += run)
#  815|       {
#  816|->       b = src[i];
#  817|         for (run = 1; run < 129 && i + run < n; run++)
#  818|           if (b != src[i + run])

Error: GCC_ANALYZER_WARNING (CWE-476): [#def361]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:834:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  832|                   break;
#  833|               }
#  834|->           dst[j++] = run - 1;
#  835|             memcpy (dst + j, src + i, run);
#  836|             j += run;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:878:14: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  876|     ysc = ytop;
#  877|     if (z->vertpos == -1)
#  878|->     status = rinkj_byte_stream_printf (z->out, "\033(V%c%c%c%c",
#  879|                                          2, 0, ysc & 0xff, (ysc >> 8) & 0xff);
#  880|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:878:14: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  876|     ysc = ytop;
#  877|     if (z->vertpos == -1)
#  878|->     status = rinkj_byte_stream_printf (z->out, "\033(V%c%c%c%c",
#  879|                                          2, 0, ysc & 0xff, (ysc >> 8) & 0xff);
#  880|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:883:16: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  881|       {
#  882|         int yrel = ysc - z->vertpos;
#  883|->       status = rinkj_byte_stream_printf (z->out, "\033(v%c%c%c%c%c%c",
#  884|                                            4, 0, yrel & 0xff, (yrel >> 8) & 0xff, (yrel >> 16) & 0xff, (yrel >> 24) & 0xff);
#  885|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:883:16: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  881|       {
#  882|         int yrel = ysc - z->vertpos;
#  883|->       status = rinkj_byte_stream_printf (z->out, "\033(v%c%c%c%c%c%c",
#  884|                                            4, 0, yrel & 0xff, (yrel >> 8) & 0xff, (yrel >> 16) & 0xff, (yrel >> 24) & 0xff);
#  885|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:912:20: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  910|             /* todo: make this calculation fully agile */
#  911|             int x = (x_pass & 3);
#  912|->           status = rinkj_byte_stream_printf (z->out, "\033($\4%c%c%c%c%c",
#  913|                                                0, x & 0xff,
#  914|                                                (x >> 8) & 0xff,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:912:20: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  910|             /* todo: make this calculation fully agile */
#  911|             int x = (x_pass & 3);
#  912|->           status = rinkj_byte_stream_printf (z->out, "\033($\4%c%c%c%c%c",
#  913|                                                0, x & 0xff,
#  914|                                                (x >> 8) & 0xff,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:927:16: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  925|           }
#  926|   
#  927|->       status = rinkj_byte_stream_printf (z->out, "\033i%c%c%c%c%c%c%c",
#  928|                                            color[i],
#  929|                                            rle,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:927:16: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  925|           }
#  926|   
#  927|->       status = rinkj_byte_stream_printf (z->out, "\033i%c%c%c%c%c%c%c",
#  928|                                            color[i],
#  929|                                            rle,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def370]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:951:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘thisbuf’ where non-null expected
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  949|                                   z->passes_per_scan, z->bps, z->head_bps);
#  950|             else
#  951|->             memset (thisbuf, 0, xsb_out);
#  952|             z->buf_linevalid[bufy * z->num_chan + i] &= ~pass_mask;
#  953|   #ifdef VERBOSE

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:965:24: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  963|   
#  964|                 nbytes = rinkj_escp_compress_rle (compress_buf, thisbuf, xsb_out);
#  965|->               status = rinkj_byte_stream_write (z->out, compress_buf, nbytes);
#  966|               }
#  967|             else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:965:24: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1020:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1030:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1032:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
#  963|   
#  964|                 nbytes = rinkj_escp_compress_rle (compress_buf, thisbuf, xsb_out);
#  965|->               status = rinkj_byte_stream_write (z->out, compress_buf, nbytes);
#  966|               }
#  967|             else

Error: CPPCHECK_WARNING (CWE-476): [#def373]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1066: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1064|     result = (RinkjEscp *)malloc (sizeof (RinkjEscp));
# 1065|   
# 1066|->   result->super.set = rinkj_escp_set;
# 1067|     result->super.write = rinkj_escp_write;
# 1068|     result->super.init = rinkj_escp_init;

Error: CPPCHECK_WARNING (CWE-476): [#def374]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1067: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1065|   
# 1066|     result->super.set = rinkj_escp_set;
# 1067|->   result->super.write = rinkj_escp_write;
# 1068|     result->super.init = rinkj_escp_init;
# 1069|     result->super.init_happened = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def375]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1068: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1066|     result->super.set = rinkj_escp_set;
# 1067|     result->super.write = rinkj_escp_write;
# 1068|->   result->super.init = rinkj_escp_init;
# 1069|     result->super.init_happened = 0;
# 1070|     result->width = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def376]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1069: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1067|     result->super.write = rinkj_escp_write;
# 1068|     result->super.init = rinkj_escp_init;
# 1069|->   result->super.init_happened = 0;
# 1070|     result->width = 0;
# 1071|     result->out = out;

Error: CPPCHECK_WARNING (CWE-476): [#def377]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1070: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1068|     result->super.init = rinkj_escp_init;
# 1069|     result->super.init_happened = 0;
# 1070|->   result->width = 0;
# 1071|     result->out = out;
# 1072|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def378]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1070:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1064:25: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1070:3: danger: ‘result’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
# 1068|     result->super.init = rinkj_escp_init;
# 1069|     result->super.init_happened = 0;
# 1070|->   result->width = 0;
# 1071|     result->out = out;
# 1072|   

Error: CPPCHECK_WARNING (CWE-476): [#def379]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1071: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1069|     result->super.init_happened = 0;
# 1070|     result->width = 0;
# 1071|->   result->out = out;
# 1072|   
# 1073|     result->num_chan = 4;

Error: CPPCHECK_WARNING (CWE-476): [#def380]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1073: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1071|     result->out = out;
# 1072|   
# 1073|->   result->num_chan = 4;
# 1074|     result->bps = 1;
# 1075|   

Error: CPPCHECK_WARNING (CWE-476): [#def381]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1074: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1072|   
# 1073|     result->num_chan = 4;
# 1074|->   result->bps = 1;
# 1075|   
# 1076|     result->manufacturer = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def382]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1076: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1074|     result->bps = 1;
# 1075|   
# 1076|->   result->manufacturer = NULL;
# 1077|     result->model = NULL;
# 1078|   

Error: CPPCHECK_WARNING (CWE-476): [#def383]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1077: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1075|   
# 1076|     result->manufacturer = NULL;
# 1077|->   result->model = NULL;
# 1078|   
# 1079|     result->autocut = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def384]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1079: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1077|     result->model = NULL;
# 1078|   
# 1079|->   result->autocut = -1;
# 1080|     result->microdot = -1;
# 1081|     result->unidir = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def385]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1080: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1078|   
# 1079|     result->autocut = -1;
# 1080|->   result->microdot = -1;
# 1081|     result->unidir = -1;
# 1082|     result->printer_weave = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def386]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1081: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1079|     result->autocut = -1;
# 1080|     result->microdot = -1;
# 1081|->   result->unidir = -1;
# 1082|     result->printer_weave = -1;
# 1083|   

Error: CPPCHECK_WARNING (CWE-476): [#def387]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1082: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1080|     result->microdot = -1;
# 1081|     result->unidir = -1;
# 1082|->   result->printer_weave = -1;
# 1083|   
# 1084|     return &result->super;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1084:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1064:25: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/rinkj-epson870.c:1084:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1082|     result->printer_weave = -1;
# 1083|   
# 1084|->   return &result->super;
# 1085|   }

Error: CPPCHECK_WARNING (CWE-476): [#def389]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out_data
#  176|     for (i = 0; i < n_planes; i++)
#  177|       {
#  178|->       out_data[i] = malloc (xsb);
#  179|         out_buf[i] = malloc (xs);
#  180|         data_permuted[i] = (const uchar *)data[permutation[i]];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def390]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_data’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:172:24: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:176:15: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178:7: danger: ‘out_data + (long unsigned int)i * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  176|     for (i = 0; i < n_planes; i++)
#  177|       {
#  178|->       out_data[i] = malloc (xsb);
#  179|         out_buf[i] = malloc (xs);
#  180|         data_permuted[i] = (const uchar *)data[permutation[i]];

Error: CPPCHECK_WARNING (CWE-476): [#def391]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out_buf
#  177|       {
#  178|         out_data[i] = malloc (xsb);
#  179|->       out_buf[i] = malloc (xs);
#  180|         data_permuted[i] = (const uchar *)data[permutation[i]];
#  181|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def392]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:179:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_buf’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:173:23: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:176:15: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:179:7: danger: ‘out_buf + (long unsigned int)i * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  177|       {
#  178|         out_data[i] = malloc (xsb);
#  179|->       out_buf[i] = malloc (xs);
#  180|         data_permuted[i] = (const uchar *)data[permutation[i]];
#  181|       }

Error: CPPCHECK_WARNING (CWE-476): [#def393]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data_permuted
#  178|         out_data[i] = malloc (xsb);
#  179|         out_buf[i] = malloc (xs);
#  180|->       data_permuted[i] = (const uchar *)data[permutation[i]];
#  181|       }
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def394]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:180:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data_permuted’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:148:6: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:174:35: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:176:15: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:178:21: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:180:7: danger: ‘data_permuted + (long unsigned int)i * 8’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  178|         out_data[i] = malloc (xsb);
#  179|         out_buf[i] = malloc (xs);
#  180|->       data_permuted[i] = (const uchar *)data[permutation[i]];
#  181|       }
#  182|   

Error: CPPCHECK_WARNING (CWE-476): [#def395]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out_data
#  190|         for (i = 0; i < n_planes; i++)
#  191|           {
#  192|->           uchar *pd = out_data[permutation[i]];
#  193|             uchar *pb = out_buf[i];
#  194|             int x;

Error: CPPCHECK_WARNING (CWE-476): [#def396]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out_buf
#  191|           {
#  192|             uchar *pd = out_data[permutation[i]];
#  193|->           uchar *pb = out_buf[i];
#  194|             int x;
#  195|   

Error: CPPCHECK_WARNING (CWE-476): [#def397]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  265|     result = (RinkjScreenEb *)malloc (sizeof(RinkjScreenEb));
#  266|   
#  267|->   result->super.set = rinkj_screen_eb_set;
#  268|     result->super.write = rinkj_screen_eb_write;
#  269|     result->super.init = rinkj_screen_eb_init;

Error: CPPCHECK_WARNING (CWE-476): [#def398]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:268: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  266|   
#  267|     result->super.set = rinkj_screen_eb_set;
#  268|->   result->super.write = rinkj_screen_eb_write;
#  269|     result->super.init = rinkj_screen_eb_init;
#  270|     result->super.init_happened = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def399]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  267|     result->super.set = rinkj_screen_eb_set;
#  268|     result->super.write = rinkj_screen_eb_write;
#  269|->   result->super.init = rinkj_screen_eb_init;
#  270|     result->super.init_happened = 0;
#  271|     result->dev_out = dev_out;

Error: CPPCHECK_WARNING (CWE-476): [#def400]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  268|     result->super.write = rinkj_screen_eb_write;
#  269|     result->super.init = rinkj_screen_eb_init;
#  270|->   result->super.init_happened = 0;
#  271|     result->dev_out = dev_out;
#  272|     result->lut = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def401]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  269|     result->super.init = rinkj_screen_eb_init;
#  270|     result->super.init_happened = 0;
#  271|->   result->dev_out = dev_out;
#  272|     result->lut = NULL;
#  273|     result->xscale = 1.0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def402]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:271:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:265:29: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:271:3: danger: ‘result’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  269|     result->super.init = rinkj_screen_eb_init;
#  270|     result->super.init_happened = 0;
#  271|->   result->dev_out = dev_out;
#  272|     result->lut = NULL;
#  273|     result->xscale = 1.0;

Error: CPPCHECK_WARNING (CWE-476): [#def403]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  270|     result->super.init_happened = 0;
#  271|     result->dev_out = dev_out;
#  272|->   result->lut = NULL;
#  273|     result->xscale = 1.0;
#  274|     result->yscale = 1.0;

Error: CPPCHECK_WARNING (CWE-476): [#def404]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  271|     result->dev_out = dev_out;
#  272|     result->lut = NULL;
#  273|->   result->xscale = 1.0;
#  274|     result->yscale = 1.0;
#  275|     result->aspect = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def405]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:274: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  272|     result->lut = NULL;
#  273|     result->xscale = 1.0;
#  274|->   result->yscale = 1.0;
#  275|     result->aspect = 1;
#  276|     result->bps = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def406]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  273|     result->xscale = 1.0;
#  274|     result->yscale = 1.0;
#  275|->   result->aspect = 1;
#  276|     result->bps = 1;
#  277|   

Error: CPPCHECK_WARNING (CWE-476): [#def407]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  274|     result->yscale = 1.0;
#  275|     result->aspect = 1;
#  276|->   result->bps = 1;
#  277|   
#  278|     return &result->super;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:278:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:265:29: acquire_memory: allocated here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:278:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  276|     result->bps = 1;
#  277|   
#  278|->   return &result->super;
#  279|   }
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def409]
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:329:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (long unsigned int)i * 4’
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:318:6: branch_false: following ‘false’ branch (when ‘plane <= 15’)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:321:7: branch_false: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:321:6: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:322:22: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:324:26: acquire_memory: this call could return NULL
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:325:15: branch_true: following ‘true’ branch (when ‘i != 256’)...
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:328:20: branch_true: ...to here
ghostscript-10.05.1/devices/rinkj/rinkj-screen-eb.c:329:7: danger: ‘*<unknown> + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  327|         double v;
#  328|         v = 1.0 - lut[i];
#  329|->       z->lut[plane][i] = floor (0.5 + 0x1000000 * v);
#  330|       }
#  331|   }

Error: CPPCHECK_WARNING (CWE-457): [#def410]
ghostscript-10.05.1/devices/vector/gdevpdf.c:568: warning[uninitvar]: Uninitialized variable: key_buf
#  566|           for (j = 0; j < key_size; j++)
#  567|               key_buf[j] = key[j] ^ (byte)i;
#  568|->         s_arcfour_set_key(&sarc4, key_buf, key_size);
#  569|           s_arcfour_process_buffer(&sarc4, data, data_size);
#  570|       }

Error: CPPCHECK_WARNING (CWE-758): [#def411]
ghostscript-10.05.1/devices/vector/gdevpdf.c:1911: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1909|   
# 1910|       while(size_bits) {
# 1911|->         input_mask = 1 << (size_bits - 1);
# 1912|           output_mask = 0x80 >> linear_params->HintBits;
# 1913|           if (input_mask & val)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def412]
ghostscript-10.05.1/devices/vector/gdevpdfe.c:232:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ghostscript-10.05.1/devices/vector/gdevpdfe.c:977:1: enter_function: entry to ‘pdf_document_metadata’
ghostscript-10.05.1/devices/vector/gdevpdfe.c:979:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfe.c:981:29: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfe.c:981:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfe.c:984:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfe.c:996:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfe.c:998:60: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfe.c:999:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfe.c:1003:60: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfe.c:1004:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfe.c:1008:16: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfe.c:1008:16: call_function: calling ‘pdf_write_document_metadata’ from ‘pdf_document_metadata’
#  230|               "%04d-%02d-%02d",
#  231|               tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday);
#  232|->     strncpy(buf, buf1, buf_length);
#  233|       return strlen(buf);
#  234|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def413]
ghostscript-10.05.1/devices/vector/gdevpdfg.c:345:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pcc.paint.values[i]’
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2071:1: enter_function: entry to ‘pdf_set_drawing_color’
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2102:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2105:12: call_function: inlined call to ‘pdf_reset_color’ from ‘pdf_set_drawing_color’
#  343|       pprintg1(pdev->strm, "%g", psdf_round(pcc->paint.values[0], 255, 8));
#  344|       for (i = 1; i < n; i++) {
#  345|->         pprintg1(pdev->strm, " %g", psdf_round(pcc->paint.values[i], 255, 8));
#  346|       }
#  347|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def414]
ghostscript-10.05.1/devices/vector/gdevpdfg.c:417:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pcc.paint.values[i]’
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2071:1: enter_function: entry to ‘pdf_set_drawing_color’
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2102:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfg.c:2105:12: call_function: inlined call to ‘pdf_reset_color’ from ‘pdf_set_drawing_color’
#  415|       pdf_set_process_color_model(pdev, 1);
#  416|       for (i=0;i<3;i++) {
#  417|->         psrc[i] = (unsigned short) (pcc->paint.values[i]*65535.0);;
#  418|           conc[i] = ushort2frac(psrc[i]);
#  419|       }

Error: COMPILER_WARNING (CWE-563): [#def415]
ghostscript-10.05.1/devices/vector/gdevpdfg.c: scope_hint: In function ‘check_colorants_for_pdfx4’
ghostscript-10.05.1/devices/vector/gdevpdfg.c:1425:17: warning[-Wunused-variable]: unused variable ‘Colorant’
# 1425 |     char *ink, *Colorant;
#      |                 ^~~~~~~~
# 1423|   {
# 1424|       int comp, all_present = 1;
# 1425|->     char *ink, *Colorant;
# 1426|       gs_device_n_colorant *colorant = NULL;
# 1427|   

Error: COMPILER_WARNING (CWE-563): [#def416]
ghostscript-10.05.1/devices/vector/gdevpdfi.c: scope_hint: In function ‘check_colorants_for_pdfx4’
ghostscript-10.05.1/devices/vector/gdevpdfi.c:516:17: warning[-Wunused-variable]: unused variable ‘Colorant’
#  516 |     char *ink, *Colorant;
#      |                 ^~~~~~~~
#  514|   {
#  515|       int comp, all_present = 1;
#  516|->     char *ink, *Colorant;
#  517|       gs_device_n_colorant *colorant = NULL;
#  518|   

Error: COMPILER_WARNING (CWE-704): [#def417]
ghostscript-10.05.1/devices/vector/gdevpdfi.c: scope_hint: In function ‘setup_image_colorspace’
ghostscript-10.05.1/devices/vector/gdevpdfi.c:755:43: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  755 |                                 *pcs_orig = pcs;
#      |                                           ^
#  753|                           if (pdev->PDFX > 0) {
#  754|                               if (pdev->PDFX < 4) {
#  755|->                                 *pcs_orig = pcs;
#  756|                                   return 1;
#  757|                               }

Error: COMPILER_WARNING (CWE-704): [#def418]
ghostscript-10.05.1/devices/vector/gdevpdfi.c:755:43: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  753|                           if (pdev->PDFX > 0) {
#  754|                               if (pdev->PDFX < 4) {
#  755|->                                 *pcs_orig = pcs;
#  756|                                   return 1;
#  757|                               }

Error: COMPILER_WARNING (CWE-704): [#def419]
ghostscript-10.05.1/devices/vector/gdevpdfi.c:759:43: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  759 |                                 *pcs_orig = pcs;
#      |                                           ^
#  757|                               }
#  758|                               if (!check_colorants_for_pdfx4(pcs2)){
#  759|->                                 *pcs_orig = pcs;
#  760|                                   return 1;
#  761|                               }

Error: COMPILER_WARNING (CWE-704): [#def420]
ghostscript-10.05.1/devices/vector/gdevpdfi.c:759:43: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  757|                               }
#  758|                               if (!check_colorants_for_pdfx4(pcs2)){
#  759|->                                 *pcs_orig = pcs;
#  760|                                   return 1;
#  761|                               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def421]
ghostscript-10.05.1/devices/vector/gdevpdfk.c:81:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ghostscript-10.05.1/devices/vector/gdevpdfk.c:820:1: enter_function: entry to ‘write_a2b0’
ghostscript-10.05.1/devices/vector/gdevpdfk.c:837:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfk.c:843:12: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfk.c:844:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfk.c:844:8: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfk.c:846:17: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdfk.c:852:21: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfk.c:852:37: branch_false: following ‘false’ branch (when ‘j == -1’)...
ghostscript-10.05.1/devices/vector/gdevpdfk.c:855:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdfk.c:855:9: call_function: calling ‘cie_to_xyz’ from ‘write_a2b0’
#   79|   
#   80|       for (i = 0; i < ncomp; ++i)
#   81|->         cc.paint.values[i] = in[i];
#   82|   
#   83|       /* The standard concretization makes use of the equivalent ICC profile

Error: CPPCHECK_WARNING (CWE-457): [#def422]
ghostscript-10.05.1/devices/vector/gdevpdfk.c:184: warning[uninitvar]: Uninitialized variable: in
#  182|           for (j = 0; j < ncomp; ++j)
#  183|               in[j] = (i & (1 << j) ? ranges[j].rmax : ranges[j].rmin);
#  184|->         if (cie_to_xyz(in, xyz, pcs, pgs, pciec) >= 0) {
#  185|               double lab[3];
#  186|   

Error: CPPCHECK_WARNING (CWE-457): [#def423]
ghostscript-10.05.1/devices/vector/gdevpdfk.c:855: warning[uninitvar]: Uninitialized variable: in
#  853|               in[j] = cache_arg(n % num_points, num_points - 1,
#  854|                                 (pnt->ranges ? pnt->ranges + j : NULL));
#  855|->         cie_to_xyz(in, xyz, pcs, pgs, pciec);
#  856|           /*
#  857|            * NOTE: Due to an obscure provision of the ICC Profile

Error: CPPCHECK_WARNING (CWE-190): [#def424]
ghostscript-10.05.1/devices/vector/gdevpdfk.c:1043: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1041|               set_uint32(p + 4, offset);
# 1042|               set_uint32(p + 8, tables[i].length);
# 1043|->             offset += round_up(tables[i].length, 4);
# 1044|           }
# 1045|           set_uint32(header, offset);

Error: CPPCHECK_WARNING (CWE-457): [#def425]
ghostscript-10.05.1/devices/vector/gdevpdfu.c:1019: error[uninitvar]: Uninitialized variable: key
# 1017|       byte key[16];
# 1018|   
# 1019|->     return s_arcfour_set_key(psarc4, key, pdf_object_key(pdev, object_id, key));
# 1020|   }
# 1021|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def426]
ghostscript-10.05.1/devices/vector/gdevpdte.c:1029:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gdata’
ghostscript-10.05.1/devices/vector/gdevpdte.c:1757:1: enter_function: entry to ‘process_plain_text’
ghostscript-10.05.1/devices/vector/gdevpdte.c:1770:12: branch_false: following ‘false’ branch (when ‘bsize >= count’)...
ghostscript-10.05.1/devices/vector/gdevpdte.c:1772:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdte.c:1886:16: call_function: calling ‘pdf_process_string_aux’ from ‘process_plain_text’
# 1027|           gs_glyph gdata_i, *gdata_p = (gs_glyph *)gdata;
# 1028|           if (penum->text.operation & TEXT_FROM_SINGLE_GLYPH) {
# 1029|->             gdata_i = *gdata;
# 1030|               gdata_p = &gdata_i;
# 1031|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def427]
ghostscript-10.05.1/devices/vector/gdevpdtf.c:240:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘psf’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:775:1: enter_function: entry to ‘embed_as_standard’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:778:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:781:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:781:9: call_function: calling ‘find_std_appearance’ from ‘embed_as_standard’
#  238|           int code;
#  239|   
#  240|->         if (!psf->pdfont)
#  241|               continue;
#  242|           cfont = pdf_font_resource_font(psf->pdfont, false);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def428]
ghostscript-10.05.1/devices/vector/gdevpdtf.c:400:13: warning[-Wanalyzer-null-argument]: use of NULL ‘widths’ where non-null expected
ghostscript-10.05.1/devices/vector/gdevpdtf.c:813:1: enter_function: entry to ‘pdf_font_embed_status’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:819:17: call_function: calling ‘pdf_find_standard_font_name’ from ‘pdf_font_embed_status’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:819:17: return_function: returning to ‘pdf_font_embed_status’ from ‘pdf_find_standard_font_name’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:861:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:877:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:888:13: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:888:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:891:33: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:891:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:893:13: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:894:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:902:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:902:20: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:902:20: branch_false: following ‘false’ branch (when ‘embed_as_standard_called == 0’)...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:904:10: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:904:10: call_function: calling ‘embed_as_standard’ from ‘pdf_font_embed_status’
#  398|           }
#  399|           if (!is_CID_font)
#  400|->             memset(widths, 0, chars_count * sizeof(*widths));
#  401|           memset(used, 0, size);
#  402|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def429]
ghostscript-10.05.1/devices/vector/gdevpdtf.c:1003:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:917:1: enter_function: entry to ‘pdf_compute_BaseFont’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:924:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:933:14: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:933:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:937:18: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:941:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:943:18: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:984:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:984:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:987:39: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:984:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:990:32: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:990:32: call_function: calling ‘pdf_font_resource_font’ from ‘pdf_compute_BaseFont’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:990:32: return_function: returning to ‘pdf_compute_BaseFont’ from ‘pdf_font_resource_font’
ghostscript-10.05.1/devices/vector/gdevpdtf.c:997:12: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:999:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:1002:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtf.c:1003:13: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtf.c:1003:13: danger: dereference of NULL ‘pdf_font_resource_font(pdfont, 0)’
# 1001|           /* Don't write a UID for subset fonts. */
# 1002|           if (uid_is_XUID(&pbfont->UID)) {
# 1003|->             uid_free(&pbfont->UID, pbfont->memory, "gs_font_finalize");
# 1004|           }
# 1005|           uid_set_invalid(&pbfont->UID);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def430]
ghostscript-10.05.1/devices/vector/gdevpdtf.h:129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gnstr’
ghostscript-10.05.1/devices/vector/gdevpdti.c:1040:1: enter_function: entry to ‘complete_adding_char’
ghostscript-10.05.1/devices/vector/gdevpdti.c:1053:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdti.c:1055:12: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdti.c:1055:12: call_function: calling ‘pdf_attach_charproc’ from ‘complete_adding_char’
ghostscript-10.05.1/devices/vector/gdevpdti.c:1055:12: return_function: returning to ‘complete_adding_char’ from ‘pdf_attach_charproc’
ghostscript-10.05.1/devices/vector/gdevpdti.c:1056:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdti.c:1058:9: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdti.c:1058:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdti.c:1076:12: call_function: calling ‘pdf_copy_string_to_encoding’ from ‘complete_adding_char’
#  127|       byte *p = NULL;
#  128|   
#  129|->     p = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, gnstr->size, "pdf_copy_string_to_encoding");
#  130|       if (p == NULL)
#  131|           return_error(gs_error_VMerror);

Error: CPPCHECK_WARNING (CWE-457): [#def431]
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2369: warning[uninitvar]: Uninitialized variable: s2->size
# 2367|   strings_equal(const gs_const_string *s1, const gs_const_string *s2)
# 2368|   {
# 2369|->     return s1->size == s2->size &&
# 2370|               !memcmp(s1->data, s2->data, s1->size);
# 2371|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def432]
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2418:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdfont’
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2919:1: enter_function: entry to ‘pdf_choose_output_char_code’
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2924:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2939:16: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2939:15: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2941:18: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2943:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2945:24: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2945:24: call_function: calling ‘pdf_attached_font_resource’ from ‘pdf_choose_output_char_code’
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2945:24: return_function: returning to ‘pdf_choose_output_char_code’ from ‘pdf_attached_font_resource’
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2947:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2949:18: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2949:18: release_memory: ‘pdfont’ is NULL
ghostscript-10.05.1/devices/vector/gdevpdtt.c:2949:18: call_function: calling ‘pdf_find_glyph’ from ‘pdf_choose_output_char_code’
# 2416|   pdf_find_glyph(pdf_font_resource_t *pdfont, gs_glyph glyph)
# 2417|   {
# 2418|->     if (pdfont->FontType != ft_user_defined &&
# 2419|           pdfont->FontType != ft_PDF_user_defined &&
# 2420|           pdfont->FontType != ft_PCL_user_defined &&

Error: GCC_ANALYZER_WARNING (CWE-835): [#def433]
ghostscript-10.05.1/devices/vector/gdevpsds.c:1096:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.05.1/devices/vector/gdevpsds.c:1096:12: danger: infinite loop here
ghostscript-10.05.1/devices/vector/gdevpsds.c:1096:12: branch_true: when ‘l != 0’: always following ‘true’ branch...
ghostscript-10.05.1/devices/vector/gdevpsds.c:1097:13: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpsds.c:1097:12: branch_true: if it ever follows ‘true’ branch, it will always do so...
ghostscript-10.05.1/devices/vector/gdevpsds.c:1098:53: branch_true: ...to here
ghostscript-10.05.1/devices/vector/gdevpsds.c:1101:20: branch_false: when ‘k == 0’: always following ‘false’ branch...
ghostscript-10.05.1/devices/vector/gdevpsds.c:1101:20: branch_false: ...to here
ghostscript-10.05.1/devices/vector/gdevpsds.c:1104:16: branch_false: if it ever follows ‘false’ branch, it will always do so...
ghostscript-10.05.1/devices/vector/gdevpsds.c:1104:16: branch_false: ...to here
# 1094|       int l = length;
# 1095|   
# 1096|->     while (l) {
# 1097|           if (ss->bits_left <= 8) {
# 1098|               uint k = (sizeof(ss->packed_data) * 8 - ss->bits_left) / 8;

Error: CPPCHECK_WARNING (CWE-190): [#def434]
ghostscript-10.05.1/devices/vector/gdevpsft.c:130: error[integerOverflow]: Signed integer overflow for expression '-4'.
#  128|       put_u32(tab + 8, offset + 0x40000000);
#  129|       put_u32(tab + 12, (ulong)length);
#  130|->     return offset + round_up(length, 4);
#  131|   }
#  132|   

Error: CPPCHECK_WARNING (CWE-190): [#def435]
ghostscript-10.05.1/devices/vector/gdevpsft.c:1126: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1124|   
# 1125|               put_u32(entry + 8, offset);
# 1126|->             offset += round_up(length, 4);
# 1127|           } else {
# 1128|               entry[8] -= 0x40;

Error: CPPCHECK_WARNING (CWE-190): [#def436]
ghostscript-10.05.1/devices/vector/gdevpx.c:720: error[integerOverflow]: Signed integer overflow for expression '-4'.
#  718|       stream *s = pclxl_stream(xdev);
#  719|       uint width_bytes = (width_bits + 7) >> 3;
#  720|->     uint num_bytes = ROUND_UP(width_bytes, 4) * height;
#  721|       bool compress = num_bytes >= 8;
#  722|       int i;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def437]
ghostscript-10.05.1/extract/src/astring.c:55:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.05.1/extract/src/astring.c:54:9: acquire_resource: ‘va_start’ called here
ghostscript-10.05.1/extract/src/astring.c:55:13: throw: if ‘extract_vasprintf’ throws an exception...
ghostscript-10.05.1/extract/src/astring.c:55:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   53|   
#   54|   	va_start(va, format);
#   55|-> 	e = extract_vasprintf(alloc, &buffer, format, va);
#   56|   	va_end(va);
#   57|   	if (e < 0) return e;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def438]
ghostscript-10.05.1/extract/src/boxer.c:149:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
ghostscript-10.05.1/extract/src/boxer.c:561:5: enter_function: entry to ‘extract_page_analyse’
ghostscript-10.05.1/extract/src/boxer.c:571:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/boxer.c:574:9: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:581:17: call_function: calling ‘boxer_create’ from ‘extract_page_analyse’
ghostscript-10.05.1/extract/src/boxer.c:581:17: return_function: returning to ‘extract_page_analyse’ from ‘boxer_create’
ghostscript-10.05.1/extract/src/boxer.c:583:21: call_function: inlined call to ‘content_span_iterator_init’ from ‘extract_page_analyse’
ghostscript-10.05.1/extract/src/boxer.c:583:74: branch_true: following ‘true’ branch (when ‘span’ is non-NULL)...
ghostscript-10.05.1/extract/src/boxer.c:585:31: branch_true: ...to here
ghostscript-10.05.1/extract/src/boxer.c:586:21: call_function: calling ‘boxer_feed’ from ‘extract_page_analyse’
#  147|   	/* When we feed a box into a the boxer, we can never make
#  148|   	* the list more than 4 times as long. */
#  149|-> 	rectlist_t *newlist = rectlist_create(boxer->alloc, boxer->list->len * 4);
#  150|   	if (newlist == NULL)
#  151|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def439]
ghostscript-10.05.1/extract/src/boxer.c:241:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
ghostscript-10.05.1/extract/src/boxer.c:561:5: enter_function: entry to ‘extract_page_analyse’
ghostscript-10.05.1/extract/src/boxer.c:571:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/boxer.c:574:9: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:581:17: call_function: calling ‘boxer_create’ from ‘extract_page_analyse’
ghostscript-10.05.1/extract/src/boxer.c:581:17: return_function: returning to ‘extract_page_analyse’ from ‘boxer_create’
ghostscript-10.05.1/extract/src/boxer.c:583:74: branch_false: following ‘false’ branch (when ‘span’ is NULL)...
ghostscript-10.05.1/extract/src/boxer.c:590:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:590:13: call_function: calling ‘analyse_sub’ from ‘extract_page_analyse’
#  239|   static rect_t boxer_margins(boxer_t *boxer)
#  240|   {
#  241|-> 	rectlist_t *list = boxer->list;
#  242|   	int i;
#  243|   	rect_t margins = boxer->mediabox;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def440]
ghostscript-10.05.1/extract/src/boxer.c:538:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub’
ghostscript-10.05.1/extract/src/boxer.c:516:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/boxer.c:518:21: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:525:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/boxer.c:528:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:528:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/boxer.c:531:17: branch_false: ...to here
ghostscript-10.05.1/extract/src/boxer.c:535:21: branch_true: following ‘true’ branch...
ghostscript-10.05.1/extract/src/boxer.c:537:26: branch_true: ...to here
ghostscript-10.05.1/extract/src/boxer.c:551:25: release_memory: using NULL here
ghostscript-10.05.1/extract/src/boxer.c:535:21: branch_true: following ‘true’ branch...
ghostscript-10.05.1/extract/src/boxer.c:537:26: branch_true: ...to here
ghostscript-10.05.1/extract/src/boxer.c:537:26: release_memory: ‘sub’ is NULL
ghostscript-10.05.1/extract/src/boxer.c:538:21: danger: dereference of NULL ‘sub’
#  536|   	{
#  537|   		split_t *sub = split->split[s];
#  538|-> 		if (sub->type == split->type)
#  539|   		{
#  540|   			/* If the type matches, pull the grandchildren into newsplit. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def441]
ghostscript-10.05.1/extract/src/buffer.c:45:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path,  <unknown>)’
ghostscript-10.05.1/extract/src/buffer.c:242:5: enter_function: entry to ‘extract_buffer_open_file’
ghostscript-10.05.1/extract/src/buffer.c:245:22: acquire_resource: opened here
ghostscript-10.05.1/extract/src/buffer.c:247:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: following ‘false’ branch (when ‘writable == 0’)...
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/buffer.c:253:13: call_function: calling ‘extract_buffer_open’ from ‘extract_buffer_open_file’
#   43|   	extract_buffer_t *buffer;
#   44|   
#   45|-> 	if (extract_malloc(alloc, &buffer, sizeof(*buffer)))
#   46|   		return -1;
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
ghostscript-10.05.1/extract/src/buffer.c:45:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path,  <unknown>)’
ghostscript-10.05.1/extract/src/buffer.c:242:5: enter_function: entry to ‘extract_buffer_open_file’
ghostscript-10.05.1/extract/src/buffer.c:245:22: acquire_memory: allocated here
ghostscript-10.05.1/extract/src/buffer.c:247:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: following ‘false’ branch (when ‘writable == 0’)...
ghostscript-10.05.1/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/buffer.c:253:13: call_function: calling ‘extract_buffer_open’ from ‘extract_buffer_open_file’
#   43|   	extract_buffer_t *buffer;
#   44|   
#   45|-> 	if (extract_malloc(alloc, &buffer, sizeof(*buffer)))
#   46|   		return -1;
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def443]
ghostscript-10.05.1/extract/src/extract.c:2189:45: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
ghostscript-10.05.1/extract/src/extract.c:2163:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2165:9: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2167:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/extract/src/extract.c:2170:40: branch_true: ...to here
ghostscript-10.05.1/extract/src/extract.c:2182:36: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2183:33: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2187:37: acquire_resource: opened here
ghostscript-10.05.1/extract/src/extract.c:2188:36: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2188:36: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2193:51: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2212:41: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2212:41: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/extract/src/extract.c:2189:45: danger: ‘fopen(path, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 2187|   				f = fopen(path, "w");
# 2188|   				if (!f) goto end;
# 2189|-> 				for (y=0; y<table->cells_num_y; ++y)
# 2190|   				{
# 2191|   					int x;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
ghostscript-10.05.1/extract/src/extract.c:2189:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
ghostscript-10.05.1/extract/src/extract.c:2163:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2165:9: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2167:19: branch_true: following ‘true’ branch...
ghostscript-10.05.1/extract/src/extract.c:2170:40: branch_true: ...to here
ghostscript-10.05.1/extract/src/extract.c:2182:36: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2183:33: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2187:37: acquire_memory: allocated here
ghostscript-10.05.1/extract/src/extract.c:2188:36: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2188:36: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2193:51: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/extract.c:2212:41: branch_false: ...to here
ghostscript-10.05.1/extract/src/extract.c:2212:41: throw: if ‘fprintf’ throws an exception...
ghostscript-10.05.1/extract/src/extract.c:2189:45: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 2187|   				f = fopen(path, "w");
# 2188|   				if (!f) goto end;
# 2189|-> 				for (y=0; y<table->cells_num_y; ++y)
# 2190|   				{
# 2191|   					int x;

Error: CPPCHECK_WARNING (CWE-457): [#def445]
ghostscript-10.05.1/extract/src/join.c:778: warning[uninitvar]: Uninitialized variables: inverse.a, inverse.b, inverse.c, inverse.d
#  776|   				}
#  777|   
#  778|-> 				left  = extract_matrix4_transform_point(inverse, left);
#  779|   				right = extract_matrix4_transform_point(inverse, right);
#  780|   				l = span->flags.wmode ? left.y  : left.x;

Error: COMPILER_WARNING (CWE-457): [#def446]
ghostscript-10.05.1/extract/src/join.c:889:46: warning[-Wmaybe-uninitialized]: ‘wmode0’ may be used uninitialized
#  889 |                                 if (ctm0_set && (wmode != wmode0 || !matrices_are_compatible(&ctm, &ctm0, wmode0)))
#      |                                     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ghostscript-10.05.1/extract/src/join.c: scope_hint: In function ‘join_content’
ghostscript-10.05.1/extract/src/join.c:862:34: note: ‘wmode0’ was declared here
#  862 |         int               wmode, wmode0;
#      |                                  ^~~~~~
#  887|   				/* If the ctm value differs from the first ctm0 we met for the current collection,
#  888|   				 * flush the collection. */
#  889|-> 				if (ctm0_set && (wmode != wmode0 || !matrices_are_compatible(&ctm, &ctm0, wmode0)))
#  890|   					flush = 1;
#  891|   				break;

Error: COMPILER_WARNING (CWE-758): [#def447]
ghostscript-10.05.1/extract/src/json.c:83:5: warning[-Wmissing-prototypes]: no previous prototype for ‘extract_document_to_json_content’
#   83 | int extract_document_to_json_content(
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   81|   }
#   82|   
#   83|-> int extract_document_to_json_content(
#   84|   		extract_alloc_t   *alloc,
#   85|   		document_t        *document,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def448]
ghostscript-10.05.1/extract/src/mem.c:30:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.05.1/extract/src/mem.c:23:9: acquire_resource: ‘va_copy’ called here
ghostscript-10.05.1/extract/src/mem.c:25:12: branch_false: following ‘false’ branch (when ‘n >= 0’)...
ghostscript-10.05.1/extract/src/mem.c:30:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/mem.c:30:13: throw: if ‘extract_malloc’ throws an exception...
ghostscript-10.05.1/extract/src/mem.c:30:13: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   28|   		goto end;
#   29|   	}
#   30|-> 	if (extract_malloc(alloc, out, n + 1))
#   31|   	{
#   32|   		ret = -1;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def449]
ghostscript-10.05.1/extract/src/outf.c:34:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.05.1/extract/src/outf.c:26:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/outf.c:30:12: branch_false: ...to here
ghostscript-10.05.1/extract/src/outf.c:33:9: acquire_resource: ‘va_start’ called here
ghostscript-10.05.1/extract/src/outf.c:34:9: throw: if ‘vfprintf’ throws an exception...
ghostscript-10.05.1/extract/src/outf.c:34:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   32|   	}
#   33|   	va_start(va, format);
#   34|-> 	vfprintf(stderr, format, va);
#   35|   	va_end(va);
#   36|   	if (ln) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def450]
ghostscript-10.05.1/extract/src/sys.c:37:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.05.1/extract/src/sys.c:36:9: acquire_resource: ‘va_start’ called here
ghostscript-10.05.1/extract/src/sys.c:37:13: throw: if ‘extract_vasprintf’ throws an exception...
ghostscript-10.05.1/extract/src/sys.c:37:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   35|   
#   36|   	va_start(va, format);
#   37|-> 	e = extract_vasprintf(alloc, &command, format, va);
#   38|   	va_end(va);
#   39|   	if (e < 0) return e;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def451]
ghostscript-10.05.1/extract/src/sys.c:57:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
ghostscript-10.05.1/extract/src/sys.c:76:6: enter_function: entry to ‘extract_read_all_path’
ghostscript-10.05.1/extract/src/sys.c:80:13: acquire_resource: opened here
ghostscript-10.05.1/extract/src/sys.c:81:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/sys.c:82:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/sys.c:82:13: call_function: calling ‘extract_read_all’ from ‘extract_read_all_path’
#   55|   	for(;;) {
#   56|   		size_t n;
#   57|-> 		if (extract_realloc2(alloc, o_out, len, len + delta + 1)) {
#   58|   			extract_free(alloc, o_out);
#   59|   			return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
ghostscript-10.05.1/extract/src/sys.c:57:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
ghostscript-10.05.1/extract/src/sys.c:76:6: enter_function: entry to ‘extract_read_all_path’
ghostscript-10.05.1/extract/src/sys.c:80:13: acquire_memory: allocated here
ghostscript-10.05.1/extract/src/sys.c:81:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/sys.c:82:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/sys.c:82:13: call_function: calling ‘extract_read_all’ from ‘extract_read_all_path’
#   55|   	for(;;) {
#   56|   		size_t n;
#   57|-> 		if (extract_realloc2(alloc, o_out, len, len + delta + 1)) {
#   58|   			extract_free(alloc, o_out);
#   59|   			return -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def453]
ghostscript-10.05.1/extract/src/sys.c:95:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
ghostscript-10.05.1/extract/src/sys.c:93:19: acquire_resource: opened here
ghostscript-10.05.1/extract/src/sys.c:94:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/sys.c:95:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/sys.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/extract/src/sys.c:95:13: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   93|   	FILE *f = fopen(path, "w");
#   94|   	if (!f) goto end;
#   95|-> 	if (fwrite(data, data_size, 1 /*nmemb*/, f) != 1) goto end;
#   96|   	e = 0;
#   97|   	end:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
ghostscript-10.05.1/extract/src/sys.c:95:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
ghostscript-10.05.1/extract/src/sys.c:93:19: acquire_memory: allocated here
ghostscript-10.05.1/extract/src/sys.c:94:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/extract/src/sys.c:95:13: branch_false: ...to here
ghostscript-10.05.1/extract/src/sys.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.05.1/extract/src/sys.c:95:13: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   93|   	FILE *f = fopen(path, "w");
#   94|   	if (!f) goto end;
#   95|-> 	if (fwrite(data, data_size, 1 /*nmemb*/, f) != 1) goto end;
#   96|   	e = 0;
#   97|   	end:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def455]
ghostscript-10.05.1/extract/src/xml.c:30:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
ghostscript-10.05.1/extract/src/xml.c:428:5: enter_function: entry to ‘extract_xml_pparse_next’
ghostscript-10.05.1/extract/src/xml.c:442:13: call_function: calling ‘str_catl’ from ‘extract_xml_pparse_next’
#   28|   						 p_len + 1,
#   29|   						 p_len + s_len + 1)) return -1;
#   30|-> 	memcpy(*p + p_len, s, s_len);
#   31|   	(*p)[p_len + s_len] = 0;
#   32|   

Error: CPPCHECK_WARNING (CWE-190): [#def456]
ghostscript-10.05.1/extract/src/zip.c:114: error[integerOverflow]: Signed integer overflow for expression '(0100644<<16)+0'.
#  112|   	0100644:0.  (0100644 is S_IFREG (regular file) plus rw-r-r. See stat(2) for
#  113|   	details.) */
#  114|-> 	zip->file_attr_external = (0100644 << 16) + 0;
#  115|   	if (extract_strdup(alloc, "Artifex", &zip->archive_comment)) goto end;
#  116|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def457]
ghostscript-10.05.1/pdf/pdf_cmap.c:931:13: warning[-Wanalyzer-null-argument]: use of NULL ‘ndlookups’ where non-null expected
ghostscript-10.05.1/pdf/pdf_cmap.c:883:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/pdf/pdf_cmap.c:888:9: branch_true: ...to here
ghostscript-10.05.1/pdf/pdf_cmap.c:894:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_cmap.c:899:13: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_cmap.c:899:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_cmap.c:911:16: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_cmap.c:913:9: release_memory: ‘ndlookups’ is NULL
ghostscript-10.05.1/pdf/pdf_cmap.c:930:21: branch_true: following ‘true’ branch...
ghostscript-10.05.1/pdf/pdf_cmap.c:931:13: danger: argument 1 (‘ndlookups + (long unsigned int)i * 80’) NULL where non-null expected
#  929|           l = pdficmap->notdef_cmap_range.ranges;
#  930|           for (i = 0; i < pdficmap->notdef_cmap_range.numrangemaps && l != NULL; i++) {
#  931|->             memcpy(&ndlookups[i], &l->range, sizeof(gx_cmap_lookup_range_t));
#  932|               l = l->next;
#  933|           }

Error: CPPCHECK_WARNING (CWE-476): [#def458]
ghostscript-10.05.1/pdf/pdf_dict.c:236: error[ctunullpointer]: Null pointer dereference: Key
#  234|   static int pdfi_dict_find_sorted(pdf_context *ctx, pdf_dict *d, const char *Key)
#  235|   {
#  236|->     int start = 0, end = d->size - 1, middle = 0, keylen = strlen(Key);
#  237|       pdf_name *test_key;
#  238|   

Error: CPPCHECK_WARNING (CWE-476): [#def459]
ghostscript-10.05.1/pdf/pdf_dict.c:303: error[ctunullpointer]: Null pointer dereference: Key
#  301|       int index = 0;
#  302|   
#  303|->     Test = (char *)gs_alloc_bytes(ctx->memory, Key->length + 1, "pdfi_dict_find_key");
#  304|       if (Test == NULL)
#  305|           return_error(gs_error_VMerror);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def460]
ghostscript-10.05.1/pdf/pdf_doc.c:1660:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘code’
ghostscript-10.05.1/pdf/pdf_doc.c:1623:12: enter_function: entry to ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.05.1/pdf/pdf_doc.c:1632:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_doc.c:1632:8: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_doc.c:1640:21: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_doc.c:1657:2: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_doc.c:1658:5: call_function: inlined call to ‘pdfi_countdown_impl’ from ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.05.1/pdf/pdf_doc.c:1659:5: branch_true: ...to here
ghostscript-10.05.1/pdf/pdf_doc.c:1659:5: call_function: inlined call to ‘pdfi_countdown_impl’ from ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.05.1/pdf/pdf_doc.c:1660:12: branch_true: ...to here
ghostscript-10.05.1/pdf/pdf_doc.c:1660:12: danger: use of uninitialized value ‘code’ here
# 1658|       pdfi_countdown(name);
# 1659|       pdfi_countdown(filespec);
# 1660|->     return code;
# 1661|   }
# 1662|   

Error: CPPCHECK_WARNING (CWE-909): [#def461]
ghostscript-10.05.1/pdf/pdf_fapi.c:786: error[uninitStructMember]: Uninitialized struct member: subrstring.length
#  784|                   if (pdfi_type_of(subrstring) == PDF_STRING) {
#  785|                       if (subrstring->length > 0) {
#  786|->                         code = subrstring->length - leniv;
#  787|                           if (buf && buf_length >= code) {
#  788|                               if (ff->need_decrypt && pfont->data.lenIV >= 0) {

Error: CPPCHECK_WARNING (CWE-562): [#def462]
ghostscript-10.05.1/pdf/pdf_fmap.c:280: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  278|   
#  279|                   if (ctx->main_stream == NULL) {
#  280|->                     ctx->main_stream = &fakemainstream;
#  281|                   }
#  282|   

Error: COMPILER_WARNING: [#def463]
ghostscript-10.05.1/pdf/pdf_fontTT.c: scope_hint: In function ‘pdfi_type42_get_glyph_index’
ghostscript-10.05.1/pdf/pdf_fontTT.c:144:9: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
#  144 |     int i, code = 0;
#      |         ^
#  142|       uint gind = 0;
#  143|       uint cc = 0;
#  144|->     int i, code = 0;
#  145|   
#  146|       if ((ttfont->descflags & 4) != 0 || glyph >= GS_MIN_GLYPH_INDEX) {

Error: CPPCHECK_WARNING (CWE-457): [#def464]
ghostscript-10.05.1/pdf/pdf_gstate.c:2351: warning[uninitvar]: Uninitialized variable: code
# 2349|           }
# 2350|       }
# 2351|->     return code;
# 2352|   }
# 2353|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
ghostscript-10.05.1/pdf/pdf_mark.c:705:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/pdf/pdf_mark.c:893:5: enter_function: entry to ‘pdfi_pdfmark_modA’
ghostscript-10.05.1/pdf/pdf_mark.c:904:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:906:9: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:906:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:915:12: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:916:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:917:9: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:917:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:926:12: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:927:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:929:9: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:929:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:930:16: branch_true: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:931:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:933:13: branch_false: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:933:13: branch_true: following ‘true’ branch...
ghostscript-10.05.1/pdf/pdf_mark.c:935:22: branch_true: ...to here
ghostscript-10.05.1/pdf/pdf_mark.c:937:20: call_function: calling ‘pdfi_get_named_dest’ from ‘pdfi_pdfmark_modA’
#  703|               break;
#  704|       }
#  705|->     if (i > min && len2 < Str->length) {
#  706|           code = gs_note_error(gs_error_undefined);
#  707|           goto error;

Error: COMPILER_WARNING: [#def466]
ghostscript-10.05.1/pdf/pdf_sec.c:402:9: warning[-Wstringop-overflow=]: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8
#  402 |         pdf_compute_hardened_hash_r6(password, pwlen,
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  403 |         (ownerkey ? O : U) + 40,
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~
#  404 |         (ownerkey ? U : NULL), hash);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ghostscript-10.05.1/pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
ghostscript-10.05.1/pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
ghostscript-10.05.1/pdf/pdf_sec.c: scope_hint: In function ‘check_owner_password_R6.constprop.0’
ghostscript-10.05.1/pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
#  324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  400|   		(ownerkey ? O : U) + 32,
#  401|   		ownerkey ? U : NULL, validationkey);
#  402|-> 	pdf_compute_hardened_hash_r6(password, pwlen,
#  403|           (ownerkey ? O : U) + 40,
#  404|           (ownerkey ? U : NULL), hash);

Error: COMPILER_WARNING: [#def467]
ghostscript-10.05.1/pdf/pdf_sec.c:402:9: warning[-Wstringop-overflow=]: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8
#  400|   		(ownerkey ? O : U) + 32,
#  401|   		ownerkey ? U : NULL, validationkey);
#  402|-> 	pdf_compute_hardened_hash_r6(password, pwlen,
#  403|           (ownerkey ? O : U) + 40,
#  404|           (ownerkey ? U : NULL), hash);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
ghostscript-10.05.1/psi/dxmain.c:1172:5: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1183:5: enter_function: entry to ‘main’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1240:17: call_function: calling ‘write_stderr’ from ‘main’
# 1170|   write_stderr(const char *str)
# 1171|   {
# 1172|->     fwrite(str, 1, strlen(str), stderr);
# 1173|   
# 1174|       return fflush(stderr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
ghostscript-10.05.1/psi/dxmain.c:1174:12: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1183:5: enter_function: entry to ‘main’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1240:17: call_function: calling ‘write_stderr’ from ‘main’
# 1172|       fwrite(str, 1, strlen(str), stderr);
# 1173|   
# 1174|->     return fflush(stderr);
# 1175|   }
# 1176|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def470]
ghostscript-10.05.1/psi/dxmain.c:1208:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: this call could return NULL
ghostscript-10.05.1/psi/dxmain.c:1208:5: danger: ‘nargv’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1206|       nargc = argc + 1;
# 1207|       nargv = (char **)malloc(nargc * sizeof(char *));
# 1208|->     nargv[0] = argv[0];
# 1209|       nargv[1] = dformat;
# 1210|       memcpy(&nargv[2], &argv[1], (argc-1) * sizeof(char *));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
ghostscript-10.05.1/psi/dxmain.c:1213:17: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:17: throw: if ‘gsapi_new_instance’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1213:17: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1211|   
# 1212|       /* run Ghostscript */
# 1213|->     if ((code = gsapi_new_instance(&instance, NULL)) == 0) {
# 1214|           gsapi_set_stdio(instance, gsdll_stdin, gsdll_stdout, gsdll_stderr);
# 1215|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
ghostscript-10.05.1/psi/dxmain.c:1214:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1214:9: throw: if ‘gsapi_set_stdio’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1214:9: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1212|       /* run Ghostscript */
# 1213|       if ((code = gsapi_new_instance(&instance, NULL)) == 0) {
# 1214|->         gsapi_set_stdio(instance, gsdll_stdin, gsdll_stdout, gsdll_stderr);
# 1215|   
# 1216|           if (curlocale == NULL || strstr(curlocale, "UTF-8") != NULL || strstr(curlocale, "utf8") != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
ghostscript-10.05.1/psi/dxmain.c:1217:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1217:20: throw: if ‘gsapi_set_arg_encoding’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1217:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1215|   
# 1216|           if (curlocale == NULL || strstr(curlocale, "UTF-8") != NULL || strstr(curlocale, "utf8") != NULL)
# 1217|->             code = gsapi_set_arg_encoding(instance, 1); /* PS_ARG_ENCODING_UTF8 = 1 */
# 1218|           else {
# 1219|               code = gsapi_set_arg_encoding(instance, 0); /* PS_ARG_ENCODING_LOCAL = 0 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
ghostscript-10.05.1/psi/dxmain.c:1219:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1216:12: branch_false: following ‘false’ branch (when ‘curlocale’ is non-NULL)...
ghostscript-10.05.1/psi/dxmain.c:1216:34: branch_false: ...to here
ghostscript-10.05.1/psi/dxmain.c:1216:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/dxmain.c:1216:72: branch_false: ...to here
ghostscript-10.05.1/psi/dxmain.c:1216:13: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/dxmain.c:1219:20: branch_false: ...to here
ghostscript-10.05.1/psi/dxmain.c:1219:20: throw: if ‘gsapi_set_arg_encoding’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1219:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1217|               code = gsapi_set_arg_encoding(instance, 1); /* PS_ARG_ENCODING_UTF8 = 1 */
# 1218|           else {
# 1219|->             code = gsapi_set_arg_encoding(instance, 0); /* PS_ARG_ENCODING_LOCAL = 0 */
# 1220|           }
# 1221|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
ghostscript-10.05.1/psi/dxmain.c:1223:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1223:13: throw: if ‘gsapi_set_display_callback’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1223:13: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1221|   
# 1222|           if (use_gui) {
# 1223|->             gsapi_set_display_callback(instance, &display);
# 1224|   
# 1225|               code = gsapi_get_default_device_list(instance, &default_devs, &len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
ghostscript-10.05.1/psi/dxmain.c:1225:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1225:20: throw: if ‘gsapi_get_default_device_list’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1225:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1223|               gsapi_set_display_callback(instance, &display);
# 1224|   
# 1225|->             code = gsapi_get_default_device_list(instance, &default_devs, &len);
# 1226|               if (code >= 0) {
# 1227|                   our_default_devs = malloc(len + strlen(OUR_DEFAULT_DEV_STR) + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
ghostscript-10.05.1/psi/dxmain.c:1232:28: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1226:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1227:43: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1228:20: branch_true: following ‘true’ branch (when ‘our_default_devs’ is non-NULL)...
ghostscript-10.05.1/psi/dxmain.c:1229:21: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1232:28: throw: if ‘gsapi_set_default_device_list’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1232:28: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1230|                       memcpy(our_default_devs + strlen(OUR_DEFAULT_DEV_STR), default_devs, len);
# 1231|                       our_default_devs[len + strlen(OUR_DEFAULT_DEV_STR)] = '\0';
# 1232|->                     code = gsapi_set_default_device_list(instance, our_default_devs, strlen(default_devs));
# 1233|                       free(our_default_devs);
# 1234|                   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
ghostscript-10.05.1/psi/dxmain.c:1232:28: warning[-Wanalyzer-malloc-leak]: leak of ‘our_default_devs’
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1222:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1223:13: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1226:16: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1227:43: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1227:36: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1228:20: branch_true: following ‘true’ branch (when ‘our_default_devs’ is non-NULL)...
ghostscript-10.05.1/psi/dxmain.c:1229:21: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1232:28: throw: if ‘gsapi_set_default_device_list’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1232:28: danger: ‘our_default_devs’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1230|                       memcpy(our_default_devs + strlen(OUR_DEFAULT_DEV_STR), default_devs, len);
# 1231|                       our_default_devs[len + strlen(OUR_DEFAULT_DEV_STR)] = '\0';
# 1232|->                     code = gsapi_set_default_device_list(instance, our_default_devs, strlen(default_devs));
# 1233|                       free(our_default_devs);
# 1234|                   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
ghostscript-10.05.1/psi/dxmain.c:1246:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1245:12: branch_true: following ‘true’ branch (when ‘code == 0’)...
ghostscript-10.05.1/psi/dxmain.c:1246:20: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1246:20: throw: if ‘gsapi_init_with_args’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1246:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1244|   
# 1245|           if (code == 0)
# 1246|->             code = gsapi_init_with_args(instance, nargc, nargv);
# 1247|   
# 1248|           if (code == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
ghostscript-10.05.1/psi/dxmain.c:1250:17: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1245:12: branch_false: following ‘false’ branch (when ‘code != 0’)...
ghostscript-10.05.1/psi/dxmain.c:1250:17: branch_false: ...to here
ghostscript-10.05.1/psi/dxmain.c:1250:17: throw: if ‘gsapi_exit’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1250:17: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1248|           if (code == 0)
# 1249|               code = gsapi_run_string(instance, start_string, 0, &exit_code);
# 1250|->         code1 = gsapi_exit(instance);
# 1251|           if (code == 0 || code == gs_error_Quit)
# 1252|               code = code1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
ghostscript-10.05.1/psi/dxmain.c:1256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.05.1/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.05.1/psi/dxmain.c:1213:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/dxmain.c:1214:9: branch_true: ...to here
ghostscript-10.05.1/psi/dxmain.c:1245:12: branch_false: following ‘false’ branch (when ‘code != 0’)...
ghostscript-10.05.1/psi/dxmain.c:1250:17: branch_false: ...to here
ghostscript-10.05.1/psi/dxmain.c:1256:9: throw: if ‘gsapi_delete_instance’ throws an exception...
ghostscript-10.05.1/psi/dxmain.c:1256:9: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1254|               code = 0;	/* user executed 'quit' */
# 1255|   
# 1256|->         gsapi_delete_instance(instance);
# 1257|       }
# 1258|   

Error: CPPCHECK_WARNING (CWE-758): [#def482]
ghostscript-10.05.1/psi/iapi.h:395: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  393|        * param is set without this flag (or on device init). Not valid
#  394|        * for get_typed_param. */
#  395|->     gs_spt_more_to_come = 1<<31
#  396|   } gs_set_param_type;
#  397|   /* gs_spt_parsed allows for a string such as "<< /Foo 0 /Bar true >>" or

Error: CPPCHECK_WARNING (CWE-457): [#def483]
ghostscript-10.05.1/psi/idict.c:816: error[uninitvar]: Uninitialized variable: *(&dnew.keys)
#  814|       else
#  815|           gs_free_ref_array(mem, &pdict->keys, "dict_resize(old keys)");
#  816|->     ref_assign(&pdict->keys, &dnew.keys);
#  817|       ref_assign(&pdict->values, &dnew.values);
#  818|       r_store_attrs(&pdict->values, a_all | a_executable, orig_attrs);

Error: CPPCHECK_WARNING (CWE-909): [#def484]
ghostscript-10.05.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.is_thread_safe
#  529|               next = mem->saved;
#  530|               mem->saved = prev;
#  531|->             mem->previous_status = total;
#  532|               if_debug3m('6', (const gs_memory_t *)mem,
#  533|                          "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",

Error: CPPCHECK_WARNING (CWE-909): [#def485]
ghostscript-10.05.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.limit
#  529|               next = mem->saved;
#  530|               mem->saved = prev;
#  531|->             mem->previous_status = total;
#  532|               if_debug3m('6', (const gs_memory_t *)mem,
#  533|                          "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",

Error: CPPCHECK_WARNING (CWE-909): [#def486]
ghostscript-10.05.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.max_used
#  529|               next = mem->saved;
#  530|               mem->saved = prev;
#  531|->             mem->previous_status = total;
#  532|               if_debug3m('6', (const gs_memory_t *)mem,
#  533|                          "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",

Error: CPPCHECK_WARNING (CWE-190): [#def487]
ghostscript-10.05.1/psi/igc.c:1196: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1194|            !(*procs->set_reloc) (pre, reloc, size))
# 1195|           ) {			/* Free object */
# 1196|->         reloc += sizeof(obj_header_t) + obj_align_round(size);
# 1197|           if ((finalize = pre->o_type->finalize) != 0) {
# 1198|               if_debug2m('u', gcst->heap, "[u]GC finalizing %s "PRI_INTPTR"\n",

Error: CPPCHECK_WARNING (CWE-190): [#def488]
ghostscript-10.05.1/psi/igcstr.c:67: error[integerOverflow]: Signed integer overflow for expression '-(1<<(2+3))'.
#   65|   {
#   66|       uint offset = ptr - cp->sbase;
#   67|->     bword *bp = (bword *) (cp->smark + ((offset & -bword_bits) >> 3));
#   68|       uint bn = offset & (bword_bits - 1);
#   69|       bword m = (bword)(((uint64_t)bword_1s << bn) & bword_1s);

Error: CPPCHECK_WARNING (CWE-190): [#def489]
ghostscript-10.05.1/psi/igcstr.c:97: error[integerOverflow]: Signed integer overflow for expression '-(1<<(2+3))'.
#   95|               m = bword_1s, left -= bword_bits - bn, bp++;
#   96|               if (left >= bword_bits * 5) {
#   97|->                 memset(bp, 0, (left & -bword_bits) >> 3);
#   98|                   bp += left >> bword_log2_bits;
#   99|                   left &= bword_bits - 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
ghostscript-10.05.1/psi/imain.c:1203:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.05.1/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.05.1/psi/imain.c:1252:17: call_function: calling ‘gs_main_tempnames’ from ‘gs_main_finit’
# 1201|               memset(tempnames, 0, len+1);
# 1202|               /* copy temporary filenames */
# 1203|->             idict = dict_first(tempfiles);
# 1204|               i = 0;
# 1205|               while ((idict = dict_next(tempfiles, idict, &keyval[0])) >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
ghostscript-10.05.1/psi/imain.c:1205:29: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.05.1/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.05.1/psi/imain.c:1252:17: call_function: calling ‘gs_main_tempnames’ from ‘gs_main_finit’
# 1203|               idict = dict_first(tempfiles);
# 1204|               i = 0;
# 1205|->             while ((idict = dict_next(tempfiles, idict, &keyval[0])) >= 0) {
# 1206|                   if (obj_string_data(minst->heap, &keyval[0], &data, &size) >= 0) {
# 1207|                       memcpy(tempnames+i, (const char *)data, size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
ghostscript-10.05.1/psi/imain.c:1206:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.05.1/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.05.1/psi/imain.c:1252:17: call_function: calling ‘gs_main_tempnames’ from ‘gs_main_finit’
# 1204|               i = 0;
# 1205|               while ((idict = dict_next(tempfiles, idict, &keyval[0])) >= 0) {
# 1206|->                 if (obj_string_data(minst->heap, &keyval[0], &data, &size) >= 0) {
# 1207|                       memcpy(tempnames+i, (const char *)data, size);
# 1208|                       i+= size;

Error: CPPCHECK_WARNING (CWE-190): [#def493]
ghostscript-10.05.1/psi/iname.c:111: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
#  109|       for (i = -1; i < NT_1CHAR_SIZE; i++) {
#  110|           uint ncnt = NT_1CHAR_FIRST + i;
#  111|->         uint nidx = name_count_to_index(ncnt);
#  112|           name *pname = names_index_ptr_inline(nt, nidx);
#  113|           name_string_t *pnstr = names_index_string_inline(nt, nidx);

Error: CPPCHECK_WARNING (CWE-190): [#def494]
ghostscript-10.05.1/psi/iname.c:180: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
#  178|               uint hash = *ptr + NT_1CHAR_FIRST;
#  179|   
#  180|->             nidx = name_count_to_index(hash);
#  181|               pname = names_index_ptr_inline(nt, nidx);
#  182|               goto mkn;

Error: CPPCHECK_WARNING (CWE-190): [#def495]
ghostscript-10.05.1/psi/iname.c:345: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
#  343|               /* We can make the test much more efficient if we want.... */
#  344|               for (i = 0; i < nt_sub_size; ++i)
#  345|->                 if (name_index_to_count((si << nt_log2_sub_size) + i) >=
#  346|                       nt->perm_count)
#  347|                       ssub->strings[i].mark = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def496]
ghostscript-10.05.1/psi/iname.c:586: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
#  584|           nbase = 1, keep = true;	/* don't free name 0 */
#  585|       for (;; --ncnt) {
#  586|->         uint nidx = name_count_to_index(ncnt);
#  587|           name_string_t *pnstr = &ssub->strings[nidx & nt_sub_index_mask];
#  588|   

Error: CPPCHECK_WARNING (CWE-562): [#def497]
ghostscript-10.05.1/psi/iparam.c:667: error[invalidLifetime]: Using object that points to local variable 'elt' that is out of scope.
#  665|       if (code < 0) {
#  666|           gs_free_object(plist->memory, psv, "ref_param_read_string_array");
#  667|->         return (*loc.presult = code);
#  668|       }
#  669|       pvalue->data = psv;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
ghostscript-10.05.1/psi/isave.c:727:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.05.1/psi/isave.c:868:1: enter_function: entry to ‘alloc_restore_all’
ghostscript-10.05.1/psi/isave.c:882:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/isave.c:883:71: branch_true: ...to here
ghostscript-10.05.1/psi/isave.c:883:52: call_function: calling ‘alloc_save_current’ from ‘alloc_restore_all’
ghostscript-10.05.1/psi/isave.c:883:52: return_function: returning to ‘alloc_restore_all’ from ‘alloc_save_current’
ghostscript-10.05.1/psi/isave.c:883:29: call_function: inlined call to ‘alloc_save_client_data’ from ‘alloc_restore_all’
#  725|   alloc_save_client_data(const alloc_save_t * save)
#  726|   {
#  727|->     return save->client_data;
#  728|   }
#  729|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def499]
ghostscript-10.05.1/psi/iscan.c:738:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘arr’
ghostscript-10.05.1/psi/iscan.c:495:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/iscan.c:496:9: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:512:17: branch_true: following ‘true’ branch (when ‘sptr’ is non-NULL)...
ghostscript-10.05.1/psi/iscan.c:512:17: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:513:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:515:17: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:1214:11: branch_false: following ‘false’ branch (when ‘retcode >= 0’)...
ghostscript-10.05.1/psi/iscan.c:1227:9: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:1227:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:1231:3: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:1231:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/iscan.c:1231:9: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:549:11: branch_false: following ‘false’ branch (when ‘sptr < endptr’)...
ghostscript-10.05.1/psi/iscan.c:549:7: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:685:16: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:687:13: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:697:20: branch_false: following ‘false’ branch (when ‘size <= 16777216’)...
ghostscript-10.05.1/psi/iscan.c:699:45: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:699:25: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/iscan.c:700:20: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:700:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:703:28: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:703:27: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/iscan.c:704:31: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:706:24: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:712:21: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:731:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:735:25: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:735:24: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:737:39: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:738:21: danger: use of uninitialized value ‘arr’ here
#  736|                           ref_stack_pop_block(&o_stack);
#  737|                       sstate.s_pstack = osp->value.intval;
#  738|->                     *osp = arr;
#  739|                       goto snext;
#  740|                   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def500]
ghostscript-10.05.1/psi/iscan.c:817:21: warning[-Wanalyzer-null-argument]: use of NULL ‘sptr’ where non-null expected
ghostscript-10.05.1/psi/iscan.c:495:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/iscan.c:533:28: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:544:5: branch_false: following ‘false’ branch (when ‘sptr’ is NULL)...
ghostscript-10.05.1/psi/iscan.c:549:3: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:549:11: branch_true: following ‘true’ branch (when ‘sptr >= endptr’)...
ghostscript-10.05.1/psi/iscan.c:549:11: branch_true: ...to here
ghostscript-10.05.1/psi/iscan.c:549:11: release_memory: ‘sptr’ is NULL
ghostscript-10.05.1/psi/iscan.c:549:11: branch_false: following ‘false’ branch (when ‘sptr’ is NULL)...
ghostscript-10.05.1/psi/iscan.c:551:5: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:786:24: branch_false: following ‘false’ branch (when ‘endptr <= sptr’)...
ghostscript-10.05.1/psi/iscan.c:810:17: branch_false: ...to here
ghostscript-10.05.1/psi/iscan.c:817:21: danger: argument 2 (‘sptr’) NULL where non-null expected
#  815|                           len = sizeof(sstate.s_da.buf);
#  816|   
#  817|->                     memcpy(sstate.s_da.buf, base, len);
#  818|                       daptr = sstate.s_da.buf + len;
#  819|                   }

Error: CPPCHECK_WARNING (CWE-190): [#def501]
ghostscript-10.05.1/psi/zarith.c:460: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
#  458|           case t_integer:
#  459|               if (sizeof(ps_int) != 32 && gs_currentcpsimode(imemory)) {
#  460|->                 if (((unsigned int)op->value.intval) == MIN_PS_INT32)
#  461|                       make_real(op, -(float)(ps_uint32)MIN_PS_INT32);
#  462|                   else

Error: COMPILER_WARNING (CWE-563): [#def502]
ghostscript-10.05.1/psi/zcolor.c:170:17: warning[-Wunused-variable]: unused variable ‘stref’
#  170 |     ref namestr,stref, *aref;
#      |                 ^~~~~
#  168|       os_ptr  op = osp;   /* required by "push" macro */
#  169|       int code;
#  170|->     ref namestr,stref, *aref;
#  171|       byte *body;
#  172|   

Error: COMPILER_WARNING (CWE-563): [#def503]
ghostscript-10.05.1/psi/zcolor.c: scope_hint: In function ‘zcurrentcolorspace’
ghostscript-10.05.1/psi/zcolor.c:171:11: warning[-Wunused-variable]: unused variable ‘body’
#  171 |     byte *body;
#      |           ^~~~
#  169|       int code;
#  170|       ref namestr,stref, *aref;
#  171|->     byte *body;
#  172|   
#  173|       /* Adobe applications expect that the Device spaces (DeviceGray

Error: COMPILER_WARNING (CWE-563): [#def504]
ghostscript-10.05.1/psi/zcolor.c: scope_hint: In function ‘copy_cspace_dict’
ghostscript-10.05.1/psi/zcolor.c:493:26: warning[-Wunused-variable]: unused variable ‘i’
#  493 |     int code = 0, index, i = 0;
#      |                          ^
#  491|   static int copy_cspace_dict(i_ctx_t * i_ctx_p, ref *dest, ref *src)
#  492|   {
#  493|->     int code = 0, index, i = 0;
#  494|       uint saved_space = avm_local;
#  495|       ref eltp[2], cref;

Error: COMPILER_WARNING (CWE-563): [#def505]
ghostscript-10.05.1/psi/zcolor.c: scope_hint: In function ‘septransform’
ghostscript-10.05.1/psi/zcolor.c:3944:30: warning[-Wunused-variable]: unused variable ‘pimap’
# 3944 |             gs_device_n_map *pimap;
#      |                              ^~~~~
# 3942|           if (*stage == 10) {
# 3943|               gs_function_t *pfn = NULL;
# 3944|->             gs_device_n_map *pimap;
# 3945|               gs_color_space * pcs;
# 3946|               float in, out[4];

Error: COMPILER_WARNING (CWE-563): [#def506]
ghostscript-10.05.1/psi/zcolor.c: scope_hint: In function ‘devicentransform’
ghostscript-10.05.1/psi/zcolor.c:4802:30: warning[-Wunused-variable]: unused variable ‘pimap’
# 4802 |             gs_device_n_map *pimap;
#      |                              ^~~~~
# 4800|           if (*stage == 10) {
# 4801|               gs_function_t *pfn = NULL;
# 4802|->             gs_device_n_map *pimap;
# 4803|               gs_color_space * pcs;
# 4804|               float *in, *out;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def507]
ghostscript-10.05.1/psi/zcolor.c:6927:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘obj’
ghostscript-10.05.1/psi/zcolor.c:6908:18: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zcolor.c:6927:16: branch_false: ...to here
ghostscript-10.05.1/psi/zcolor.c:6927:16: danger: use of uninitialized value ‘obj’ here
# 6925|               }
# 6926|           }
# 6927|->         if (obj->runtransformproc) {
# 6928|               code = obj->runtransformproc(i_ctx_p, &istate->colorspace[0].orig_array_copy, &usealternate, &stage);
# 6929|               make_int(&ep[-1], stage);

Error: CPPCHECK_WARNING (CWE-457): [#def508]
ghostscript-10.05.1/psi/zcolor.c:6956: warning[uninitvar]: Uninitialized variable: obj
# 6954|   
# 6955|       /* Remove our next continuation and our data */
# 6956|->     obj->numcomponents(i_ctx_p, parr, &i);
# 6957|       /* This would be better done sooner, but we need the color space object first */
# 6958|       check_op(i);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def509]
ghostscript-10.05.1/psi/zcolor.c:7024:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘obj’
ghostscript-10.05.1/psi/zcolor.c:7002:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/zcolor.c:7003:9: branch_true: ...to here
ghostscript-10.05.1/psi/zcolor.c:7007:20: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zcolor.c:7024:19: branch_false: ...to here
ghostscript-10.05.1/psi/zcolor.c:7024:19: danger: use of uninitialized value ‘obj’ here
# 7022|           }
# 7023|   
# 7024|->         code = obj->setproc(i_ctx_p, parr, &stage, &cont, CIESubst);
# 7025|           make_int(pstage, stage);
# 7026|           if (code != 0) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def510]
ghostscript-10.05.1/psi/zcolor.c:7090:9: warning[-Wanalyzer-infinite-loop]: infinite loop
# 7088|   
# 7089|       do {
# 7090|->         switch(stage) {
# 7091|               case 0:
# 7092|                   make_int(pstage, ++stage);

Error: COMPILER_WARNING (CWE-563): [#def511]
ghostscript-10.05.1/psi/zcolor.c: scope_hint: In function ‘currentbasecolor’
ghostscript-10.05.1/psi/zcolor.c:7289:12: warning[-Wunused-variable]: unused variable ‘ep’
# 7289 |     es_ptr ep = esp;
#      |            ^~
# 7287|   {
# 7288|       ref *parr = &arr;
# 7289|->     es_ptr ep = esp;
# 7290|       int i, code = 0, cont=1, CIESubst=0;
# 7291|       unsigned int depth = 1;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def512]
ghostscript-10.05.1/psi/zfile.c:489:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pname1.iodev’
ghostscript-10.05.1/psi/zfile.c:474:1: enter_function: entry to ‘zrenamefile’
ghostscript-10.05.1/psi/zfile.c:480:5: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zfile.c:481:46: branch_false: ...to here
ghostscript-10.05.1/psi/zfile.c:482:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zfile.c:485:5: branch_false: ...to here
ghostscript-10.05.1/psi/zfile.c:486:12: call_function: calling ‘parse_real_file_name’ from ‘zrenamefile’
ghostscript-10.05.1/psi/zfile.c:486:12: return_function: returning to ‘zrenamefile’ from ‘parse_real_file_name’
ghostscript-10.05.1/psi/zfile.c:487:8: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/zfile.c:488:36: branch_true: ...to here
ghostscript-10.05.1/psi/zfile.c:489:13: danger: use of uninitialized value ‘pname1.iodev’ here
#  487|       if (code >= 0) {
#  488|           gx_io_device *iodev_dflt = iodev_default(imemory);
#  489|->         if (pname1.iodev != pname2.iodev ) {
#  490|               if (pname1.iodev == iodev_dflt)
#  491|                   pname1.iodev = pname2.iodev;

Error: CPPCHECK_WARNING (CWE-758): [#def513]
ghostscript-10.05.1/psi/zfont2.c:1430: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1428|       unsigned int c, u;
# 1429|       const int ext16 = ~0 << 15;  /* sign extension constant */
# 1430|->     const int ext32 = ~0 << 31;  /* sign extension constant */
# 1431|   
# 1432|       if ((code = card8(&c, data, p, pe)) < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def514]
ghostscript-10.05.1/psi/zicc.c:229:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘picc_profile’
ghostscript-10.05.1/psi/zicc.c:77:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:79:5: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:79:5: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:79:5: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:83:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:94:9: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:109:12: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:116:62: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:118:9: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:125:71: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:126:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:131:5: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.05.1/psi/zicc.c:161:5: branch_false: ...to here
ghostscript-10.05.1/psi/zicc.c:222:8: branch_true: following ‘true’ branch (when ‘picc_profile’ is non-NULL)...
ghostscript-10.05.1/psi/zicc.c:226:9: branch_true: ...to here
ghostscript-10.05.1/psi/zicc.c:226:9: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/zicc.c:226:9: branch_true: ...to here
ghostscript-10.05.1/psi/zicc.c:227:12: branch_true: following ‘true’ branch...
ghostscript-10.05.1/psi/zicc.c:229:36: branch_true: ...to here
ghostscript-10.05.1/psi/zicc.c:229:36: danger: dereference of NULL ‘picc_profile’
#  227|           if (code >= 0) {
#  228|               /* Save this colorspace in the iccprofile_cache */
#  229|->             gsicc_add_cs(igs, pcs, picc_profile->hashcode);
#  230|               /* should be an integer, but if for some reason it isn't, don't update */
#  231|               if (phashval && r_has_type(phashval, t_integer))

Error: CPPCHECK_WARNING (CWE-457): [#def515]
ghostscript-10.05.1/psi/zupath.c:633: error[uninitvar]: Uninitialized variable: pts.x
#  631|           const double  *fts[6];
#  632|   
#  633|->         fts[0] = &pts[0].x;
#  634|           fts[1] = &pts[0].y;
#  635|           fts[2] = &pts[1].x;

Error: COMPILER_WARNING (CWE-704): [#def516]
ghostscript-10.05.1/soobj/gconfig.h:7:1: warning[-Wlto-type-mismatch]: type of ‘gs_display_device’ does not match original declaration
#    7 | device_(gs_display_device)
#      | ^
ghostscript-10.05.1/devices/gdevdsp.c:133:25: note: type ‘const struct gx_device_display’ should match type ‘struct gx_device’
#  133 | const gx_device_display gs_display_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevdsp.c:133:25: note: ‘gs_display_device’ was previously declared here
#    5|   #endif
#    6|   #ifdef device_
#    7|-> device_(gs_display_device)
#    8|   #endif
#    9|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def517]
ghostscript-10.05.1/soobj/gconfig.h:10:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11_device’ does not match original declaration
#   10 | device2_(gs_x11_device)
#      | ^
ghostscript-10.05.1/devices/gdevx.c:164:1: note: type ‘const struct gx_device_X’ should match type ‘const struct gx_device’
#  164 | x_device(gs_x11_device,
#      | ^
ghostscript-10.05.1/devices/gdevx.c:164:1: note: ‘gs_x11_device’ was previously declared here
#    8|   #endif
#    9|   #ifdef device2_
#   10|-> device2_(gs_x11_device)
#   11|   device2_(gs_x11alpha_device)
#   12|   device2_(gs_x11cmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def518]
ghostscript-10.05.1/soobj/gconfig.h:11:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11alpha_device’ does not match original declaration
#   11 | device2_(gs_x11alpha_device)
#      | ^
ghostscript-10.05.1/devices/gdevx.c:173:1: note: type ‘const struct gx_device_X’ should match type ‘const struct gx_device’
#  173 | x_device(gs_x11alpha_device,
#      | ^
ghostscript-10.05.1/devices/gdevx.c:173:1: note: ‘gs_x11alpha_device’ was previously declared here
#    9|   #ifdef device2_
#   10|   device2_(gs_x11_device)
#   11|-> device2_(gs_x11alpha_device)
#   12|   device2_(gs_x11cmyk_device)
#   13|   device2_(gs_x11cmyk2_device)

Error: COMPILER_WARNING (CWE-704): [#def519]
ghostscript-10.05.1/soobj/gconfig.h:12:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk_device’ does not match original declaration
#   12 | device2_(gs_x11cmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:601:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  601 | const gx_device_X_wrapper gs_x11cmyk_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:601:27: note: ‘gs_x11cmyk_device’ was previously declared here
#   10|   device2_(gs_x11_device)
#   11|   device2_(gs_x11alpha_device)
#   12|-> device2_(gs_x11cmyk_device)
#   13|   device2_(gs_x11cmyk2_device)
#   14|   device2_(gs_x11cmyk4_device)

Error: COMPILER_WARNING (CWE-704): [#def520]
ghostscript-10.05.1/soobj/gconfig.h:13:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk2_device’ does not match original declaration
#   13 | device2_(gs_x11cmyk2_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:610:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  610 | const gx_device_X_wrapper gs_x11cmyk2_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:610:27: note: ‘gs_x11cmyk2_device’ was previously declared here
#   11|   device2_(gs_x11alpha_device)
#   12|   device2_(gs_x11cmyk_device)
#   13|-> device2_(gs_x11cmyk2_device)
#   14|   device2_(gs_x11cmyk4_device)
#   15|   device2_(gs_x11cmyk8_device)

Error: COMPILER_WARNING (CWE-704): [#def521]
ghostscript-10.05.1/soobj/gconfig.h:14:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk4_device’ does not match original declaration
#   14 | device2_(gs_x11cmyk4_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:619:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  619 | const gx_device_X_wrapper gs_x11cmyk4_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:619:27: note: ‘gs_x11cmyk4_device’ was previously declared here
#   12|   device2_(gs_x11cmyk_device)
#   13|   device2_(gs_x11cmyk2_device)
#   14|-> device2_(gs_x11cmyk4_device)
#   15|   device2_(gs_x11cmyk8_device)
#   16|   device2_(gs_x11gray2_device)

Error: COMPILER_WARNING (CWE-704): [#def522]
ghostscript-10.05.1/soobj/gconfig.h:15:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk8_device’ does not match original declaration
#   15 | device2_(gs_x11cmyk8_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:628:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  628 | const gx_device_X_wrapper gs_x11cmyk8_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:628:27: note: ‘gs_x11cmyk8_device’ was previously declared here
#   13|   device2_(gs_x11cmyk2_device)
#   14|   device2_(gs_x11cmyk4_device)
#   15|-> device2_(gs_x11cmyk8_device)
#   16|   device2_(gs_x11gray2_device)
#   17|   device2_(gs_x11gray4_device)

Error: COMPILER_WARNING (CWE-704): [#def523]
ghostscript-10.05.1/soobj/gconfig.h:16:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11gray2_device’ does not match original declaration
#   16 | device2_(gs_x11gray2_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:776:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  776 | const gx_device_X_wrapper gs_x11gray2_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:776:27: note: ‘gs_x11gray2_device’ was previously declared here
#   14|   device2_(gs_x11cmyk4_device)
#   15|   device2_(gs_x11cmyk8_device)
#   16|-> device2_(gs_x11gray2_device)
#   17|   device2_(gs_x11gray4_device)
#   18|   device2_(gs_x11mono_device)

Error: COMPILER_WARNING (CWE-704): [#def524]
ghostscript-10.05.1/soobj/gconfig.h:17:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11gray4_device’ does not match original declaration
#   17 | device2_(gs_x11gray4_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:786:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  786 | const gx_device_X_wrapper gs_x11gray4_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:786:27: note: ‘gs_x11gray4_device’ was previously declared here
#   15|   device2_(gs_x11cmyk8_device)
#   16|   device2_(gs_x11gray2_device)
#   17|-> device2_(gs_x11gray4_device)
#   18|   device2_(gs_x11mono_device)
#   19|   device2_(gs_x11rg16x_device)

Error: COMPILER_WARNING (CWE-704): [#def525]
ghostscript-10.05.1/soobj/gconfig.h:18:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11mono_device’ does not match original declaration
#   18 | device2_(gs_x11mono_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:730:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  730 | const gx_device_X_wrapper gs_x11mono_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:730:27: note: ‘gs_x11mono_device’ was previously declared here
#   16|   device2_(gs_x11gray2_device)
#   17|   device2_(gs_x11gray4_device)
#   18|-> device2_(gs_x11mono_device)
#   19|   device2_(gs_x11rg16x_device)
#   20|   device2_(gs_x11rg32x_device)

Error: COMPILER_WARNING (CWE-704): [#def526]
ghostscript-10.05.1/soobj/gconfig.h:19:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11rg16x_device’ does not match original declaration
#   19 | device2_(gs_x11rg16x_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:845:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  845 | const gx_device_X_wrapper gs_x11rg16x_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:845:27: note: ‘gs_x11rg16x_device’ was previously declared here
#   17|   device2_(gs_x11gray4_device)
#   18|   device2_(gs_x11mono_device)
#   19|-> device2_(gs_x11rg16x_device)
#   20|   device2_(gs_x11rg32x_device)
#   21|   device2_(gs_PCLm_device)

Error: COMPILER_WARNING (CWE-704): [#def527]
ghostscript-10.05.1/soobj/gconfig.h:20:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11rg32x_device’ does not match original declaration
#   20 | device2_(gs_x11rg32x_device)
#      | ^
ghostscript-10.05.1/devices/gdevxalt.c:863:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
#  863 | const gx_device_X_wrapper gs_x11rg32x_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevxalt.c:863:27: note: ‘gs_x11rg32x_device’ was previously declared here
#   18|   device2_(gs_x11mono_device)
#   19|   device2_(gs_x11rg16x_device)
#   20|-> device2_(gs_x11rg32x_device)
#   21|   device2_(gs_PCLm_device)
#   22|   device2_(gs_PCLm8_device)

Error: COMPILER_WARNING (CWE-704): [#def528]
ghostscript-10.05.1/soobj/gconfig.h:21:1: warning[-Wlto-type-mismatch]: type of ‘gs_PCLm_device’ does not match original declaration
#   21 | device2_(gs_PCLm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpdfimg.c:1158:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1158 | const gx_device_pdf_image gs_PCLm_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevpdfimg.c:1158:27: note: ‘gs_PCLm_device’ was previously declared here
#   19|   device2_(gs_x11rg16x_device)
#   20|   device2_(gs_x11rg32x_device)
#   21|-> device2_(gs_PCLm_device)
#   22|   device2_(gs_PCLm8_device)
#   23|   device2_(gs_bbox_device)

Error: COMPILER_WARNING (CWE-704): [#def529]
ghostscript-10.05.1/soobj/gconfig.h:22:1: warning[-Wlto-type-mismatch]: type of ‘gs_PCLm8_device’ does not match original declaration
#   22 | device2_(gs_PCLm8_device)
#      | ^
ghostscript-10.05.1/devices/gdevpdfimg.c:1176:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1176 | const gx_device_pdf_image gs_PCLm8_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevpdfimg.c:1176:27: note: ‘gs_PCLm8_device’ was previously declared here
#   20|   device2_(gs_x11rg32x_device)
#   21|   device2_(gs_PCLm_device)
#   22|-> device2_(gs_PCLm8_device)
#   23|   device2_(gs_bbox_device)
#   24|   device2_(gs_bit_device)

Error: COMPILER_WARNING (CWE-704): [#def530]
ghostscript-10.05.1/soobj/gconfig.h:23:1: warning[-Wlto-type-mismatch]: type of ‘gs_bbox_device’ does not match original declaration
#   23 | device2_(gs_bbox_device)
#      | ^
ghostscript-10.05.1/base/gdevbbox.c:114:16: note: type ‘const struct gx_device_bbox’ should match type ‘const struct gx_device’
#  114 | gx_device_bbox gs_bbox_device =
#      |                ^
ghostscript-10.05.1/base/gdevbbox.c:114:16: note: ‘gs_bbox_device’ was previously declared here
#   21|   device2_(gs_PCLm_device)
#   22|   device2_(gs_PCLm8_device)
#   23|-> device2_(gs_bbox_device)
#   24|   device2_(gs_bit_device)
#   25|   device2_(gs_bitcmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def531]
ghostscript-10.05.1/soobj/gconfig.h:24:1: warning[-Wlto-type-mismatch]: type of ‘gs_bit_device’ does not match original declaration
#   24 | device2_(gs_bit_device)
#      | ^
ghostscript-10.05.1/devices/gdevbit.c:101:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
#  101 | const gx_device_bit gs_bit_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevbit.c:101:21: note: ‘gs_bit_device’ was previously declared here
#   22|   device2_(gs_PCLm8_device)
#   23|   device2_(gs_bbox_device)
#   24|-> device2_(gs_bit_device)
#   25|   device2_(gs_bitcmyk_device)
#   26|   device2_(gs_bitrgb_device)

Error: COMPILER_WARNING (CWE-704): [#def532]
ghostscript-10.05.1/soobj/gconfig.h:25:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitcmyk_device’ does not match original declaration
#   25 | device2_(gs_bitcmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevbit.c:139:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
#  139 | const gx_device_bit gs_bitcmyk_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevbit.c:139:21: note: ‘gs_bitcmyk_device’ was previously declared here
#   23|   device2_(gs_bbox_device)
#   24|   device2_(gs_bit_device)
#   25|-> device2_(gs_bitcmyk_device)
#   26|   device2_(gs_bitrgb_device)
#   27|   device2_(gs_bitrgbtags_device)

Error: COMPILER_WARNING (CWE-704): [#def533]
ghostscript-10.05.1/soobj/gconfig.h:26:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitrgb_device’ does not match original declaration
#   26 | device2_(gs_bitrgb_device)
#      | ^
ghostscript-10.05.1/devices/gdevbit.c:120:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
#  120 | const gx_device_bit gs_bitrgb_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevbit.c:120:21: note: ‘gs_bitrgb_device’ was previously declared here
#   24|   device2_(gs_bit_device)
#   25|   device2_(gs_bitcmyk_device)
#   26|-> device2_(gs_bitrgb_device)
#   27|   device2_(gs_bitrgbtags_device)
#   28|   device2_(gs_bmp16_device)

Error: COMPILER_WARNING (CWE-704): [#def534]
ghostscript-10.05.1/soobj/gconfig.h:27:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitrgbtags_device’ does not match original declaration
#   27 | device2_(gs_bitrgbtags_device)
#      | ^
ghostscript-10.05.1/devices/gdevbit.c:166:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
#  166 | const gx_device_bit gs_bitrgbtags_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevbit.c:166:21: note: ‘gs_bitrgbtags_device’ was previously declared here
#   25|   device2_(gs_bitcmyk_device)
#   26|   device2_(gs_bitrgb_device)
#   27|-> device2_(gs_bitrgbtags_device)
#   28|   device2_(gs_bmp16_device)
#   29|   device2_(gs_bmp16m_device)

Error: COMPILER_WARNING (CWE-704): [#def535]
ghostscript-10.05.1/soobj/gconfig.h:28:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp16_device’ does not match original declaration
#   28 | device2_(gs_bmp16_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:103:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  103 | const gx_device_printer gs_bmp16_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:103:25: note: ‘gs_bmp16_device’ was previously declared here
#   26|   device2_(gs_bitrgb_device)
#   27|   device2_(gs_bitrgbtags_device)
#   28|-> device2_(gs_bmp16_device)
#   29|   device2_(gs_bmp16m_device)
#   30|   device2_(gs_bmp256_device)

Error: COMPILER_WARNING (CWE-704): [#def536]
ghostscript-10.05.1/soobj/gconfig.h:29:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp16m_device’ does not match original declaration
#   29 | device2_(gs_bmp16m_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:148:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  148 | const gx_device_printer gs_bmp16m_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:148:25: note: ‘gs_bmp16m_device’ was previously declared here
#   27|   device2_(gs_bitrgbtags_device)
#   28|   device2_(gs_bmp16_device)
#   29|-> device2_(gs_bmp16m_device)
#   30|   device2_(gs_bmp256_device)
#   31|   device2_(gs_bmp32b_device)

Error: COMPILER_WARNING (CWE-704): [#def537]
ghostscript-10.05.1/soobj/gconfig.h:30:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp256_device’ does not match original declaration
#   30 | device2_(gs_bmp256_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:126:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  126 | const gx_device_printer gs_bmp256_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:126:25: note: ‘gs_bmp256_device’ was previously declared here
#   28|   device2_(gs_bmp16_device)
#   29|   device2_(gs_bmp16m_device)
#   30|-> device2_(gs_bmp256_device)
#   31|   device2_(gs_bmp32b_device)
#   32|   device2_(gs_bmpgray_device)

Error: COMPILER_WARNING (CWE-704): [#def538]
ghostscript-10.05.1/soobj/gconfig.h:31:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp32b_device’ does not match original declaration
#   31 | device2_(gs_bmp32b_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:162:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  162 | const gx_device_printer gs_bmp32b_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:162:25: note: ‘gs_bmp32b_device’ was previously declared here
#   29|   device2_(gs_bmp16m_device)
#   30|   device2_(gs_bmp256_device)
#   31|-> device2_(gs_bmp32b_device)
#   32|   device2_(gs_bmpgray_device)
#   33|   device2_(gs_bmpmono_device)

Error: COMPILER_WARNING (CWE-704): [#def539]
ghostscript-10.05.1/soobj/gconfig.h:32:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpgray_device’ does not match original declaration
#   32 | device2_(gs_bmpgray_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:49:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   49 | const gx_device_printer gs_bmpgray_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:49:25: note: ‘gs_bmpgray_device’ was previously declared here
#   30|   device2_(gs_bmp256_device)
#   31|   device2_(gs_bmp32b_device)
#   32|-> device2_(gs_bmpgray_device)
#   33|   device2_(gs_bmpmono_device)
#   34|   device2_(gs_bmpsep1_device)

Error: COMPILER_WARNING (CWE-704): [#def540]
ghostscript-10.05.1/soobj/gconfig.h:33:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpmono_device’ does not match original declaration
#   33 | device2_(gs_bmpmono_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:28:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   28 | const gx_device_printer gs_bmpmono_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:28:25: note: ‘gs_bmpmono_device’ was previously declared here
#   31|   device2_(gs_bmp32b_device)
#   32|   device2_(gs_bmpgray_device)
#   33|-> device2_(gs_bmpmono_device)
#   34|   device2_(gs_bmpsep1_device)
#   35|   device2_(gs_bmpsep8_device)

Error: COMPILER_WARNING (CWE-704): [#def541]
ghostscript-10.05.1/soobj/gconfig.h:34:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpsep1_device’ does not match original declaration
#   34 | device2_(gs_bmpsep1_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:66:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   66 | const gx_device_printer gs_bmpsep1_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:66:25: note: ‘gs_bmpsep1_device’ was previously declared here
#   32|   device2_(gs_bmpgray_device)
#   33|   device2_(gs_bmpmono_device)
#   34|-> device2_(gs_bmpsep1_device)
#   35|   device2_(gs_bmpsep8_device)
#   36|   #endif

Error: COMPILER_WARNING (CWE-704): [#def542]
ghostscript-10.05.1/soobj/gconfig.h:35:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpsep8_device’ does not match original declaration
#   35 | device2_(gs_bmpsep8_device)
#      | ^
ghostscript-10.05.1/devices/gdevbmp.c:81:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   81 | const gx_device_printer gs_bmpsep8_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevbmp.c:81:25: note: ‘gs_bmpsep8_device’ was previously declared here
#   33|   device2_(gs_bmpmono_device)
#   34|   device2_(gs_bmpsep1_device)
#   35|-> device2_(gs_bmpsep8_device)
#   36|   #endif
#   37|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def543]
ghostscript-10.05.1/soobj/gconfig.h:38:1: warning[-Wlto-type-mismatch]: type of ‘gs_ccr_device’ does not match original declaration
#   38 | device_(gs_ccr_device)
#      | ^
ghostscript-10.05.1/devices/gdevccr.c:113:24: note: type ‘struct gx_device_ccr’ should match type ‘struct gx_device’
#  113 | gx_device_ccr far_data gs_ccr_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevccr.c:113:24: note: ‘gs_ccr_device’ was previously declared here
#   36|   #endif
#   37|   #ifdef device_
#   38|-> device_(gs_ccr_device)
#   39|   device_(gs_cfax_device)
#   40|   device_(gs_cif_device)

Error: COMPILER_WARNING (CWE-704): [#def544]
ghostscript-10.05.1/soobj/gconfig.h:39:1: warning[-Wlto-type-mismatch]: type of ‘gs_cfax_device’ does not match original declaration
#   39 | device_(gs_cfax_device)
#      | ^
ghostscript-10.05.1/devices/gdevcfax.c:41:21: note: type ‘const struct gx_device_fax’ should match type ‘struct gx_device’
#   41 | const gx_device_fax gs_cfax_device = {
#      |                     ^
ghostscript-10.05.1/devices/gdevcfax.c:41:21: note: ‘gs_cfax_device’ was previously declared here
#   37|   #ifdef device_
#   38|   device_(gs_ccr_device)
#   39|-> device_(gs_cfax_device)
#   40|   device_(gs_cif_device)
#   41|   device_(gs_devicen_device)

Error: COMPILER_WARNING (CWE-704): [#def545]
ghostscript-10.05.1/soobj/gconfig.h:40:1: warning[-Wlto-type-mismatch]: type of ‘gs_cif_device’ does not match original declaration
#   40 | device_(gs_cif_device)
#      | ^
ghostscript-10.05.1/devices/gdevcif.c:37:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   37 | const gx_device_printer far_data gs_cif_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevcif.c:37:34: note: ‘gs_cif_device’ was previously declared here
#   38|   device_(gs_ccr_device)
#   39|   device_(gs_cfax_device)
#   40|-> device_(gs_cif_device)
#   41|   device_(gs_devicen_device)
#   42|   device_(gs_dfaxhigh_device)

Error: COMPILER_WARNING (CWE-704): [#def546]
ghostscript-10.05.1/soobj/gconfig.h:41:1: warning[-Wlto-type-mismatch]: type of ‘gs_devicen_device’ does not match original declaration
#   41 | device_(gs_devicen_device)
#      | ^
ghostscript-10.05.1/base/gdevdevn.c:1147:26: note: type ‘const struct gx_devn_prn_device’ should match type ‘struct gx_device’
# 1147 | const gx_devn_prn_device gs_devicen_device =
#      |                          ^
ghostscript-10.05.1/base/gdevdevn.c:1147:26: note: ‘gs_devicen_device’ was previously declared here
#   39|   device_(gs_cfax_device)
#   40|   device_(gs_cif_device)
#   41|-> device_(gs_devicen_device)
#   42|   device_(gs_dfaxhigh_device)
#   43|   device_(gs_dfaxlow_device)

Error: COMPILER_WARNING (CWE-704): [#def547]
ghostscript-10.05.1/soobj/gconfig.h:42:1: warning[-Wlto-type-mismatch]: type of ‘gs_dfaxhigh_device’ does not match original declaration
#   42 | device_(gs_dfaxhigh_device)
#      | ^
ghostscript-10.05.1/devices/gdevdfax.c:62:25: note: type ‘struct gx_device_dfax’ should match type ‘struct gx_device’
#   62 | gx_device_dfax far_data gs_dfaxhigh_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevdfax.c:62:25: note: ‘gs_dfaxhigh_device’ was previously declared here
#   40|   device_(gs_cif_device)
#   41|   device_(gs_devicen_device)
#   42|-> device_(gs_dfaxhigh_device)
#   43|   device_(gs_dfaxlow_device)
#   44|   #endif

Error: COMPILER_WARNING (CWE-704): [#def548]
ghostscript-10.05.1/soobj/gconfig.h:43:1: warning[-Wlto-type-mismatch]: type of ‘gs_dfaxlow_device’ does not match original declaration
#   43 | device_(gs_dfaxlow_device)
#      | ^
ghostscript-10.05.1/devices/gdevdfax.c:54:25: note: type ‘struct gx_device_dfax’ should match type ‘struct gx_device’
#   54 | gx_device_dfax far_data gs_dfaxlow_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevdfax.c:54:25: note: ‘gs_dfaxlow_device’ was previously declared here
#   41|   device_(gs_devicen_device)
#   42|   device_(gs_dfaxhigh_device)
#   43|-> device_(gs_dfaxlow_device)
#   44|   #endif
#   45|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def549]
ghostscript-10.05.1/soobj/gconfig.h:46:1: warning[-Wlto-type-mismatch]: type of ‘gs_docxwrite_device’ does not match original declaration
#   46 | device2_(gs_docxwrite_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevdocxw.c:165:29: note: type ‘const struct gx_device_docxwrite_t’ should match type ‘const struct gx_device’
#  165 | const gx_device_docxwrite_t gs_docxwrite_device =
#      |                             ^
ghostscript-10.05.1/devices/vector/gdevdocxw.c:165:29: note: ‘gs_docxwrite_device’ was previously declared here
#   44|   #endif
#   45|   #ifdef device2_
#   46|-> device2_(gs_docxwrite_device)
#   47|   device2_(gs_eps2write_device)
#   48|   device2_(gs_pdfwrite_device)

Error: COMPILER_WARNING (CWE-704): [#def550]
ghostscript-10.05.1/soobj/gconfig.h:47:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps2write_device’ does not match original declaration
#   47 | device2_(gs_eps2write_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
#   29 | const gx_device_pdf PDF_DEVICE_IDENT =
#      |                     ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_eps2write_device’ was previously declared here
#   45|   #ifdef device2_
#   46|   device2_(gs_docxwrite_device)
#   47|-> device2_(gs_eps2write_device)
#   48|   device2_(gs_pdfwrite_device)
#   49|   device2_(gs_faxg3_device)

Error: COMPILER_WARNING (CWE-704): [#def551]
ghostscript-10.05.1/soobj/gconfig.h:49:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg3_device’ does not match original declaration
#   49 | device2_(gs_faxg3_device)
#      | ^
ghostscript-10.05.1/devices/gdevfax.c:45:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
#   45 | const gx_device_fax gs_faxg3_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevfax.c:45:21: note: ‘gs_faxg3_device’ was previously declared here
#   47|   device2_(gs_eps2write_device)
#   48|   device2_(gs_pdfwrite_device)
#   49|-> device2_(gs_faxg3_device)
#   50|   device2_(gs_faxg32d_device)
#   51|   device2_(gs_faxg4_device)

Error: COMPILER_WARNING (CWE-704): [#def552]
ghostscript-10.05.1/soobj/gconfig.h:50:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg32d_device’ does not match original declaration
#   50 | device2_(gs_faxg32d_device)
#      | ^
ghostscript-10.05.1/devices/gdevfax.c:48:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
#   48 | const gx_device_fax gs_faxg32d_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevfax.c:48:21: note: ‘gs_faxg32d_device’ was previously declared here
#   48|   device2_(gs_pdfwrite_device)
#   49|   device2_(gs_faxg3_device)
#   50|-> device2_(gs_faxg32d_device)
#   51|   device2_(gs_faxg4_device)
#   52|   device2_(gs_fpng_device)

Error: COMPILER_WARNING (CWE-704): [#def553]
ghostscript-10.05.1/soobj/gconfig.h:51:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg4_device’ does not match original declaration
#   51 | device2_(gs_faxg4_device)
#      | ^
ghostscript-10.05.1/devices/gdevfax.c:51:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
#   51 | const gx_device_fax gs_faxg4_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevfax.c:51:21: note: ‘gs_faxg4_device’ was previously declared here
#   49|   device2_(gs_faxg3_device)
#   50|   device2_(gs_faxg32d_device)
#   51|-> device2_(gs_faxg4_device)
#   52|   device2_(gs_fpng_device)
#   53|   #endif

Error: COMPILER_WARNING (CWE-704): [#def554]
ghostscript-10.05.1/soobj/gconfig.h:52:1: warning[-Wlto-type-mismatch]: type of ‘gs_fpng_device’ does not match original declaration
#   52 | device2_(gs_fpng_device)
#      | ^
ghostscript-10.05.1/devices/gdevfpng.c:120:22: note: type ‘const struct gx_device_fpng’ should match type ‘const struct gx_device’
#  120 | const gx_device_fpng gs_fpng_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevfpng.c:120:22: note: ‘gs_fpng_device’ was previously declared here
#   50|   device2_(gs_faxg32d_device)
#   51|   device2_(gs_faxg4_device)
#   52|-> device2_(gs_fpng_device)
#   53|   #endif
#   54|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def555]
ghostscript-10.05.1/soobj/gconfig.h:55:1: warning[-Wlto-type-mismatch]: type of ‘gs_inferno_device’ does not match original declaration
#   55 | device_(gs_inferno_device)
#      | ^
ghostscript-10.05.1/devices/gdevifno.c:97:25: note: type ‘struct inferno_device’ should match type ‘struct gx_device’
#   97 | inferno_device far_data gs_inferno_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevifno.c:97:25: note: ‘gs_inferno_device’ was previously declared here
#   53|   #endif
#   54|   #ifdef device_
#   55|-> device_(gs_inferno_device)
#   56|   #endif
#   57|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def556]
ghostscript-10.05.1/soobj/gconfig.h:58:1: warning[-Wlto-type-mismatch]: type of ‘gs_ink_cov_device’ does not match original declaration
#   58 | device2_(gs_ink_cov_device)
#      | ^
ghostscript-10.05.1/devices/gdevicov.c:176:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  176 | const gx_device_printer gs_ink_cov_device = prn_device(
#      |                         ^
ghostscript-10.05.1/devices/gdevicov.c:176:25: note: ‘gs_ink_cov_device’ was previously declared here
#   56|   #endif
#   57|   #ifdef device2_
#   58|-> device2_(gs_ink_cov_device)
#   59|   device2_(gs_inkcov_device)
#   60|   device2_(gs_jpeg_device)

Error: COMPILER_WARNING (CWE-704): [#def557]
ghostscript-10.05.1/soobj/gconfig.h:59:1: warning[-Wlto-type-mismatch]: type of ‘gs_inkcov_device’ does not match original declaration
#   59 | device2_(gs_inkcov_device)
#      | ^
ghostscript-10.05.1/devices/gdevicov.c:169:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  169 | const gx_device_printer gs_inkcov_device = prn_device(
#      |                         ^
ghostscript-10.05.1/devices/gdevicov.c:169:25: note: ‘gs_inkcov_device’ was previously declared here
#   57|   #ifdef device2_
#   58|   device2_(gs_ink_cov_device)
#   59|-> device2_(gs_inkcov_device)
#   60|   device2_(gs_jpeg_device)
#   61|   device2_(gs_jpegcmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def558]
ghostscript-10.05.1/soobj/gconfig.h:60:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpeg_device’ does not match original declaration
#   60 | device2_(gs_jpeg_device)
#      | ^
ghostscript-10.05.1/devices/gdevjpeg.c:77:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
#   77 | const gx_device_jpeg gs_jpeg_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevjpeg.c:77:22: note: ‘gs_jpeg_device’ was previously declared here
#   58|   device2_(gs_ink_cov_device)
#   59|   device2_(gs_inkcov_device)
#   60|-> device2_(gs_jpeg_device)
#   61|   device2_(gs_jpegcmyk_device)
#   62|   device2_(gs_jpeggray_device)

Error: COMPILER_WARNING (CWE-704): [#def559]
ghostscript-10.05.1/soobj/gconfig.h:61:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpegcmyk_device’ does not match original declaration
#   61 | device2_(gs_jpegcmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevjpeg.c:132:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
#  132 | const gx_device_jpeg gs_jpegcmyk_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevjpeg.c:132:22: note: ‘gs_jpegcmyk_device’ was previously declared here
#   59|   device2_(gs_inkcov_device)
#   60|   device2_(gs_jpeg_device)
#   61|-> device2_(gs_jpegcmyk_device)
#   62|   device2_(gs_jpeggray_device)
#   63|   #endif

Error: COMPILER_WARNING (CWE-704): [#def560]
ghostscript-10.05.1/soobj/gconfig.h:62:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpeggray_device’ does not match original declaration
#   62 | device2_(gs_jpeggray_device)
#      | ^
ghostscript-10.05.1/devices/gdevjpeg.c:102:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
#  102 | const gx_device_jpeg gs_jpeggray_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevjpeg.c:102:22: note: ‘gs_jpeggray_device’ was previously declared here
#   60|   device2_(gs_jpeg_device)
#   61|   device2_(gs_jpegcmyk_device)
#   62|-> device2_(gs_jpeggray_device)
#   63|   #endif
#   64|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def561]
ghostscript-10.05.1/soobj/gconfig.h:65:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgr4_device’ does not match original declaration
#   65 | device_(gs_mgr4_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:123:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  123 | gx_device_mgr far_data gs_mgr4_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:123:24: note: ‘gs_mgr4_device’ was previously declared here
#   63|   #endif
#   64|   #ifdef device_
#   65|-> device_(gs_mgr4_device)
#   66|   device_(gs_mgr8_device)
#   67|   device_(gs_mgrgray2_device)

Error: COMPILER_WARNING (CWE-704): [#def562]
ghostscript-10.05.1/soobj/gconfig.h:66:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgr8_device’ does not match original declaration
#   66 | device_(gs_mgr8_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:125:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  125 | gx_device_mgr far_data gs_mgr8_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:125:24: note: ‘gs_mgr8_device’ was previously declared here
#   64|   #ifdef device_
#   65|   device_(gs_mgr4_device)
#   66|-> device_(gs_mgr8_device)
#   67|   device_(gs_mgrgray2_device)
#   68|   device_(gs_mgrgray4_device)

Error: COMPILER_WARNING (CWE-704): [#def563]
ghostscript-10.05.1/soobj/gconfig.h:67:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray2_device’ does not match original declaration
#   67 | device_(gs_mgrgray2_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:117:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  117 | gx_device_mgr far_data gs_mgrgray2_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:117:24: note: ‘gs_mgrgray2_device’ was previously declared here
#   65|   device_(gs_mgr4_device)
#   66|   device_(gs_mgr8_device)
#   67|-> device_(gs_mgrgray2_device)
#   68|   device_(gs_mgrgray4_device)
#   69|   device_(gs_mgrgray8_device)

Error: COMPILER_WARNING (CWE-704): [#def564]
ghostscript-10.05.1/soobj/gconfig.h:68:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray4_device’ does not match original declaration
#   68 | device_(gs_mgrgray4_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:119:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  119 | gx_device_mgr far_data gs_mgrgray4_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:119:24: note: ‘gs_mgrgray4_device’ was previously declared here
#   66|   device_(gs_mgr8_device)
#   67|   device_(gs_mgrgray2_device)
#   68|-> device_(gs_mgrgray4_device)
#   69|   device_(gs_mgrgray8_device)
#   70|   device_(gs_mgrmono_device)

Error: COMPILER_WARNING (CWE-704): [#def565]
ghostscript-10.05.1/soobj/gconfig.h:69:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray8_device’ does not match original declaration
#   69 | device_(gs_mgrgray8_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:121:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  121 | gx_device_mgr far_data gs_mgrgray8_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:121:24: note: ‘gs_mgrgray8_device’ was previously declared here
#   67|   device_(gs_mgrgray2_device)
#   68|   device_(gs_mgrgray4_device)
#   69|-> device_(gs_mgrgray8_device)
#   70|   device_(gs_mgrmono_device)
#   71|   device_(gs_miff24_device)

Error: COMPILER_WARNING (CWE-704): [#def566]
ghostscript-10.05.1/soobj/gconfig.h:70:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrmono_device’ does not match original declaration
#   70 | device_(gs_mgrmono_device)
#      | ^
ghostscript-10.05.1/devices/gdevmgr.c:115:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
#  115 | gx_device_mgr far_data gs_mgrmono_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevmgr.c:115:24: note: ‘gs_mgrmono_device’ was previously declared here
#   68|   device_(gs_mgrgray4_device)
#   69|   device_(gs_mgrgray8_device)
#   70|-> device_(gs_mgrmono_device)
#   71|   device_(gs_miff24_device)
#   72|   #endif

Error: COMPILER_WARNING (CWE-704): [#def567]
ghostscript-10.05.1/soobj/gconfig.h:71:1: warning[-Wlto-type-mismatch]: type of ‘gs_miff24_device’ does not match original declaration
#   71 | device_(gs_miff24_device)
#      | ^
ghostscript-10.05.1/devices/gdevmiff.c:36:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   36 | const gx_device_printer gs_miff24_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevmiff.c:36:25: note: ‘gs_miff24_device’ was previously declared here
#   69|   device_(gs_mgrgray8_device)
#   70|   device_(gs_mgrmono_device)
#   71|-> device_(gs_miff24_device)
#   72|   #endif
#   73|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def568]
ghostscript-10.05.1/soobj/gconfig.h:74:1: warning[-Wlto-type-mismatch]: type of ‘gs_pam_device’ does not match original declaration
#   74 | device2_(gs_pam_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:283:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  283 | const gx_device_pbm gs_pam_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:283:21: note: ‘gs_pam_device’ was previously declared here
#   72|   #endif
#   73|   #ifdef device2_
#   74|-> device2_(gs_pam_device)
#   75|   device2_(gs_pamcmyk32_device)
#   76|   device2_(gs_pamcmyk4_device)

Error: COMPILER_WARNING (CWE-704): [#def569]
ghostscript-10.05.1/soobj/gconfig.h:75:1: warning[-Wlto-type-mismatch]: type of ‘gs_pamcmyk32_device’ does not match original declaration
#   75 | device2_(gs_pamcmyk32_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:273:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  273 | const gx_device_pbm gs_pamcmyk32_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:273:21: note: ‘gs_pamcmyk32_device’ was previously declared here
#   73|   #ifdef device2_
#   74|   device2_(gs_pam_device)
#   75|-> device2_(gs_pamcmyk32_device)
#   76|   device2_(gs_pamcmyk4_device)
#   77|   device2_(gs_pbm_device)

Error: COMPILER_WARNING (CWE-704): [#def570]
ghostscript-10.05.1/soobj/gconfig.h:76:1: warning[-Wlto-type-mismatch]: type of ‘gs_pamcmyk4_device’ does not match original declaration
#   76 | device2_(gs_pamcmyk4_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:279:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  279 | const gx_device_pbm gs_pamcmyk4_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:279:21: note: ‘gs_pamcmyk4_device’ was previously declared here
#   74|   device2_(gs_pam_device)
#   75|   device2_(gs_pamcmyk32_device)
#   76|-> device2_(gs_pamcmyk4_device)
#   77|   device2_(gs_pbm_device)
#   78|   device2_(gs_pbmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def571]
ghostscript-10.05.1/soobj/gconfig.h:77:1: warning[-Wlto-type-mismatch]: type of ‘gs_pbm_device’ does not match original declaration
#   77 | device2_(gs_pbm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:231:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  231 | const gx_device_pbm gs_pbm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:231:21: note: ‘gs_pbm_device’ was previously declared here
#   75|   device2_(gs_pamcmyk32_device)
#   76|   device2_(gs_pamcmyk4_device)
#   77|-> device2_(gs_pbm_device)
#   78|   device2_(gs_pbmraw_device)
#   79|   device2_(gs_pcx16_device)

Error: COMPILER_WARNING (CWE-704): [#def572]
ghostscript-10.05.1/soobj/gconfig.h:78:1: warning[-Wlto-type-mismatch]: type of ‘gs_pbmraw_device’ does not match original declaration
#   78 | device2_(gs_pbmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:234:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  234 | const gx_device_pbm gs_pbmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:234:21: note: ‘gs_pbmraw_device’ was previously declared here
#   76|   device2_(gs_pamcmyk4_device)
#   77|   device2_(gs_pbm_device)
#   78|-> device2_(gs_pbmraw_device)
#   79|   device2_(gs_pcx16_device)
#   80|   device2_(gs_pcx24b_device)

Error: COMPILER_WARNING (CWE-704): [#def573]
ghostscript-10.05.1/soobj/gconfig.h:79:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx16_device’ does not match original declaration
#   79 | device2_(gs_pcx16_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:95:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   95 | const gx_device_printer gs_pcx16_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:95:25: note: ‘gs_pcx16_device’ was previously declared here
#   77|   device2_(gs_pbm_device)
#   78|   device2_(gs_pbmraw_device)
#   79|-> device2_(gs_pcx16_device)
#   80|   device2_(gs_pcx24b_device)
#   81|   device2_(gs_pcx256_device)

Error: COMPILER_WARNING (CWE-704): [#def574]
ghostscript-10.05.1/soobj/gconfig.h:80:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx24b_device’ does not match original declaration
#   80 | device2_(gs_pcx24b_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:137:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  137 | const gx_device_printer gs_pcx24b_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:137:25: note: ‘gs_pcx24b_device’ was previously declared here
#   78|   device2_(gs_pbmraw_device)
#   79|   device2_(gs_pcx16_device)
#   80|-> device2_(gs_pcx24b_device)
#   81|   device2_(gs_pcx256_device)
#   82|   device2_(gs_pcxcmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def575]
ghostscript-10.05.1/soobj/gconfig.h:81:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx256_device’ does not match original declaration
#   81 | device2_(gs_pcx256_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:118:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  118 | const gx_device_printer gs_pcx256_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:118:25: note: ‘gs_pcx256_device’ was previously declared here
#   79|   device2_(gs_pcx16_device)
#   80|   device2_(gs_pcx24b_device)
#   81|-> device2_(gs_pcx256_device)
#   82|   device2_(gs_pcxcmyk_device)
#   83|   device2_(gs_pcxgray_device)

Error: COMPILER_WARNING (CWE-704): [#def576]
ghostscript-10.05.1/soobj/gconfig.h:82:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxcmyk_device’ does not match original declaration
#   82 | device2_(gs_pcxcmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:154:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#  154 | const gx_device_printer gs_pcxcmyk_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:154:25: note: ‘gs_pcxcmyk_device’ was previously declared here
#   80|   device2_(gs_pcx24b_device)
#   81|   device2_(gs_pcx256_device)
#   82|-> device2_(gs_pcxcmyk_device)
#   83|   device2_(gs_pcxgray_device)
#   84|   device2_(gs_pcxmono_device)

Error: COMPILER_WARNING (CWE-704): [#def577]
ghostscript-10.05.1/soobj/gconfig.h:83:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxgray_device’ does not match original declaration
#   83 | device2_(gs_pcxgray_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:71:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   71 | const gx_device_printer gs_pcxgray_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:71:25: note: ‘gs_pcxgray_device’ was previously declared here
#   81|   device2_(gs_pcx256_device)
#   82|   device2_(gs_pcxcmyk_device)
#   83|-> device2_(gs_pcxgray_device)
#   84|   device2_(gs_pcxmono_device)
#   85|   device2_(gs_pdfimage24_device)

Error: COMPILER_WARNING (CWE-704): [#def578]
ghostscript-10.05.1/soobj/gconfig.h:84:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxmono_device’ does not match original declaration
#   84 | device2_(gs_pcxmono_device)
#      | ^
ghostscript-10.05.1/devices/gdevpcx.c:51:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   51 | const gx_device_printer gs_pcxmono_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevpcx.c:51:25: note: ‘gs_pcxmono_device’ was previously declared here
#   82|   device2_(gs_pcxcmyk_device)
#   83|   device2_(gs_pcxgray_device)
#   84|-> device2_(gs_pcxmono_device)
#   85|   device2_(gs_pdfimage24_device)
#   86|   device2_(gs_pdfimage32_device)

Error: COMPILER_WARNING (CWE-704): [#def579]
ghostscript-10.05.1/soobj/gconfig.h:85:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage24_device’ does not match original declaration
#   85 | device2_(gs_pdfimage24_device)
#      | ^
ghostscript-10.05.1/devices/gdevpdfimg.c:105:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
#  105 | const gx_device_pdf_image gs_pdfimage24_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevpdfimg.c:105:27: note: ‘gs_pdfimage24_device’ was previously declared here
#   83|   device2_(gs_pcxgray_device)
#   84|   device2_(gs_pcxmono_device)
#   85|-> device2_(gs_pdfimage24_device)
#   86|   device2_(gs_pdfimage32_device)
#   87|   device2_(gs_pdfimage8_device)

Error: COMPILER_WARNING (CWE-704): [#def580]
ghostscript-10.05.1/soobj/gconfig.h:86:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage32_device’ does not match original declaration
#   86 | device2_(gs_pdfimage32_device)
#      | ^
ghostscript-10.05.1/devices/gdevpdfimg.c:136:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
#  136 | const gx_device_pdf_image gs_pdfimage32_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevpdfimg.c:136:27: note: ‘gs_pdfimage32_device’ was previously declared here
#   84|   device2_(gs_pcxmono_device)
#   85|   device2_(gs_pdfimage24_device)
#   86|-> device2_(gs_pdfimage32_device)
#   87|   device2_(gs_pdfimage8_device)
#   88|   device2_(gs_pdfwrite_device)

Error: COMPILER_WARNING (CWE-704): [#def581]
ghostscript-10.05.1/soobj/gconfig.h:87:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage8_device’ does not match original declaration
#   87 | device2_(gs_pdfimage8_device)
#      | ^
ghostscript-10.05.1/devices/gdevpdfimg.c:74:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
#   74 | const gx_device_pdf_image gs_pdfimage8_device = {
#      |                           ^
ghostscript-10.05.1/devices/gdevpdfimg.c:74:27: note: ‘gs_pdfimage8_device’ was previously declared here
#   85|   device2_(gs_pdfimage24_device)
#   86|   device2_(gs_pdfimage32_device)
#   87|-> device2_(gs_pdfimage8_device)
#   88|   device2_(gs_pdfwrite_device)
#   89|   device2_(gs_pgm_device)

Error: COMPILER_WARNING (CWE-704): [#def582]
ghostscript-10.05.1/soobj/gconfig.h:89:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgm_device’ does not match original declaration
#   89 | device2_(gs_pgm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:237:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  237 | const gx_device_pbm gs_pgm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:237:21: note: ‘gs_pgm_device’ was previously declared here
#   87|   device2_(gs_pdfimage8_device)
#   88|   device2_(gs_pdfwrite_device)
#   89|-> device2_(gs_pgm_device)
#   90|   device2_(gs_pgmraw_device)
#   91|   device2_(gs_pgnm_device)

Error: COMPILER_WARNING (CWE-704): [#def583]
ghostscript-10.05.1/soobj/gconfig.h:90:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgmraw_device’ does not match original declaration
#   90 | device2_(gs_pgmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:240:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  240 | const gx_device_pbm gs_pgmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:240:21: note: ‘gs_pgmraw_device’ was previously declared here
#   88|   device2_(gs_pdfwrite_device)
#   89|   device2_(gs_pgm_device)
#   90|-> device2_(gs_pgmraw_device)
#   91|   device2_(gs_pgnm_device)
#   92|   device2_(gs_pgnmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def584]
ghostscript-10.05.1/soobj/gconfig.h:91:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgnm_device’ does not match original declaration
#   91 | device2_(gs_pgnm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:243:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  243 | const gx_device_pbm gs_pgnm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:243:21: note: ‘gs_pgnm_device’ was previously declared here
#   89|   device2_(gs_pgm_device)
#   90|   device2_(gs_pgmraw_device)
#   91|-> device2_(gs_pgnm_device)
#   92|   device2_(gs_pgnmraw_device)
#   93|   device2_(gs_pkm_device)

Error: COMPILER_WARNING (CWE-704): [#def585]
ghostscript-10.05.1/soobj/gconfig.h:92:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgnmraw_device’ does not match original declaration
#   92 | device2_(gs_pgnmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:246:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  246 | const gx_device_pbm gs_pgnmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:246:21: note: ‘gs_pgnmraw_device’ was previously declared here
#   90|   device2_(gs_pgmraw_device)
#   91|   device2_(gs_pgnm_device)
#   92|-> device2_(gs_pgnmraw_device)
#   93|   device2_(gs_pkm_device)
#   94|   device2_(gs_pkmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def586]
ghostscript-10.05.1/soobj/gconfig.h:93:1: warning[-Wlto-type-mismatch]: type of ‘gs_pkm_device’ does not match original declaration
#   93 | device2_(gs_pkm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:261:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  261 | const gx_device_pbm gs_pkm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:261:21: note: ‘gs_pkm_device’ was previously declared here
#   91|   device2_(gs_pgnm_device)
#   92|   device2_(gs_pgnmraw_device)
#   93|-> device2_(gs_pkm_device)
#   94|   device2_(gs_pkmraw_device)
#   95|   device2_(gs_pksm_device)

Error: COMPILER_WARNING (CWE-704): [#def587]
ghostscript-10.05.1/soobj/gconfig.h:94:1: warning[-Wlto-type-mismatch]: type of ‘gs_pkmraw_device’ does not match original declaration
#   94 | device2_(gs_pkmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:264:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  264 | const gx_device_pbm gs_pkmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:264:21: note: ‘gs_pkmraw_device’ was previously declared here
#   92|   device2_(gs_pgnmraw_device)
#   93|   device2_(gs_pkm_device)
#   94|-> device2_(gs_pkmraw_device)
#   95|   device2_(gs_pksm_device)
#   96|   device2_(gs_pksmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def588]
ghostscript-10.05.1/soobj/gconfig.h:95:1: warning[-Wlto-type-mismatch]: type of ‘gs_pksm_device’ does not match original declaration
#   95 | device2_(gs_pksm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:267:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  267 | const gx_device_pbm gs_pksm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:267:21: note: ‘gs_pksm_device’ was previously declared here
#   93|   device2_(gs_pkm_device)
#   94|   device2_(gs_pkmraw_device)
#   95|-> device2_(gs_pksm_device)
#   96|   device2_(gs_pksmraw_device)
#   97|   device2_(gs_plan_device)

Error: COMPILER_WARNING (CWE-704): [#def589]
ghostscript-10.05.1/soobj/gconfig.h:96:1: warning[-Wlto-type-mismatch]: type of ‘gs_pksmraw_device’ does not match original declaration
#   96 | device2_(gs_pksmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:270:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  270 | const gx_device_pbm gs_pksmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:270:21: note: ‘gs_pksmraw_device’ was previously declared here
#   94|   device2_(gs_pkmraw_device)
#   95|   device2_(gs_pksm_device)
#   96|-> device2_(gs_pksmraw_device)
#   97|   device2_(gs_plan_device)
#   98|   device2_(gs_plan9bm_device)

Error: COMPILER_WARNING (CWE-704): [#def590]
ghostscript-10.05.1/soobj/gconfig.h:97:1: warning[-Wlto-type-mismatch]: type of ‘gs_plan_device’ does not match original declaration
#   97 | device2_(gs_plan_device)
#      | ^
ghostscript-10.05.1/devices/gdevplan.c:202:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
#  202 | const gx_device_plan gs_plan_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplan.c:202:22: note: ‘gs_plan_device’ was previously declared here
#   95|   device2_(gs_pksm_device)
#   96|   device2_(gs_pksmraw_device)
#   97|-> device2_(gs_plan_device)
#   98|   device2_(gs_plan9bm_device)
#   99|   device2_(gs_planc_device)

Error: COMPILER_WARNING (CWE-704): [#def591]
ghostscript-10.05.1/soobj/gconfig.h:98:1: warning[-Wlto-type-mismatch]: type of ‘gs_plan9bm_device’ does not match original declaration
#   98 | device2_(gs_plan9bm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:288:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  288 | const gx_device_pbm gs_plan9bm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:288:21: note: ‘gs_plan9bm_device’ was previously declared here
#   96|   device2_(gs_pksmraw_device)
#   97|   device2_(gs_plan_device)
#   98|-> device2_(gs_plan9bm_device)
#   99|   device2_(gs_planc_device)
#  100|   device2_(gs_plang_device)

Error: COMPILER_WARNING (CWE-704): [#def592]
ghostscript-10.05.1/soobj/gconfig.h:99:1: warning[-Wlto-type-mismatch]: type of ‘gs_planc_device’ does not match original declaration
#   99 | device2_(gs_planc_device)
#      | ^
ghostscript-10.05.1/devices/gdevplan.c:214:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
#  214 | const gx_device_plan gs_planc_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplan.c:214:22: note: ‘gs_planc_device’ was previously declared here
#   97|   device2_(gs_plan_device)
#   98|   device2_(gs_plan9bm_device)
#   99|-> device2_(gs_planc_device)
#  100|   device2_(gs_plang_device)
#  101|   device2_(gs_plank_device)

Error: COMPILER_WARNING (CWE-704): [#def593]
ghostscript-10.05.1/soobj/gconfig.h:100:1: warning[-Wlto-type-mismatch]: type of ‘gs_plang_device’ does not match original declaration
#  100 | device2_(gs_plang_device)
#      | ^
ghostscript-10.05.1/devices/gdevplan.c:205:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
#  205 | const gx_device_plan gs_plang_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplan.c:205:22: note: ‘gs_plang_device’ was previously declared here
#   98|   device2_(gs_plan9bm_device)
#   99|   device2_(gs_planc_device)
#  100|-> device2_(gs_plang_device)
#  101|   device2_(gs_plank_device)
#  102|   device2_(gs_planm_device)

Error: COMPILER_WARNING (CWE-704): [#def594]
ghostscript-10.05.1/soobj/gconfig.h:101:1: warning[-Wlto-type-mismatch]: type of ‘gs_plank_device’ does not match original declaration
#  101 | device2_(gs_plank_device)
#      | ^
ghostscript-10.05.1/devices/gdevplan.c:211:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
#  211 | const gx_device_plan gs_plank_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplan.c:211:22: note: ‘gs_plank_device’ was previously declared here
#   99|   device2_(gs_planc_device)
#  100|   device2_(gs_plang_device)
#  101|-> device2_(gs_plank_device)
#  102|   device2_(gs_planm_device)
#  103|   device2_(gs_plib_device)

Error: COMPILER_WARNING (CWE-704): [#def595]
ghostscript-10.05.1/soobj/gconfig.h:102:1: warning[-Wlto-type-mismatch]: type of ‘gs_planm_device’ does not match original declaration
#  102 | device2_(gs_planm_device)
#      | ^
ghostscript-10.05.1/devices/gdevplan.c:208:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
#  208 | const gx_device_plan gs_planm_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplan.c:208:22: note: ‘gs_planm_device’ was previously declared here
#  100|   device2_(gs_plang_device)
#  101|   device2_(gs_plank_device)
#  102|-> device2_(gs_planm_device)
#  103|   device2_(gs_plib_device)
#  104|   device2_(gs_plibc_device)

Error: COMPILER_WARNING (CWE-704): [#def596]
ghostscript-10.05.1/soobj/gconfig.h:103:1: warning[-Wlto-type-mismatch]: type of ‘gs_plib_device’ does not match original declaration
#  103 | device2_(gs_plib_device)
#      | ^
ghostscript-10.05.1/devices/gdevplib.c:352:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
#  352 | const gx_device_plib gs_plib_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplib.c:352:22: note: ‘gs_plib_device’ was previously declared here
#  101|   device2_(gs_plank_device)
#  102|   device2_(gs_planm_device)
#  103|-> device2_(gs_plib_device)
#  104|   device2_(gs_plibc_device)
#  105|   device2_(gs_plibg_device)

Error: COMPILER_WARNING (CWE-704): [#def597]
ghostscript-10.05.1/soobj/gconfig.h:104:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibc_device’ does not match original declaration
#  104 | device2_(gs_plibc_device)
#      | ^
ghostscript-10.05.1/devices/gdevplib.c:364:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
#  364 | const gx_device_plib gs_plibc_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplib.c:364:22: note: ‘gs_plibc_device’ was previously declared here
#  102|   device2_(gs_planm_device)
#  103|   device2_(gs_plib_device)
#  104|-> device2_(gs_plibc_device)
#  105|   device2_(gs_plibg_device)
#  106|   device2_(gs_plibk_device)

Error: COMPILER_WARNING (CWE-704): [#def598]
ghostscript-10.05.1/soobj/gconfig.h:105:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibg_device’ does not match original declaration
#  105 | device2_(gs_plibg_device)
#      | ^
ghostscript-10.05.1/devices/gdevplib.c:355:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
#  355 | const gx_device_plib gs_plibg_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplib.c:355:22: note: ‘gs_plibg_device’ was previously declared here
#  103|   device2_(gs_plib_device)
#  104|   device2_(gs_plibc_device)
#  105|-> device2_(gs_plibg_device)
#  106|   device2_(gs_plibk_device)
#  107|   device2_(gs_plibm_device)

Error: COMPILER_WARNING (CWE-704): [#def599]
ghostscript-10.05.1/soobj/gconfig.h:106:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibk_device’ does not match original declaration
#  106 | device2_(gs_plibk_device)
#      | ^
ghostscript-10.05.1/devices/gdevplib.c:361:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
#  361 | const gx_device_plib gs_plibk_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplib.c:361:22: note: ‘gs_plibk_device’ was previously declared here
#  104|   device2_(gs_plibc_device)
#  105|   device2_(gs_plibg_device)
#  106|-> device2_(gs_plibk_device)
#  107|   device2_(gs_plibm_device)
#  108|   device2_(gs_pnm_device)

Error: COMPILER_WARNING (CWE-704): [#def600]
ghostscript-10.05.1/soobj/gconfig.h:107:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibm_device’ does not match original declaration
#  107 | device2_(gs_plibm_device)
#      | ^
ghostscript-10.05.1/devices/gdevplib.c:358:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
#  358 | const gx_device_plib gs_plibm_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevplib.c:358:22: note: ‘gs_plibm_device’ was previously declared here
#  105|   device2_(gs_plibg_device)
#  106|   device2_(gs_plibk_device)
#  107|-> device2_(gs_plibm_device)
#  108|   device2_(gs_pnm_device)
#  109|   device2_(gs_pnmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def601]
ghostscript-10.05.1/soobj/gconfig.h:108:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnm_device’ does not match original declaration
#  108 | device2_(gs_pnm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:255:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  255 | const gx_device_pbm gs_pnm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:255:21: note: ‘gs_pnm_device’ was previously declared here
#  106|   device2_(gs_plibk_device)
#  107|   device2_(gs_plibm_device)
#  108|-> device2_(gs_pnm_device)
#  109|   device2_(gs_pnmraw_device)
#  110|   device2_(gs_ppm_device)

Error: COMPILER_WARNING (CWE-704): [#def602]
ghostscript-10.05.1/soobj/gconfig.h:109:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnmraw_device’ does not match original declaration
#  109 | device2_(gs_pnmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:258:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  258 | const gx_device_pbm gs_pnmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:258:21: note: ‘gs_pnmraw_device’ was previously declared here
#  107|   device2_(gs_plibm_device)
#  108|   device2_(gs_pnm_device)
#  109|-> device2_(gs_pnmraw_device)
#  110|   device2_(gs_ppm_device)
#  111|   device2_(gs_ppmraw_device)

Error: COMPILER_WARNING (CWE-704): [#def603]
ghostscript-10.05.1/soobj/gconfig.h:110:1: warning[-Wlto-type-mismatch]: type of ‘gs_ppm_device’ does not match original declaration
#  110 | device2_(gs_ppm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:249:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  249 | const gx_device_pbm gs_ppm_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:249:21: note: ‘gs_ppm_device’ was previously declared here
#  108|   device2_(gs_pnm_device)
#  109|   device2_(gs_pnmraw_device)
#  110|-> device2_(gs_ppm_device)
#  111|   device2_(gs_ppmraw_device)
#  112|   device2_(gs_pppm_device)

Error: COMPILER_WARNING (CWE-704): [#def604]
ghostscript-10.05.1/soobj/gconfig.h:111:1: warning[-Wlto-type-mismatch]: type of ‘gs_ppmraw_device’ does not match original declaration
#  111 | device2_(gs_ppmraw_device)
#      | ^
ghostscript-10.05.1/devices/gdevpbm.c:252:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
#  252 | const gx_device_pbm gs_ppmraw_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpbm.c:252:21: note: ‘gs_ppmraw_device’ was previously declared here
#  109|   device2_(gs_pnmraw_device)
#  110|   device2_(gs_ppm_device)
#  111|-> device2_(gs_ppmraw_device)
#  112|   device2_(gs_pppm_device)
#  113|   device2_(gs_ps2write_device)

Error: COMPILER_WARNING (CWE-704): [#def605]
ghostscript-10.05.1/soobj/gconfig.h:112:1: warning[-Wlto-type-mismatch]: type of ‘gs_pppm_device’ does not match original declaration
#  112 | device2_(gs_pppm_device)
#      | ^
ghostscript-10.05.1/devices/gdevpppm.c:121:22: note: type ‘const struct gx_device_pppm’ should match type ‘const struct gx_device’
#  121 | const gx_device_pppm gs_pppm_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevpppm.c:121:22: note: ‘gs_pppm_device’ was previously declared here
#  110|   device2_(gs_ppm_device)
#  111|   device2_(gs_ppmraw_device)
#  112|-> device2_(gs_pppm_device)
#  113|   device2_(gs_ps2write_device)
#  114|   device2_(gs_pdfwrite_device)

Error: COMPILER_WARNING (CWE-704): [#def606]
ghostscript-10.05.1/soobj/gconfig.h:113:1: warning[-Wlto-type-mismatch]: type of ‘gs_ps2write_device’ does not match original declaration
#  113 | device2_(gs_ps2write_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
#   29 | const gx_device_pdf PDF_DEVICE_IDENT =
#      |                     ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_ps2write_device’ was previously declared here
#  111|   device2_(gs_ppmraw_device)
#  112|   device2_(gs_pppm_device)
#  113|-> device2_(gs_ps2write_device)
#  114|   device2_(gs_pdfwrite_device)
#  115|   #endif

Error: COMPILER_WARNING (CWE-704): [#def607]
ghostscript-10.05.1/soobj/gconfig.h:114:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfwrite_device’ does not match original declaration
#  114 | device2_(gs_pdfwrite_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
#   29 | const gx_device_pdf PDF_DEVICE_IDENT =
#      |                     ^
ghostscript-10.05.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_pdfwrite_device’ was previously declared here
#  112|   device2_(gs_pppm_device)
#  113|   device2_(gs_ps2write_device)
#  114|-> device2_(gs_pdfwrite_device)
#  115|   #endif
#  116|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def608]
ghostscript-10.05.1/soobj/gconfig.h:117:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyk_device’ does not match original declaration
#  117 | device_(gs_psdcmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:552:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  552 | const psd_device gs_psdcmyk_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:552:18: note: ‘gs_psdcmyk_device’ was previously declared here
#  115|   #endif
#  116|   #ifdef device_
#  117|-> device_(gs_psdcmyk_device)
#  118|   device_(gs_psdcmyk16_device)
#  119|   device_(gs_psdcmykog_device)

Error: COMPILER_WARNING (CWE-704): [#def609]
ghostscript-10.05.1/soobj/gconfig.h:118:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyk16_device’ does not match original declaration
#  118 | device_(gs_psdcmyk16_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:603:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  603 | const psd_device gs_psdcmyk16_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:603:18: note: ‘gs_psdcmyk16_device’ was previously declared here
#  116|   #ifdef device_
#  117|   device_(gs_psdcmyk_device)
#  118|-> device_(gs_psdcmyk16_device)
#  119|   device_(gs_psdcmykog_device)
#  120|   device_(gs_psdcmyktags_device)

Error: COMPILER_WARNING (CWE-704): [#def610]
ghostscript-10.05.1/soobj/gconfig.h:119:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmykog_device’ does not match original declaration
#  119 | device_(gs_psdcmykog_device)
#      | ^
ghostscript-10.05.1/devices/gdevcmykog.c:772:24: note: type ‘const struct gx_device_cmykog’ should match type ‘struct gx_device’
#  772 | const gx_device_cmykog gs_psdcmykog_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcmykog.c:772:24: note: ‘gs_psdcmykog_device’ was previously declared here
#  117|   device_(gs_psdcmyk_device)
#  118|   device_(gs_psdcmyk16_device)
#  119|-> device_(gs_psdcmykog_device)
#  120|   device_(gs_psdcmyktags_device)
#  121|   device_(gs_psdcmyktags16_device)

Error: COMPILER_WARNING (CWE-704): [#def611]
ghostscript-10.05.1/soobj/gconfig.h:120:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyktags_device’ does not match original declaration
#  120 | device_(gs_psdcmyktags_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:577:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  577 | const psd_device gs_psdcmyktags_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:577:18: note: ‘gs_psdcmyktags_device’ was previously declared here
#  118|   device_(gs_psdcmyk16_device)
#  119|   device_(gs_psdcmykog_device)
#  120|-> device_(gs_psdcmyktags_device)
#  121|   device_(gs_psdcmyktags16_device)
#  122|   device_(gs_psdrgb_device)

Error: COMPILER_WARNING (CWE-704): [#def612]
ghostscript-10.05.1/soobj/gconfig.h:121:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyktags16_device’ does not match original declaration
#  121 | device_(gs_psdcmyktags16_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:628:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  628 | const psd_device gs_psdcmyktags16_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:628:18: note: ‘gs_psdcmyktags16_device’ was previously declared here
#  119|   device_(gs_psdcmykog_device)
#  120|   device_(gs_psdcmyktags_device)
#  121|-> device_(gs_psdcmyktags16_device)
#  122|   device_(gs_psdrgb_device)
#  123|   device_(gs_psdrgb16_device)

Error: COMPILER_WARNING (CWE-704): [#def613]
ghostscript-10.05.1/soobj/gconfig.h:122:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgb_device’ does not match original declaration
#  122 | device_(gs_psdrgb_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:450:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  450 | const psd_device gs_psdrgb_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:450:18: note: ‘gs_psdrgb_device’ was previously declared here
#  120|   device_(gs_psdcmyktags_device)
#  121|   device_(gs_psdcmyktags16_device)
#  122|-> device_(gs_psdrgb_device)
#  123|   device_(gs_psdrgb16_device)
#  124|   device_(gs_psdrgbtags_device)

Error: COMPILER_WARNING (CWE-704): [#def614]
ghostscript-10.05.1/soobj/gconfig.h:123:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgb16_device’ does not match original declaration
#  123 | device_(gs_psdrgb16_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:474:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  474 | const psd_device gs_psdrgb16_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:474:18: note: ‘gs_psdrgb16_device’ was previously declared here
#  121|   device_(gs_psdcmyktags16_device)
#  122|   device_(gs_psdrgb_device)
#  123|-> device_(gs_psdrgb16_device)
#  124|   device_(gs_psdrgbtags_device)
#  125|   device_(gs_spotcmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def615]
ghostscript-10.05.1/soobj/gconfig.h:124:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgbtags_device’ does not match original declaration
#  124 | device_(gs_psdrgbtags_device)
#      | ^
ghostscript-10.05.1/devices/gdevpsd.c:501:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
#  501 | const psd_device gs_psdrgbtags_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevpsd.c:501:18: note: ‘gs_psdrgbtags_device’ was previously declared here
#  122|   device_(gs_psdrgb_device)
#  123|   device_(gs_psdrgb16_device)
#  124|-> device_(gs_psdrgbtags_device)
#  125|   device_(gs_spotcmyk_device)
#  126|   #endif

Error: COMPILER_WARNING (CWE-704): [#def616]
ghostscript-10.05.1/soobj/gconfig.h:125:1: warning[-Wlto-type-mismatch]: type of ‘gs_spotcmyk_device’ does not match original declaration
#  125 | device_(gs_spotcmyk_device)
#      | ^
ghostscript-10.05.1/base/gdevdevn.c:1127:26: note: type ‘const struct gx_devn_prn_device’ should match type ‘struct gx_device’
# 1127 | const gx_devn_prn_device gs_spotcmyk_device =
#      |                          ^
ghostscript-10.05.1/base/gdevdevn.c:1127:26: note: ‘gs_spotcmyk_device’ was previously declared here
#  123|   device_(gs_psdrgb16_device)
#  124|   device_(gs_psdrgbtags_device)
#  125|-> device_(gs_spotcmyk_device)
#  126|   #endif
#  127|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def617]
ghostscript-10.05.1/soobj/gconfig.h:128:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff12nc_device’ does not match original declaration
#  128 | device2_(gs_tiff12nc_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfnx.c:66:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#   66 | const gx_device_tiff gs_tiff12nc_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtfnx.c:66:22: note: ‘gs_tiff12nc_device’ was previously declared here
#  126|   #endif
#  127|   #ifdef device2_
#  128|-> device2_(gs_tiff12nc_device)
#  129|   device2_(gs_tiff24nc_device)
#  130|   device2_(gs_tiff32nc_device)

Error: COMPILER_WARNING (CWE-704): [#def618]
ghostscript-10.05.1/soobj/gconfig.h:129:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff24nc_device’ does not match original declaration
#  129 | device2_(gs_tiff24nc_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfnx.c:82:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#   82 | const gx_device_tiff gs_tiff24nc_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtfnx.c:82:22: note: ‘gs_tiff24nc_device’ was previously declared here
#  127|   #ifdef device2_
#  128|   device2_(gs_tiff12nc_device)
#  129|-> device2_(gs_tiff24nc_device)
#  130|   device2_(gs_tiff32nc_device)
#  131|   device2_(gs_tiff48nc_device)

Error: COMPILER_WARNING (CWE-704): [#def619]
ghostscript-10.05.1/soobj/gconfig.h:130:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff32nc_device’ does not match original declaration
#  130 | device2_(gs_tiff32nc_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:563:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  563 | const gx_device_tiff gs_tiff32nc_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:563:22: note: ‘gs_tiff32nc_device’ was previously declared here
#  128|   device2_(gs_tiff12nc_device)
#  129|   device2_(gs_tiff24nc_device)
#  130|-> device2_(gs_tiff32nc_device)
#  131|   device2_(gs_tiff48nc_device)
#  132|   device2_(gs_tiff64nc_device)

Error: COMPILER_WARNING (CWE-704): [#def620]
ghostscript-10.05.1/soobj/gconfig.h:131:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff48nc_device’ does not match original declaration
#  131 | device2_(gs_tiff48nc_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfnx.c:98:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#   98 | const gx_device_tiff gs_tiff48nc_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtfnx.c:98:22: note: ‘gs_tiff48nc_device’ was previously declared here
#  129|   device2_(gs_tiff24nc_device)
#  130|   device2_(gs_tiff32nc_device)
#  131|-> device2_(gs_tiff48nc_device)
#  132|   device2_(gs_tiff64nc_device)
#  133|   device2_(gs_tiffcrle_device)

Error: COMPILER_WARNING (CWE-704): [#def621]
ghostscript-10.05.1/soobj/gconfig.h:132:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff64nc_device’ does not match original declaration
#  132 | device2_(gs_tiff64nc_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:593:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  593 | const gx_device_tiff gs_tiff64nc_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:593:22: note: ‘gs_tiff64nc_device’ was previously declared here
#  130|   device2_(gs_tiff32nc_device)
#  131|   device2_(gs_tiff48nc_device)
#  132|-> device2_(gs_tiff64nc_device)
#  133|   device2_(gs_tiffcrle_device)
#  134|   device2_(gs_tiffg3_device)

Error: COMPILER_WARNING (CWE-704): [#def622]
ghostscript-10.05.1/soobj/gconfig.h:133:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffcrle_device’ does not match original declaration
#  133 | device2_(gs_tiffcrle_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:85:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#   85 | const gx_device_tfax gs_tiffcrle_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:85:22: note: ‘gs_tiffcrle_device’ was previously declared here
#  131|   device2_(gs_tiff48nc_device)
#  132|   device2_(gs_tiff64nc_device)
#  133|-> device2_(gs_tiffcrle_device)
#  134|   device2_(gs_tiffg3_device)
#  135|   device2_(gs_tiffg32d_device)

Error: COMPILER_WARNING (CWE-704): [#def623]
ghostscript-10.05.1/soobj/gconfig.h:134:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg3_device’ does not match original declaration
#  134 | device2_(gs_tiffg3_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:88:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#   88 | const gx_device_tfax gs_tiffg3_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:88:22: note: ‘gs_tiffg3_device’ was previously declared here
#  132|   device2_(gs_tiff64nc_device)
#  133|   device2_(gs_tiffcrle_device)
#  134|-> device2_(gs_tiffg3_device)
#  135|   device2_(gs_tiffg32d_device)
#  136|   device2_(gs_tiffg4_device)

Error: COMPILER_WARNING (CWE-704): [#def624]
ghostscript-10.05.1/soobj/gconfig.h:135:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg32d_device’ does not match original declaration
#  135 | device2_(gs_tiffg32d_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:91:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#   91 | const gx_device_tfax gs_tiffg32d_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:91:22: note: ‘gs_tiffg32d_device’ was previously declared here
#  133|   device2_(gs_tiffcrle_device)
#  134|   device2_(gs_tiffg3_device)
#  135|-> device2_(gs_tiffg32d_device)
#  136|   device2_(gs_tiffg4_device)
#  137|   device2_(gs_tiffgray_device)

Error: COMPILER_WARNING (CWE-704): [#def625]
ghostscript-10.05.1/soobj/gconfig.h:136:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg4_device’ does not match original declaration
#  136 | device2_(gs_tiffg4_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:94:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#   94 | const gx_device_tfax gs_tiffg4_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:94:22: note: ‘gs_tiffg4_device’ was previously declared here
#  134|   device2_(gs_tiffg3_device)
#  135|   device2_(gs_tiffg32d_device)
#  136|-> device2_(gs_tiffg4_device)
#  137|   device2_(gs_tiffgray_device)
#  138|   device2_(gs_tifflzw_device)

Error: COMPILER_WARNING (CWE-704): [#def626]
ghostscript-10.05.1/soobj/gconfig.h:137:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffgray_device’ does not match original declaration
#  137 | device2_(gs_tiffgray_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:88:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#   88 | const gx_device_tiff gs_tiffgray_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:88:22: note: ‘gs_tiffgray_device’ was previously declared here
#  135|   device2_(gs_tiffg32d_device)
#  136|   device2_(gs_tiffg4_device)
#  137|-> device2_(gs_tiffgray_device)
#  138|   device2_(gs_tifflzw_device)
#  139|   device2_(gs_tiffpack_device)

Error: COMPILER_WARNING (CWE-704): [#def627]
ghostscript-10.05.1/soobj/gconfig.h:138:1: warning[-Wlto-type-mismatch]: type of ‘gs_tifflzw_device’ does not match original declaration
#  138 | device2_(gs_tifflzw_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:272:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#  272 | const gx_device_tfax gs_tifflzw_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:272:22: note: ‘gs_tifflzw_device’ was previously declared here
#  136|   device2_(gs_tiffg4_device)
#  137|   device2_(gs_tiffgray_device)
#  138|-> device2_(gs_tifflzw_device)
#  139|   device2_(gs_tiffpack_device)
#  140|   device2_(gs_tiffscaled_device)

Error: COMPILER_WARNING (CWE-704): [#def628]
ghostscript-10.05.1/soobj/gconfig.h:139:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffpack_device’ does not match original declaration
#  139 | device2_(gs_tiffpack_device)
#      | ^
ghostscript-10.05.1/devices/gdevtfax.c:288:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
#  288 | const gx_device_tfax gs_tiffpack_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtfax.c:288:22: note: ‘gs_tiffpack_device’ was previously declared here
#  137|   device2_(gs_tiffgray_device)
#  138|   device2_(gs_tifflzw_device)
#  139|-> device2_(gs_tiffpack_device)
#  140|   device2_(gs_tiffscaled_device)
#  141|   device2_(gs_tiffscaled24_device)

Error: COMPILER_WARNING (CWE-704): [#def629]
ghostscript-10.05.1/soobj/gconfig.h:140:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled_device’ does not match original declaration
#  140 | device2_(gs_tiffscaled_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:133:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  133 | const gx_device_tiff gs_tiffscaled_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:133:22: note: ‘gs_tiffscaled_device’ was previously declared here
#  138|   device2_(gs_tifflzw_device)
#  139|   device2_(gs_tiffpack_device)
#  140|-> device2_(gs_tiffscaled_device)
#  141|   device2_(gs_tiffscaled24_device)
#  142|   device2_(gs_tiffscaled32_device)

Error: COMPILER_WARNING (CWE-704): [#def630]
ghostscript-10.05.1/soobj/gconfig.h:141:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled24_device’ does not match original declaration
#  141 | device2_(gs_tiffscaled24_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:213:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  213 | const gx_device_tiff gs_tiffscaled24_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:213:22: note: ‘gs_tiffscaled24_device’ was previously declared here
#  139|   device2_(gs_tiffpack_device)
#  140|   device2_(gs_tiffscaled_device)
#  141|-> device2_(gs_tiffscaled24_device)
#  142|   device2_(gs_tiffscaled32_device)
#  143|   device2_(gs_tiffscaled4_device)

Error: COMPILER_WARNING (CWE-704): [#def631]
ghostscript-10.05.1/soobj/gconfig.h:142:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled32_device’ does not match original declaration
#  142 | device2_(gs_tiffscaled32_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:253:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  253 | const gx_device_tiff gs_tiffscaled32_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:253:22: note: ‘gs_tiffscaled32_device’ was previously declared here
#  140|   device2_(gs_tiffscaled_device)
#  141|   device2_(gs_tiffscaled24_device)
#  142|-> device2_(gs_tiffscaled32_device)
#  143|   device2_(gs_tiffscaled4_device)
#  144|   device2_(gs_tiffscaled8_device)

Error: COMPILER_WARNING (CWE-704): [#def632]
ghostscript-10.05.1/soobj/gconfig.h:143:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled4_device’ does not match original declaration
#  143 | device2_(gs_tiffscaled4_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:290:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  290 | const gx_device_tiff gs_tiffscaled4_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:290:22: note: ‘gs_tiffscaled4_device’ was previously declared here
#  141|   device2_(gs_tiffscaled24_device)
#  142|   device2_(gs_tiffscaled32_device)
#  143|-> device2_(gs_tiffscaled4_device)
#  144|   device2_(gs_tiffscaled8_device)
#  145|   device2_(gs_tiffsep_device)

Error: COMPILER_WARNING (CWE-704): [#def633]
ghostscript-10.05.1/soobj/gconfig.h:144:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled8_device’ does not match original declaration
#  144 | device2_(gs_tiffscaled8_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:173:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
#  173 | const gx_device_tiff gs_tiffscaled8_device = {
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:173:22: note: ‘gs_tiffscaled8_device’ was previously declared here
#  142|   device2_(gs_tiffscaled32_device)
#  143|   device2_(gs_tiffscaled4_device)
#  144|-> device2_(gs_tiffscaled8_device)
#  145|   device2_(gs_tiffsep_device)
#  146|   device2_(gs_tiffsep1_device)

Error: COMPILER_WARNING (CWE-704): [#def634]
ghostscript-10.05.1/soobj/gconfig.h:145:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffsep_device’ does not match original declaration
#  145 | device2_(gs_tiffsep_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:803:22: note: type ‘const struct tiffsep_device’ should match type ‘const struct gx_device’
#  803 | const tiffsep_device gs_tiffsep_device =
#      |                      ^
ghostscript-10.05.1/devices/gdevtsep.c:803:22: note: ‘gs_tiffsep_device’ was previously declared here
#  143|   device2_(gs_tiffscaled4_device)
#  144|   device2_(gs_tiffscaled8_device)
#  145|-> device2_(gs_tiffsep_device)
#  146|   device2_(gs_tiffsep1_device)
#  147|   device2_(gs_txtwrite_device)

Error: COMPILER_WARNING (CWE-704): [#def635]
ghostscript-10.05.1/soobj/gconfig.h:146:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffsep1_device’ does not match original declaration
#  146 | device2_(gs_tiffsep1_device)
#      | ^
ghostscript-10.05.1/devices/gdevtsep.c:820:23: note: type ‘const struct tiffsep1_device’ should match type ‘const struct gx_device’
#  820 | const tiffsep1_device gs_tiffsep1_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevtsep.c:820:23: note: ‘gs_tiffsep1_device’ was previously declared here
#  144|   device2_(gs_tiffscaled8_device)
#  145|   device2_(gs_tiffsep_device)
#  146|-> device2_(gs_tiffsep1_device)
#  147|   device2_(gs_txtwrite_device)
#  148|   device2_(gs_urfcmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def636]
ghostscript-10.05.1/soobj/gconfig.h:147:1: warning[-Wlto-type-mismatch]: type of ‘gs_txtwrite_device’ does not match original declaration
#  147 | device2_(gs_txtwrite_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevtxtw.c:166:28: note: type ‘const struct gx_device_txtwrite_t’ should match type ‘const struct gx_device’
#  166 | const gx_device_txtwrite_t gs_txtwrite_device =
#      |                            ^
ghostscript-10.05.1/devices/vector/gdevtxtw.c:166:28: note: ‘gs_txtwrite_device’ was previously declared here
#  145|   device2_(gs_tiffsep_device)
#  146|   device2_(gs_tiffsep1_device)
#  147|-> device2_(gs_txtwrite_device)
#  148|   device2_(gs_urfcmyk_device)
#  149|   device2_(gs_urfgray_device)

Error: COMPILER_WARNING (CWE-704): [#def637]
ghostscript-10.05.1/soobj/gconfig.h:148:1: warning[-Wlto-type-mismatch]: type of ‘gs_urfcmyk_device’ does not match original declaration
#  148 | device2_(gs_urfcmyk_device)
#      | ^
ghostscript-10.05.1/devices/gdevurf.c:287:21: note: type ‘const struct gx_device_urf’ should match type ‘const struct gx_device’
#  287 | const gx_device_urf gs_urfcmyk_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevurf.c:287:21: note: ‘gs_urfcmyk_device’ was previously declared here
#  146|   device2_(gs_tiffsep1_device)
#  147|   device2_(gs_txtwrite_device)
#  148|-> device2_(gs_urfcmyk_device)
#  149|   device2_(gs_urfgray_device)
#  150|   device2_(gs_urfrgb_device)

Error: COMPILER_WARNING (CWE-704): [#def638]
ghostscript-10.05.1/soobj/gconfig.h:149:1: warning[-Wlto-type-mismatch]: type of ‘gs_urfgray_device’ does not match original declaration
#  149 | device2_(gs_urfgray_device)
#      | ^
ghostscript-10.05.1/devices/gdevurf.c:269:21: note: type ‘const struct gx_device_urf’ should match type ‘const struct gx_device’
#  269 | const gx_device_urf gs_urfgray_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevurf.c:269:21: note: ‘gs_urfgray_device’ was previously declared here
#  147|   device2_(gs_txtwrite_device)
#  148|   device2_(gs_urfcmyk_device)
#  149|-> device2_(gs_urfgray_device)
#  150|   device2_(gs_urfrgb_device)
#  151|   #endif

Error: COMPILER_WARNING (CWE-704): [#def639]
ghostscript-10.05.1/soobj/gconfig.h:150:1: warning[-Wlto-type-mismatch]: type of ‘gs_urfrgb_device’ does not match original declaration
#  150 | device2_(gs_urfrgb_device)
#      | ^
ghostscript-10.05.1/devices/gdevurf.c:278:21: note: type ‘const struct gx_device_urf’ should match type ‘const struct gx_device’
#  278 | const gx_device_urf gs_urfrgb_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevurf.c:278:21: note: ‘gs_urfrgb_device’ was previously declared here
#  148|   device2_(gs_urfcmyk_device)
#  149|   device2_(gs_urfgray_device)
#  150|-> device2_(gs_urfrgb_device)
#  151|   #endif
#  152|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def640]
ghostscript-10.05.1/soobj/gconfig.h:153:1: warning[-Wlto-type-mismatch]: type of ‘gs_xcf_device’ does not match original declaration
#  153 | device_(gs_xcf_device)
#      | ^
ghostscript-10.05.1/devices/gdevxcf.c:164:18: note: type ‘const struct xcf_device’ should match type ‘struct gx_device’
#  164 | const xcf_device gs_xcf_device =
#      |                  ^
ghostscript-10.05.1/devices/gdevxcf.c:164:18: note: ‘gs_xcf_device’ was previously declared here
#  151|   #endif
#  152|   #ifdef device_
#  153|-> device_(gs_xcf_device)
#  154|   #endif
#  155|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def641]
ghostscript-10.05.1/soobj/gconfig.h:156:1: warning[-Wlto-type-mismatch]: type of ‘gs_xpswrite_device’ does not match original declaration
#  156 | device2_(gs_xpswrite_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevxps.c:224:21: note: type ‘const struct gx_device_xps’ should match type ‘const struct gx_device’
#  224 | const gx_device_xps gs_xpswrite_device = {
#      |                     ^
ghostscript-10.05.1/devices/vector/gdevxps.c:224:21: note: ‘gs_xpswrite_device’ was previously declared here
#  154|   #endif
#  155|   #ifdef device2_
#  156|-> device2_(gs_xpswrite_device)
#  157|   #endif
#  158|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def642]
ghostscript-10.05.1/soobj/gconfig.h:159:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc1900_device’ does not match original declaration
#  159 | device_(gs_alc1900_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:280:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  280 | gx_device_escv far_data gs_alc1900_device = escv_device_body("alc1900");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:280:25: note: ‘gs_alc1900_device’ was previously declared here
#  157|   #endif
#  158|   #ifdef device_
#  159|-> device_(gs_alc1900_device)
#  160|   device_(gs_alc2000_device)
#  161|   device_(gs_alc4000_device)

Error: COMPILER_WARNING (CWE-704): [#def643]
ghostscript-10.05.1/soobj/gconfig.h:160:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc2000_device’ does not match original declaration
#  160 | device_(gs_alc2000_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:281:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  281 | gx_device_escv far_data gs_alc2000_device = escv_device_body("alc2000");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:281:25: note: ‘gs_alc2000_device’ was previously declared here
#  158|   #ifdef device_
#  159|   device_(gs_alc1900_device)
#  160|-> device_(gs_alc2000_device)
#  161|   device_(gs_alc4000_device)
#  162|   device_(gs_alc4100_device)

Error: COMPILER_WARNING (CWE-704): [#def644]
ghostscript-10.05.1/soobj/gconfig.h:161:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc4000_device’ does not match original declaration
#  161 | device_(gs_alc4000_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:282:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  282 | gx_device_escv far_data gs_alc4000_device = escv_device_body("alc4000");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:282:25: note: ‘gs_alc4000_device’ was previously declared here
#  159|   device_(gs_alc1900_device)
#  160|   device_(gs_alc2000_device)
#  161|-> device_(gs_alc4000_device)
#  162|   device_(gs_alc4100_device)
#  163|   device_(gs_alc8500_device)

Error: COMPILER_WARNING (CWE-704): [#def645]
ghostscript-10.05.1/soobj/gconfig.h:162:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc4100_device’ does not match original declaration
#  162 | device_(gs_alc4100_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:283:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  283 | gx_device_escv far_data gs_alc4100_device = escv_device_body("alc4100");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:283:25: note: ‘gs_alc4100_device’ was previously declared here
#  160|   device_(gs_alc2000_device)
#  161|   device_(gs_alc4000_device)
#  162|-> device_(gs_alc4100_device)
#  163|   device_(gs_alc8500_device)
#  164|   device_(gs_alc8600_device)

Error: COMPILER_WARNING (CWE-704): [#def646]
ghostscript-10.05.1/soobj/gconfig.h:163:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc8500_device’ does not match original declaration
#  163 | device_(gs_alc8500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:284:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  284 | gx_device_escv far_data gs_alc8500_device = escv_device_body("alc8500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:284:25: note: ‘gs_alc8500_device’ was previously declared here
#  161|   device_(gs_alc4000_device)
#  162|   device_(gs_alc4100_device)
#  163|-> device_(gs_alc8500_device)
#  164|   device_(gs_alc8600_device)
#  165|   device_(gs_alc9100_device)

Error: COMPILER_WARNING (CWE-704): [#def647]
ghostscript-10.05.1/soobj/gconfig.h:164:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc8600_device’ does not match original declaration
#  164 | device_(gs_alc8600_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:285:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  285 | gx_device_escv far_data gs_alc8600_device = escv_device_body("alc8600");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:285:25: note: ‘gs_alc8600_device’ was previously declared here
#  162|   device_(gs_alc4100_device)
#  163|   device_(gs_alc8500_device)
#  164|-> device_(gs_alc8600_device)
#  165|   device_(gs_alc9100_device)
#  166|   device_(gs_ap3250_device)

Error: COMPILER_WARNING (CWE-704): [#def648]
ghostscript-10.05.1/soobj/gconfig.h:165:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc9100_device’ does not match original declaration
#  165 | device_(gs_alc9100_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:286:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  286 | gx_device_escv far_data gs_alc9100_device = escv_device_body("alc9100");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:286:25: note: ‘gs_alc9100_device’ was previously declared here
#  163|   device_(gs_alc8500_device)
#  164|   device_(gs_alc8600_device)
#  165|-> device_(gs_alc9100_device)
#  166|   device_(gs_ap3250_device)
#  167|   device_(gs_appledmp_device)

Error: COMPILER_WARNING (CWE-704): [#def649]
ghostscript-10.05.1/soobj/gconfig.h:166:1: warning[-Wlto-type-mismatch]: type of ‘gs_ap3250_device’ does not match original declaration
#  166 | device_(gs_ap3250_device)
#      | ^
ghostscript-10.05.1/devices/gdevescp.c:99:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   99 | const gx_device_printer far_data gs_ap3250_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevescp.c:99:34: note: ‘gs_ap3250_device’ was previously declared here
#  164|   device_(gs_alc8600_device)
#  165|   device_(gs_alc9100_device)
#  166|-> device_(gs_ap3250_device)
#  167|   device_(gs_appledmp_device)
#  168|   #endif

Error: COMPILER_WARNING (CWE-704): [#def650]
ghostscript-10.05.1/soobj/gconfig.h:167:1: warning[-Wlto-type-mismatch]: type of ‘gs_appledmp_device’ does not match original declaration
#  167 | device_(gs_appledmp_device)
#      | ^
ghostscript-10.05.1/contrib/gdevadmp.c:121:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  121 | const gx_device_printer far_data gs_appledmp_device =
#      |                                  ^
ghostscript-10.05.1/contrib/gdevadmp.c:121:34: note: ‘gs_appledmp_device’ was previously declared here
#  165|   device_(gs_alc9100_device)
#  166|   device_(gs_ap3250_device)
#  167|-> device_(gs_appledmp_device)
#  168|   #endif
#  169|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def651]
ghostscript-10.05.1/soobj/gconfig.h:170:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx23_device’ does not match original declaration
#  170 | device2_(gs_atx23_device)
#      | ^
ghostscript-10.05.1/devices/gdevatx.c:50:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   50 | const gx_device_printer gs_atx23_device = /* real width = 576 pixels */
#      |                         ^
ghostscript-10.05.1/devices/gdevatx.c:50:25: note: ‘gs_atx23_device’ was previously declared here
#  168|   #endif
#  169|   #ifdef device2_
#  170|-> device2_(gs_atx23_device)
#  171|   device2_(gs_atx24_device)
#  172|   device2_(gs_atx38_device)

Error: COMPILER_WARNING (CWE-704): [#def652]
ghostscript-10.05.1/soobj/gconfig.h:171:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx24_device’ does not match original declaration
#  171 | device2_(gs_atx24_device)
#      | ^
ghostscript-10.05.1/devices/gdevatx.c:54:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   54 | const gx_device_printer gs_atx24_device = /* real width = 832 pixels */
#      |                         ^
ghostscript-10.05.1/devices/gdevatx.c:54:25: note: ‘gs_atx24_device’ was previously declared here
#  169|   #ifdef device2_
#  170|   device2_(gs_atx23_device)
#  171|-> device2_(gs_atx24_device)
#  172|   device2_(gs_atx38_device)
#  173|   #endif

Error: COMPILER_WARNING (CWE-704): [#def653]
ghostscript-10.05.1/soobj/gconfig.h:172:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx38_device’ does not match original declaration
#  172 | device2_(gs_atx38_device)
#      | ^
ghostscript-10.05.1/devices/gdevatx.c:58:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   58 | const gx_device_printer gs_atx38_device = /* real width = 2400 pixels */
#      |                         ^
ghostscript-10.05.1/devices/gdevatx.c:58:25: note: ‘gs_atx38_device’ was previously declared here
#  170|   device2_(gs_atx23_device)
#  171|   device2_(gs_atx24_device)
#  172|-> device2_(gs_atx38_device)
#  173|   #endif
#  174|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def654]
ghostscript-10.05.1/soobj/gconfig.h:175:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10e_device’ does not match original declaration
#  175 | device_(gs_bj10e_device)
#      | ^
ghostscript-10.05.1/devices/gdevbj10.c:158:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  158 | const gx_device_printer far_data gs_bj10e_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevbj10.c:158:34: note: ‘gs_bj10e_device’ was previously declared here
#  173|   #endif
#  174|   #ifdef device_
#  175|-> device_(gs_bj10e_device)
#  176|   device_(gs_bj10v_device)
#  177|   device_(gs_bj10vh_device)

Error: COMPILER_WARNING (CWE-704): [#def655]
ghostscript-10.05.1/soobj/gconfig.h:176:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10v_device’ does not match original declaration
#  176 | device_(gs_bj10v_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdev10v.c:86:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   86 | gx_device_printer gs_bj10v_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdev10v.c:86:19: note: ‘gs_bj10v_device’ was previously declared here
#  174|   #ifdef device_
#  175|   device_(gs_bj10e_device)
#  176|-> device_(gs_bj10v_device)
#  177|   device_(gs_bj10vh_device)
#  178|   device_(gs_bj200_device)

Error: COMPILER_WARNING (CWE-704): [#def656]
ghostscript-10.05.1/soobj/gconfig.h:177:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10vh_device’ does not match original declaration
#  177 | device_(gs_bj10vh_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdev10v.c:95:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   95 | gx_device_printer gs_bj10vh_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdev10v.c:95:19: note: ‘gs_bj10vh_device’ was previously declared here
#  175|   device_(gs_bj10e_device)
#  176|   device_(gs_bj10v_device)
#  177|-> device_(gs_bj10vh_device)
#  178|   device_(gs_bj200_device)
#  179|   device_(gs_bjc600_device)

Error: COMPILER_WARNING (CWE-704): [#def657]
ghostscript-10.05.1/soobj/gconfig.h:178:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj200_device’ does not match original declaration
#  178 | device_(gs_bj200_device)
#      | ^
ghostscript-10.05.1/devices/gdevbj10.c:118:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  118 | const gx_device_printer far_data gs_bj200_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevbj10.c:118:34: note: ‘gs_bj200_device’ was previously declared here
#  176|   device_(gs_bj10v_device)
#  177|   device_(gs_bj10vh_device)
#  178|-> device_(gs_bj200_device)
#  179|   device_(gs_bjc600_device)
#  180|   device_(gs_bjc800_device)

Error: COMPILER_WARNING (CWE-704): [#def658]
ghostscript-10.05.1/soobj/gconfig.h:179:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc600_device’ does not match original declaration
#  179 | device_(gs_bjc600_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:660:27: note: type ‘struct gx_device_bjc600’ should match type ‘struct gx_device’
#  660 | gx_device_bjc600 far_data gs_bjc600_device =
#      |                           ^
ghostscript-10.05.1/devices/gdevcdj.c:660:27: note: ‘gs_bjc600_device’ was previously declared here
#  177|   device_(gs_bj10vh_device)
#  178|   device_(gs_bj200_device)
#  179|-> device_(gs_bjc600_device)
#  180|   device_(gs_bjc800_device)
#  181|   device_(gs_bjc880j_device)

Error: COMPILER_WARNING (CWE-704): [#def659]
ghostscript-10.05.1/soobj/gconfig.h:180:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc800_device’ does not match original declaration
#  180 | device_(gs_bjc800_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:679:27: note: type ‘struct gx_device_bjc800’ should match type ‘struct gx_device’
#  679 | gx_device_bjc800 far_data gs_bjc800_device =
#      |                           ^
ghostscript-10.05.1/devices/gdevcdj.c:679:27: note: ‘gs_bjc800_device’ was previously declared here
#  178|   device_(gs_bj200_device)
#  179|   device_(gs_bjc600_device)
#  180|-> device_(gs_bjc800_device)
#  181|   device_(gs_bjc880j_device)
#  182|   device_(gs_bjccmyk_device)

Error: COMPILER_WARNING (CWE-704): [#def660]
ghostscript-10.05.1/soobj/gconfig.h:181:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc880j_device’ does not match original declaration
#  181 | device_(gs_bjc880j_device)
#      | ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:170:26: note: type ‘struct gx_device_lips4’ should match type ‘struct gx_device’
#  170 | gx_device_lips4 far_data gs_bjc880j_device =
#      |                          ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:170:26: note: ‘gs_bjc880j_device’ was previously declared here
#  179|   device_(gs_bjc600_device)
#  180|   device_(gs_bjc800_device)
#  181|-> device_(gs_bjc880j_device)
#  182|   device_(gs_bjccmyk_device)
#  183|   device_(gs_bjccolor_device)

Error: COMPILER_WARNING (CWE-704): [#def661]
ghostscript-10.05.1/soobj/gconfig.h:182:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjccmyk_device’ does not match original declaration
#  182 | device_(gs_bjccmyk_device)
#      | ^
ghostscript-10.05.1/contrib/gdevbjc_.c:294:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
#  294 | const gx_device_bjc_printer gs_bjccmyk_device =
#      |                             ^
ghostscript-10.05.1/contrib/gdevbjc_.c:294:29: note: ‘gs_bjccmyk_device’ was previously declared here
#  180|   device_(gs_bjc800_device)
#  181|   device_(gs_bjc880j_device)
#  182|-> device_(gs_bjccmyk_device)
#  183|   device_(gs_bjccolor_device)
#  184|   device_(gs_bjcgray_device)

Error: COMPILER_WARNING (CWE-704): [#def662]
ghostscript-10.05.1/soobj/gconfig.h:183:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjccolor_device’ does not match original declaration
#  183 | device_(gs_bjccolor_device)
#      | ^
ghostscript-10.05.1/contrib/gdevbjc_.c:327:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
#  327 | const gx_device_bjc_printer gs_bjccolor_device =
#      |                             ^
ghostscript-10.05.1/contrib/gdevbjc_.c:327:29: note: ‘gs_bjccolor_device’ was previously declared here
#  181|   device_(gs_bjc880j_device)
#  182|   device_(gs_bjccmyk_device)
#  183|-> device_(gs_bjccolor_device)
#  184|   device_(gs_bjcgray_device)
#  185|   device_(gs_bjcmono_device)

Error: COMPILER_WARNING (CWE-704): [#def663]
ghostscript-10.05.1/soobj/gconfig.h:184:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjcgray_device’ does not match original declaration
#  184 | device_(gs_bjcgray_device)
#      | ^
ghostscript-10.05.1/contrib/gdevbjc_.c:261:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
#  261 | const gx_device_bjc_printer gs_bjcgray_device =
#      |                             ^
ghostscript-10.05.1/contrib/gdevbjc_.c:261:29: note: ‘gs_bjcgray_device’ was previously declared here
#  182|   device_(gs_bjccmyk_device)
#  183|   device_(gs_bjccolor_device)
#  184|-> device_(gs_bjcgray_device)
#  185|   device_(gs_bjcmono_device)
#  186|   device_(gs_cdeskjet_device)

Error: COMPILER_WARNING (CWE-704): [#def664]
ghostscript-10.05.1/soobj/gconfig.h:185:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjcmono_device’ does not match original declaration
#  185 | device_(gs_bjcmono_device)
#      | ^
ghostscript-10.05.1/contrib/gdevbjc_.c:228:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
#  228 | const gx_device_bjc_printer gs_bjcmono_device =
#      |                             ^
ghostscript-10.05.1/contrib/gdevbjc_.c:228:29: note: ‘gs_bjcmono_device’ was previously declared here
#  183|   device_(gs_bjccolor_device)
#  184|   device_(gs_bjcgray_device)
#  185|-> device_(gs_bjcmono_device)
#  186|   device_(gs_cdeskjet_device)
#  187|   #endif

Error: COMPILER_WARNING (CWE-704): [#def665]
ghostscript-10.05.1/soobj/gconfig.h:186:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdeskjet_device’ does not match original declaration
#  186 | device_(gs_cdeskjet_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:590:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  590 | gx_device_cdj far_data gs_cdeskjet_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:590:24: note: ‘gs_cdeskjet_device’ was previously declared here
#  184|   device_(gs_bjcgray_device)
#  185|   device_(gs_bjcmono_device)
#  186|-> device_(gs_cdeskjet_device)
#  187|   #endif
#  188|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def666]
ghostscript-10.05.1/soobj/gconfig.h:189:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj1600_device’ does not match original declaration
#  189 | device2_(gs_cdj1600_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:864:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  864 | const gx_device_cdj850 gs_cdj1600_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:864:24: note: ‘gs_cdj1600_device’ was previously declared here
#  187|   #endif
#  188|   #ifdef device2_
#  189|-> device2_(gs_cdj1600_device)
#  190|   #endif
#  191|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def667]
ghostscript-10.05.1/soobj/gconfig.h:192:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj500_device’ does not match original declaration
#  192 | device_(gs_cdj500_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:598:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  598 | gx_device_cdj far_data gs_cdj500_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:598:24: note: ‘gs_cdj500_device’ was previously declared here
#  190|   #endif
#  191|   #ifdef device_
#  192|-> device_(gs_cdj500_device)
#  193|   device_(gs_cdj550_device)
#  194|   #endif

Error: COMPILER_WARNING (CWE-704): [#def668]
ghostscript-10.05.1/soobj/gconfig.h:193:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj550_device’ does not match original declaration
#  193 | device_(gs_cdj550_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:602:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  602 | gx_device_cdj far_data gs_cdj550_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:602:24: note: ‘gs_cdj550_device’ was previously declared here
#  191|   #ifdef device_
#  192|   device_(gs_cdj500_device)
#  193|-> device_(gs_cdj550_device)
#  194|   #endif
#  195|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def669]
ghostscript-10.05.1/soobj/gconfig.h:196:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj670_device’ does not match original declaration
#  196 | device2_(gs_cdj670_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:836:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  836 | const gx_device_cdj850 gs_cdj670_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:836:24: note: ‘gs_cdj670_device’ was previously declared here
#  194|   #endif
#  195|   #ifdef device2_
#  196|-> device2_(gs_cdj670_device)
#  197|   device2_(gs_cdj850_device)
#  198|   device2_(gs_cdj880_device)

Error: COMPILER_WARNING (CWE-704): [#def670]
ghostscript-10.05.1/soobj/gconfig.h:197:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj850_device’ does not match original declaration
#  197 | device2_(gs_cdj850_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:843:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  843 | const gx_device_cdj850 gs_cdj850_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:843:24: note: ‘gs_cdj850_device’ was previously declared here
#  195|   #ifdef device2_
#  196|   device2_(gs_cdj670_device)
#  197|-> device2_(gs_cdj850_device)
#  198|   device2_(gs_cdj880_device)
#  199|   device2_(gs_cdj890_device)

Error: COMPILER_WARNING (CWE-704): [#def671]
ghostscript-10.05.1/soobj/gconfig.h:198:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj880_device’ does not match original declaration
#  198 | device2_(gs_cdj880_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:850:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  850 | const gx_device_cdj850 gs_cdj880_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:850:24: note: ‘gs_cdj880_device’ was previously declared here
#  196|   device2_(gs_cdj670_device)
#  197|   device2_(gs_cdj850_device)
#  198|-> device2_(gs_cdj880_device)
#  199|   device2_(gs_cdj890_device)
#  200|   device2_(gs_cdj970_device)

Error: COMPILER_WARNING (CWE-704): [#def672]
ghostscript-10.05.1/soobj/gconfig.h:199:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj890_device’ does not match original declaration
#  199 | device2_(gs_cdj890_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:857:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  857 | const gx_device_cdj850 gs_cdj890_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:857:24: note: ‘gs_cdj890_device’ was previously declared here
#  197|   device2_(gs_cdj850_device)
#  198|   device2_(gs_cdj880_device)
#  199|-> device2_(gs_cdj890_device)
#  200|   device2_(gs_cdj970_device)
#  201|   #endif

Error: COMPILER_WARNING (CWE-704): [#def673]
ghostscript-10.05.1/soobj/gconfig.h:200:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj970_device’ does not match original declaration
#  200 | device2_(gs_cdj970_device)
#      | ^
ghostscript-10.05.1/contrib/gdevdj9.c:561:24: note: type ‘const struct gx_device_cdj970’ should match type ‘const struct gx_device’
#  561 | const gx_device_cdj970 gs_cdj970_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevdj9.c:561:24: note: ‘gs_cdj970_device’ was previously declared here
#  198|   device2_(gs_cdj880_device)
#  199|   device2_(gs_cdj890_device)
#  200|-> device2_(gs_cdj970_device)
#  201|   #endif
#  202|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def674]
ghostscript-10.05.1/soobj/gconfig.h:203:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdjcolor_device’ does not match original declaration
#  203 | device_(gs_cdjcolor_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:594:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  594 | gx_device_cdj far_data gs_cdjcolor_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:594:24: note: ‘gs_cdjcolor_device’ was previously declared here
#  201|   #endif
#  202|   #ifdef device_
#  203|-> device_(gs_cdjcolor_device)
#  204|   device_(gs_cdjmono_device)
#  205|   #endif

Error: COMPILER_WARNING (CWE-704): [#def675]
ghostscript-10.05.1/soobj/gconfig.h:204:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdjmono_device’ does not match original declaration
#  204 | device_(gs_cdjmono_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:586:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  586 | gx_device_cdj far_data gs_cdjmono_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:586:24: note: ‘gs_cdjmono_device’ was previously declared here
#  202|   #ifdef device_
#  203|   device_(gs_cdjcolor_device)
#  204|-> device_(gs_cdjmono_device)
#  205|   #endif
#  206|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def676]
ghostscript-10.05.1/soobj/gconfig.h:207:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdnj500_device’ does not match original declaration
#  207 | device2_(gs_cdnj500_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:880:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  880 | const gx_device_cdj850 gs_cdnj500_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:880:24: note: ‘gs_cdnj500_device’ was previously declared here
#  205|   #endif
#  206|   #ifdef device2_
#  207|-> device2_(gs_cdnj500_device)
#  208|   device2_(gs_chp2200_device)
#  209|   #endif

Error: COMPILER_WARNING (CWE-704): [#def677]
ghostscript-10.05.1/soobj/gconfig.h:208:1: warning[-Wlto-type-mismatch]: type of ‘gs_chp2200_device’ does not match original declaration
#  208 | device2_(gs_chp2200_device)
#      | ^
ghostscript-10.05.1/contrib/gdevcd8.c:872:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
#  872 | const gx_device_cdj850 gs_chp2200_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevcd8.c:872:24: note: ‘gs_chp2200_device’ was previously declared here
#  206|   #ifdef device2_
#  207|   device2_(gs_cdnj500_device)
#  208|-> device2_(gs_chp2200_device)
#  209|   #endif
#  210|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def678]
ghostscript-10.05.1/soobj/gconfig.h:211:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5_device’ does not match original declaration
#  211 | device_(gs_cljet5_device)
#      | ^
ghostscript-10.05.1/devices/gdevclj.c:558:15: note: type ‘struct gx_device_clj’ should match type ‘struct gx_device’
#  558 | gx_device_clj gs_cljet5_device = {
#      |               ^
ghostscript-10.05.1/devices/gdevclj.c:558:15: note: ‘gs_cljet5_device’ was previously declared here
#  209|   #endif
#  210|   #ifdef device_
#  211|-> device_(gs_cljet5_device)
#  212|   device_(gs_cljet5c_device)
#  213|   device_(gs_cljet5pr_device)

Error: COMPILER_WARNING (CWE-704): [#def679]
ghostscript-10.05.1/soobj/gconfig.h:212:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5c_device’ does not match original declaration
#  212 | device_(gs_cljet5c_device)
#      | ^
ghostscript-10.05.1/devices/gdevcljc.c:93:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   93 | const gx_device_printer gs_cljet5c_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevcljc.c:93:25: note: ‘gs_cljet5c_device’ was previously declared here
#  210|   #ifdef device_
#  211|   device_(gs_cljet5_device)
#  212|-> device_(gs_cljet5c_device)
#  213|   device_(gs_cljet5pr_device)
#  214|   device_(gs_coslw2p_device)

Error: COMPILER_WARNING (CWE-704): [#def680]
ghostscript-10.05.1/soobj/gconfig.h:213:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5pr_device’ does not match original declaration
#  213 | device_(gs_cljet5pr_device)
#      | ^
ghostscript-10.05.1/devices/gdevclj.c:684:15: note: type ‘struct gx_device_clj’ should match type ‘struct gx_device’
#  684 | gx_device_clj gs_cljet5pr_device = {
#      |               ^
ghostscript-10.05.1/devices/gdevclj.c:684:15: note: ‘gs_cljet5pr_device’ was previously declared here
#  211|   device_(gs_cljet5_device)
#  212|   device_(gs_cljet5c_device)
#  213|-> device_(gs_cljet5pr_device)
#  214|   device_(gs_coslw2p_device)
#  215|   device_(gs_coslwxl_device)

Error: COMPILER_WARNING (CWE-704): [#def681]
ghostscript-10.05.1/soobj/gconfig.h:214:1: warning[-Wlto-type-mismatch]: type of ‘gs_coslw2p_device’ does not match original declaration
#  214 | device_(gs_coslw2p_device)
#      | ^
ghostscript-10.05.1/devices/gdevcslw.c:33:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   33 | const gx_device_printer gs_coslw2p_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevcslw.c:33:25: note: ‘gs_coslw2p_device’ was previously declared here
#  212|   device_(gs_cljet5c_device)
#  213|   device_(gs_cljet5pr_device)
#  214|-> device_(gs_coslw2p_device)
#  215|   device_(gs_coslwxl_device)
#  216|   device_(gs_declj250_device)

Error: COMPILER_WARNING (CWE-704): [#def682]
ghostscript-10.05.1/soobj/gconfig.h:215:1: warning[-Wlto-type-mismatch]: type of ‘gs_coslwxl_device’ does not match original declaration
#  215 | device_(gs_coslwxl_device)
#      | ^
ghostscript-10.05.1/devices/gdevcslw.c:41:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   41 | const gx_device_printer gs_coslwxl_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevcslw.c:41:25: note: ‘gs_coslwxl_device’ was previously declared here
#  213|   device_(gs_cljet5pr_device)
#  214|   device_(gs_coslw2p_device)
#  215|-> device_(gs_coslwxl_device)
#  216|   device_(gs_declj250_device)
#  217|   #endif

Error: COMPILER_WARNING (CWE-704): [#def683]
ghostscript-10.05.1/soobj/gconfig.h:216:1: warning[-Wlto-type-mismatch]: type of ‘gs_declj250_device’ does not match original declaration
#  216 | device_(gs_declj250_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:621:23: note: type ‘struct gx_device_pj’ should match type ‘struct gx_device’
#  621 | gx_device_pj far_data gs_declj250_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevcdj.c:621:23: note: ‘gs_declj250_device’ was previously declared here
#  214|   device_(gs_coslw2p_device)
#  215|   device_(gs_coslwxl_device)
#  216|-> device_(gs_declj250_device)
#  217|   #endif
#  218|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def684]
ghostscript-10.05.1/soobj/gconfig.h:219:1: warning[-Wlto-type-mismatch]: type of ‘gs_deskjet_device’ does not match original declaration
#  219 | device2_(gs_deskjet_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:157:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  157 | const gx_device_hpjet gs_deskjet_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:157:23: note: ‘gs_deskjet_device’ was previously declared here
#  217|   #endif
#  218|   #ifdef device2_
#  219|-> device2_(gs_deskjet_device)
#  220|   #endif
#  221|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def685]
ghostscript-10.05.1/soobj/gconfig.h:222:1: warning[-Wlto-type-mismatch]: type of ‘gs_dj505j_device’ does not match original declaration
#  222 | device_(gs_dj505j_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:617:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  617 | gx_device_cdj far_data gs_dj505j_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:617:24: note: ‘gs_dj505j_device’ was previously declared here
#  220|   #endif
#  221|   #ifdef device_
#  222|-> device_(gs_dj505j_device)
#  223|   #endif
#  224|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def686]
ghostscript-10.05.1/soobj/gconfig.h:225:1: warning[-Wlto-type-mismatch]: type of ‘gs_djet500_device’ does not match original declaration
#  225 | device2_(gs_djet500_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:164:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  164 | const gx_device_hpjet gs_djet500_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:164:23: note: ‘gs_djet500_device’ was previously declared here
#  223|   #endif
#  224|   #ifdef device2_
#  225|-> device2_(gs_djet500_device)
#  226|   #endif
#  227|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def687]
ghostscript-10.05.1/soobj/gconfig.h:228:1: warning[-Wlto-type-mismatch]: type of ‘gs_djet500c_device’ does not match original declaration
#  228 | device_(gs_djet500c_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjtc.c:54:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   54 | const gx_device_printer far_data gs_djet500c_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevdjtc.c:54:34: note: ‘gs_djet500c_device’ was previously declared here
#  226|   #endif
#  227|   #ifdef device_
#  228|-> device_(gs_djet500c_device)
#  229|   device_(gs_dl2100_device)
#  230|   device_(gs_dnj650c_device)

Error: COMPILER_WARNING (CWE-704): [#def688]
ghostscript-10.05.1/soobj/gconfig.h:229:1: warning[-Wlto-type-mismatch]: type of ‘gs_dl2100_device’ does not match original declaration
#  229 | device_(gs_dl2100_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:104:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  104 | gx_device_printer gs_dl2100_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:104:19: note: ‘gs_dl2100_device’ was previously declared here
#  227|   #ifdef device_
#  228|   device_(gs_djet500c_device)
#  229|-> device_(gs_dl2100_device)
#  230|   device_(gs_dnj650c_device)
#  231|   device_(gs_epl2050_device)

Error: COMPILER_WARNING (CWE-704): [#def689]
ghostscript-10.05.1/soobj/gconfig.h:230:1: warning[-Wlto-type-mismatch]: type of ‘gs_dnj650c_device’ does not match original declaration
#  230 | device_(gs_dnj650c_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:625:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  625 | gx_device_cdj far_data gs_dnj650c_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:625:24: note: ‘gs_dnj650c_device’ was previously declared here
#  228|   device_(gs_djet500c_device)
#  229|   device_(gs_dl2100_device)
#  230|-> device_(gs_dnj650c_device)
#  231|   device_(gs_epl2050_device)
#  232|   device_(gs_epl2050p_device)

Error: COMPILER_WARNING (CWE-704): [#def690]
ghostscript-10.05.1/soobj/gconfig.h:231:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2050_device’ does not match original declaration
#  231 | device_(gs_epl2050_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:245:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  245 | gx_device_escv far_data gs_epl2050_device = esmv_device_body("epl2050");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:245:25: note: ‘gs_epl2050_device’ was previously declared here
#  229|   device_(gs_dl2100_device)
#  230|   device_(gs_dnj650c_device)
#  231|-> device_(gs_epl2050_device)
#  232|   device_(gs_epl2050p_device)
#  233|   device_(gs_epl2120_device)

Error: COMPILER_WARNING (CWE-704): [#def691]
ghostscript-10.05.1/soobj/gconfig.h:232:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2050p_device’ does not match original declaration
#  232 | device_(gs_epl2050p_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:246:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  246 | gx_device_escv far_data gs_epl2050p_device= esmv_device_body("epl2050p");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:246:25: note: ‘gs_epl2050p_device’ was previously declared here
#  230|   device_(gs_dnj650c_device)
#  231|   device_(gs_epl2050_device)
#  232|-> device_(gs_epl2050p_device)
#  233|   device_(gs_epl2120_device)
#  234|   device_(gs_epl2500_device)

Error: COMPILER_WARNING (CWE-704): [#def692]
ghostscript-10.05.1/soobj/gconfig.h:233:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2120_device’ does not match original declaration
#  233 | device_(gs_epl2120_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:247:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  247 | gx_device_escv far_data gs_epl2120_device = esmv_device_body("epl2120");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:247:25: note: ‘gs_epl2120_device’ was previously declared here
#  231|   device_(gs_epl2050_device)
#  232|   device_(gs_epl2050p_device)
#  233|-> device_(gs_epl2120_device)
#  234|   device_(gs_epl2500_device)
#  235|   device_(gs_epl2750_device)

Error: COMPILER_WARNING (CWE-704): [#def693]
ghostscript-10.05.1/soobj/gconfig.h:234:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2500_device’ does not match original declaration
#  234 | device_(gs_epl2500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:248:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  248 | gx_device_escv far_data gs_epl2500_device = esmv_device_body("epl2500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:248:25: note: ‘gs_epl2500_device’ was previously declared here
#  232|   device_(gs_epl2050p_device)
#  233|   device_(gs_epl2120_device)
#  234|-> device_(gs_epl2500_device)
#  235|   device_(gs_epl2750_device)
#  236|   device_(gs_epl5800_device)

Error: COMPILER_WARNING (CWE-704): [#def694]
ghostscript-10.05.1/soobj/gconfig.h:235:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2750_device’ does not match original declaration
#  235 | device_(gs_epl2750_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:249:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  249 | gx_device_escv far_data gs_epl2750_device = esmv_device_body("epl2750");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:249:25: note: ‘gs_epl2750_device’ was previously declared here
#  233|   device_(gs_epl2120_device)
#  234|   device_(gs_epl2500_device)
#  235|-> device_(gs_epl2750_device)
#  236|   device_(gs_epl5800_device)
#  237|   device_(gs_epl5900_device)

Error: COMPILER_WARNING (CWE-704): [#def695]
ghostscript-10.05.1/soobj/gconfig.h:236:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl5800_device’ does not match original declaration
#  236 | device_(gs_epl5800_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:250:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  250 | gx_device_escv far_data gs_epl5800_device = esmv_device_body("epl5800");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:250:25: note: ‘gs_epl5800_device’ was previously declared here
#  234|   device_(gs_epl2500_device)
#  235|   device_(gs_epl2750_device)
#  236|-> device_(gs_epl5800_device)
#  237|   device_(gs_epl5900_device)
#  238|   device_(gs_epl6100_device)

Error: COMPILER_WARNING (CWE-704): [#def696]
ghostscript-10.05.1/soobj/gconfig.h:237:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl5900_device’ does not match original declaration
#  237 | device_(gs_epl5900_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:251:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  251 | gx_device_escv far_data gs_epl5900_device = esmv_device_body("epl5900");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:251:25: note: ‘gs_epl5900_device’ was previously declared here
#  235|   device_(gs_epl2750_device)
#  236|   device_(gs_epl5800_device)
#  237|-> device_(gs_epl5900_device)
#  238|   device_(gs_epl6100_device)
#  239|   device_(gs_epl6200_device)

Error: COMPILER_WARNING (CWE-704): [#def697]
ghostscript-10.05.1/soobj/gconfig.h:238:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl6100_device’ does not match original declaration
#  238 | device_(gs_epl6100_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:252:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  252 | gx_device_escv far_data gs_epl6100_device = esmv_device_body("epl6100");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:252:25: note: ‘gs_epl6100_device’ was previously declared here
#  236|   device_(gs_epl5800_device)
#  237|   device_(gs_epl5900_device)
#  238|-> device_(gs_epl6100_device)
#  239|   device_(gs_epl6200_device)
#  240|   device_(gs_eplcolor_device)

Error: COMPILER_WARNING (CWE-704): [#def698]
ghostscript-10.05.1/soobj/gconfig.h:239:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl6200_device’ does not match original declaration
#  239 | device_(gs_epl6200_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:253:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  253 | gx_device_escv far_data gs_epl6200_device = esmv_device_body("epl6200");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:253:25: note: ‘gs_epl6200_device’ was previously declared here
#  237|   device_(gs_epl5900_device)
#  238|   device_(gs_epl6100_device)
#  239|-> device_(gs_epl6200_device)
#  240|   device_(gs_eplcolor_device)
#  241|   device_(gs_eplmono_device)

Error: COMPILER_WARNING (CWE-704): [#def699]
ghostscript-10.05.1/soobj/gconfig.h:240:1: warning[-Wlto-type-mismatch]: type of ‘gs_eplcolor_device’ does not match original declaration
#  240 | device_(gs_eplcolor_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:298:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  298 | gx_device_escv far_data gs_eplcolor_device= escv_device_body(ESCPAGE_DEVICENAME_COLOR);
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:298:25: note: ‘gs_eplcolor_device’ was previously declared here
#  238|   device_(gs_epl6100_device)
#  239|   device_(gs_epl6200_device)
#  240|-> device_(gs_eplcolor_device)
#  241|   device_(gs_eplmono_device)
#  242|   device_(gs_eps9high_device)

Error: COMPILER_WARNING (CWE-704): [#def700]
ghostscript-10.05.1/soobj/gconfig.h:241:1: warning[-Wlto-type-mismatch]: type of ‘gs_eplmono_device’ does not match original declaration
#  241 | device_(gs_eplmono_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:277:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  277 | gx_device_escv far_data gs_eplmono_device = esmv_device_body(ESCPAGE_DEVICENAME_MONO);
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:277:25: note: ‘gs_eplmono_device’ was previously declared here
#  239|   device_(gs_epl6200_device)
#  240|   device_(gs_eplcolor_device)
#  241|-> device_(gs_eplmono_device)
#  242|   device_(gs_eps9high_device)
#  243|   device_(gs_eps9mid_device)

Error: COMPILER_WARNING (CWE-704): [#def701]
ghostscript-10.05.1/soobj/gconfig.h:242:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps9high_device’ does not match original declaration
#  242 | device_(gs_eps9high_device)
#      | ^
ghostscript-10.05.1/devices/gdevepsn.c:123:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  123 | const gx_device_printer far_data gs_eps9high_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevepsn.c:123:34: note: ‘gs_eps9high_device’ was previously declared here
#  240|   device_(gs_eplcolor_device)
#  241|   device_(gs_eplmono_device)
#  242|-> device_(gs_eps9high_device)
#  243|   device_(gs_eps9mid_device)
#  244|   device_(gs_epson_device)

Error: COMPILER_WARNING (CWE-704): [#def702]
ghostscript-10.05.1/soobj/gconfig.h:243:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps9mid_device’ does not match original declaration
#  243 | device_(gs_eps9mid_device)
#      | ^
ghostscript-10.05.1/devices/gdevepsn.c:113:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  113 | const gx_device_printer far_data gs_eps9mid_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevepsn.c:113:34: note: ‘gs_eps9mid_device’ was previously declared here
#  241|   device_(gs_eplmono_device)
#  242|   device_(gs_eps9high_device)
#  243|-> device_(gs_eps9mid_device)
#  244|   device_(gs_epson_device)
#  245|   device_(gs_epsonc_device)

Error: COMPILER_WARNING (CWE-704): [#def703]
ghostscript-10.05.1/soobj/gconfig.h:244:1: warning[-Wlto-type-mismatch]: type of ‘gs_epson_device’ does not match original declaration
#  244 | device_(gs_epson_device)
#      | ^
ghostscript-10.05.1/devices/gdevepsn.c:103:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  103 | const gx_device_printer far_data gs_epson_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevepsn.c:103:34: note: ‘gs_epson_device’ was previously declared here
#  242|   device_(gs_eps9high_device)
#  243|   device_(gs_eps9mid_device)
#  244|-> device_(gs_epson_device)
#  245|   device_(gs_epsonc_device)
#  246|   device_(gs_escp_device)

Error: COMPILER_WARNING (CWE-704): [#def704]
ghostscript-10.05.1/soobj/gconfig.h:245:1: warning[-Wlto-type-mismatch]: type of ‘gs_epsonc_device’ does not match original declaration
#  245 | device_(gs_epsonc_device)
#      | ^
ghostscript-10.05.1/devices/gdevepsc.c:157:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  157 | const gx_device_printer far_data gs_epsonc_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevepsc.c:157:34: note: ‘gs_epsonc_device’ was previously declared here
#  243|   device_(gs_eps9mid_device)
#  244|   device_(gs_epson_device)
#  245|-> device_(gs_epsonc_device)
#  246|   device_(gs_escp_device)
#  247|   device_(gs_escpage_device)

Error: COMPILER_WARNING (CWE-704): [#def705]
ghostscript-10.05.1/soobj/gconfig.h:246:1: warning[-Wlto-type-mismatch]: type of ‘gs_escp_device’ does not match original declaration
#  246 | device_(gs_escp_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:649:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  649 | gx_device_cdj far_data gs_escp_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:649:24: note: ‘gs_escp_device’ was previously declared here
#  244|   device_(gs_epson_device)
#  245|   device_(gs_epsonc_device)
#  246|-> device_(gs_escp_device)
#  247|   device_(gs_escpage_device)
#  248|   device_(gs_fmlbp_device)

Error: COMPILER_WARNING (CWE-704): [#def706]
ghostscript-10.05.1/soobj/gconfig.h:247:1: warning[-Wlto-type-mismatch]: type of ‘gs_escpage_device’ does not match original declaration
#  247 | device_(gs_escpage_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevespg.c:71:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
#   71 | gx_device_lprn far_data gs_escpage_device =
#      |                         ^
ghostscript-10.05.1/contrib/japanese/gdevespg.c:71:25: note: ‘gs_escpage_device’ was previously declared here
#  245|   device_(gs_epsonc_device)
#  246|   device_(gs_escp_device)
#  247|-> device_(gs_escpage_device)
#  248|   device_(gs_fmlbp_device)
#  249|   device_(gs_fmpr_device)

Error: COMPILER_WARNING (CWE-704): [#def707]
ghostscript-10.05.1/soobj/gconfig.h:248:1: warning[-Wlto-type-mismatch]: type of ‘gs_fmlbp_device’ does not match original declaration
#  248 | device_(gs_fmlbp_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevfmlbp.c:73:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   73 | gx_device_printer gs_fmlbp_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevfmlbp.c:73:19: note: ‘gs_fmlbp_device’ was previously declared here
#  246|   device_(gs_escp_device)
#  247|   device_(gs_escpage_device)
#  248|-> device_(gs_fmlbp_device)
#  249|   device_(gs_fmpr_device)
#  250|   #endif

Error: COMPILER_WARNING (CWE-704): [#def708]
ghostscript-10.05.1/soobj/gconfig.h:249:1: warning[-Wlto-type-mismatch]: type of ‘gs_fmpr_device’ does not match original declaration
#  249 | device_(gs_fmpr_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevfmpr.c:32:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   32 | gx_device_printer gs_fmpr_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevfmpr.c:32:19: note: ‘gs_fmpr_device’ was previously declared here
#  247|   device_(gs_escpage_device)
#  248|   device_(gs_fmlbp_device)
#  249|-> device_(gs_fmpr_device)
#  250|   #endif
#  251|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def709]
ghostscript-10.05.1/soobj/gconfig.h:252:1: warning[-Wlto-type-mismatch]: type of ‘gs_fs600_device’ does not match original declaration
#  252 | device2_(gs_fs600_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:171:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  171 | const gx_device_hpjet gs_fs600_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:171:23: note: ‘gs_fs600_device’ was previously declared here
#  250|   #endif
#  251|   #ifdef device2_
#  252|-> device2_(gs_fs600_device)
#  253|   #endif
#  254|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def710]
ghostscript-10.05.1/soobj/gconfig.h:255:1: warning[-Wlto-type-mismatch]: type of ‘gs_gdi_device’ does not match original declaration
#  255 | device_(gs_gdi_device)
#      | ^
ghostscript-10.05.1/contrib/gdevgdi.c:106:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  106 | gx_device_printer far_data gs_gdi_device =
#      |                            ^
ghostscript-10.05.1/contrib/gdevgdi.c:106:28: note: ‘gs_gdi_device’ was previously declared here
#  253|   #endif
#  254|   #ifdef device_
#  255|-> device_(gs_gdi_device)
#  256|   device_(gs_hl1240_device)
#  257|   device_(gs_hl1250_device)

Error: COMPILER_WARNING (CWE-704): [#def711]
ghostscript-10.05.1/soobj/gconfig.h:256:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl1240_device’ does not match original declaration
#  256 | device_(gs_hl1240_device)
#      | ^
ghostscript-10.05.1/contrib/gdevhl12.c:187:24: note: type ‘const struct gx_device_hl1250’ should match type ‘struct gx_device’
#  187 | const gx_device_hl1250 gs_hl1240_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevhl12.c:187:24: note: ‘gs_hl1240_device’ was previously declared here
#  254|   #ifdef device_
#  255|   device_(gs_gdi_device)
#  256|-> device_(gs_hl1240_device)
#  257|   device_(gs_hl1250_device)
#  258|   device_(gs_hl7x0_device)

Error: COMPILER_WARNING (CWE-704): [#def712]
ghostscript-10.05.1/soobj/gconfig.h:257:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl1250_device’ does not match original declaration
#  257 | device_(gs_hl1250_device)
#      | ^
ghostscript-10.05.1/contrib/gdevhl12.c:184:24: note: type ‘const struct gx_device_hl1250’ should match type ‘struct gx_device’
#  184 | const gx_device_hl1250 gs_hl1250_device =
#      |                        ^
ghostscript-10.05.1/contrib/gdevhl12.c:184:24: note: ‘gs_hl1250_device’ was previously declared here
#  255|   device_(gs_gdi_device)
#  256|   device_(gs_hl1240_device)
#  257|-> device_(gs_hl1250_device)
#  258|   device_(gs_hl7x0_device)
#  259|   device_(gs_hpdj1120c_device)

Error: COMPILER_WARNING (CWE-704): [#def713]
ghostscript-10.05.1/soobj/gconfig.h:258:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl7x0_device’ does not match original declaration
#  258 | device_(gs_hl7x0_device)
#      | ^
ghostscript-10.05.1/devices/gdevhl7x.c:260:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  260 | const gx_device_printer far_data gs_hl7x0_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevhl7x.c:260:34: note: ‘gs_hl7x0_device’ was previously declared here
#  256|   device_(gs_hl1240_device)
#  257|   device_(gs_hl1250_device)
#  258|-> device_(gs_hl7x0_device)
#  259|   device_(gs_hpdj1120c_device)
#  260|   device_(gs_hpdj310_device)

Error: COMPILER_WARNING (CWE-704): [#def714]
ghostscript-10.05.1/soobj/gconfig.h:259:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj1120c_device’ does not match original declaration
#  259 | device_(gs_hpdj1120c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:189:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  189 | pcl3_device_instance(hpdj1120c, HPDJ1120C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:189:1: note: ‘gs_hpdj1120c_device’ was previously declared here
#  257|   device_(gs_hl1250_device)
#  258|   device_(gs_hl7x0_device)
#  259|-> device_(gs_hpdj1120c_device)
#  260|   device_(gs_hpdj310_device)
#  261|   device_(gs_hpdj320_device)

Error: COMPILER_WARNING (CWE-704): [#def715]
ghostscript-10.05.1/soobj/gconfig.h:260:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj310_device’ does not match original declaration
#  260 | device_(gs_hpdj310_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:169:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  169 | pcl3_device_instance(hpdj310,   HPDJ310);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:169:1: note: ‘gs_hpdj310_device’ was previously declared here
#  258|   device_(gs_hl7x0_device)
#  259|   device_(gs_hpdj1120c_device)
#  260|-> device_(gs_hpdj310_device)
#  261|   device_(gs_hpdj320_device)
#  262|   device_(gs_hpdj340_device)

Error: COMPILER_WARNING (CWE-704): [#def716]
ghostscript-10.05.1/soobj/gconfig.h:261:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj320_device’ does not match original declaration
#  261 | device_(gs_hpdj320_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:170:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  170 | pcl3_device_instance(hpdj320,   HPDJ320);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:170:1: note: ‘gs_hpdj320_device’ was previously declared here
#  259|   device_(gs_hpdj1120c_device)
#  260|   device_(gs_hpdj310_device)
#  261|-> device_(gs_hpdj320_device)
#  262|   device_(gs_hpdj340_device)
#  263|   device_(gs_hpdj400_device)

Error: COMPILER_WARNING (CWE-704): [#def717]
ghostscript-10.05.1/soobj/gconfig.h:262:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj340_device’ does not match original declaration
#  262 | device_(gs_hpdj340_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:171:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  171 | pcl3_device_instance(hpdj340,   HPDJ340);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:171:1: note: ‘gs_hpdj340_device’ was previously declared here
#  260|   device_(gs_hpdj310_device)
#  261|   device_(gs_hpdj320_device)
#  262|-> device_(gs_hpdj340_device)
#  263|   device_(gs_hpdj400_device)
#  264|   device_(gs_hpdj500_device)

Error: COMPILER_WARNING (CWE-704): [#def718]
ghostscript-10.05.1/soobj/gconfig.h:263:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj400_device’ does not match original declaration
#  263 | device_(gs_hpdj400_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:172:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  172 | pcl3_device_instance(hpdj400,   HPDJ400);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:172:1: note: ‘gs_hpdj400_device’ was previously declared here
#  261|   device_(gs_hpdj320_device)
#  262|   device_(gs_hpdj340_device)
#  263|-> device_(gs_hpdj400_device)
#  264|   device_(gs_hpdj500_device)
#  265|   device_(gs_hpdj500c_device)

Error: COMPILER_WARNING (CWE-704): [#def719]
ghostscript-10.05.1/soobj/gconfig.h:264:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj500_device’ does not match original declaration
#  264 | device_(gs_hpdj500_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:173:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  173 | pcl3_device_instance(hpdj500,   HPDJ500);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:173:1: note: ‘gs_hpdj500_device’ was previously declared here
#  262|   device_(gs_hpdj340_device)
#  263|   device_(gs_hpdj400_device)
#  264|-> device_(gs_hpdj500_device)
#  265|   device_(gs_hpdj500c_device)
#  266|   device_(gs_hpdj510_device)

Error: COMPILER_WARNING (CWE-704): [#def720]
ghostscript-10.05.1/soobj/gconfig.h:265:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj500c_device’ does not match original declaration
#  265 | device_(gs_hpdj500c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:174:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  174 | pcl3_device_instance(hpdj500c,  HPDJ500C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:174:1: note: ‘gs_hpdj500c_device’ was previously declared here
#  263|   device_(gs_hpdj400_device)
#  264|   device_(gs_hpdj500_device)
#  265|-> device_(gs_hpdj500c_device)
#  266|   device_(gs_hpdj510_device)
#  267|   device_(gs_hpdj520_device)

Error: COMPILER_WARNING (CWE-704): [#def721]
ghostscript-10.05.1/soobj/gconfig.h:266:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj510_device’ does not match original declaration
#  266 | device_(gs_hpdj510_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:175:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  175 | pcl3_device_instance(hpdj510,   HPDJ510);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:175:1: note: ‘gs_hpdj510_device’ was previously declared here
#  264|   device_(gs_hpdj500_device)
#  265|   device_(gs_hpdj500c_device)
#  266|-> device_(gs_hpdj510_device)
#  267|   device_(gs_hpdj520_device)
#  268|   device_(gs_hpdj540_device)

Error: COMPILER_WARNING (CWE-704): [#def722]
ghostscript-10.05.1/soobj/gconfig.h:267:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj520_device’ does not match original declaration
#  267 | device_(gs_hpdj520_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:176:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  176 | pcl3_device_instance(hpdj520,   HPDJ520);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:176:1: note: ‘gs_hpdj520_device’ was previously declared here
#  265|   device_(gs_hpdj500c_device)
#  266|   device_(gs_hpdj510_device)
#  267|-> device_(gs_hpdj520_device)
#  268|   device_(gs_hpdj540_device)
#  269|   device_(gs_hpdj550c_device)

Error: COMPILER_WARNING (CWE-704): [#def723]
ghostscript-10.05.1/soobj/gconfig.h:268:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj540_device’ does not match original declaration
#  268 | device_(gs_hpdj540_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:177:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  177 | pcl3_device_instance(hpdj540,   HPDJ540);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:177:1: note: ‘gs_hpdj540_device’ was previously declared here
#  266|   device_(gs_hpdj510_device)
#  267|   device_(gs_hpdj520_device)
#  268|-> device_(gs_hpdj540_device)
#  269|   device_(gs_hpdj550c_device)
#  270|   device_(gs_hpdj560c_device)

Error: COMPILER_WARNING (CWE-704): [#def724]
ghostscript-10.05.1/soobj/gconfig.h:269:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj550c_device’ does not match original declaration
#  269 | device_(gs_hpdj550c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:178:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  178 | pcl3_device_instance(hpdj550c,  HPDJ550C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:178:1: note: ‘gs_hpdj550c_device’ was previously declared here
#  267|   device_(gs_hpdj520_device)
#  268|   device_(gs_hpdj540_device)
#  269|-> device_(gs_hpdj550c_device)
#  270|   device_(gs_hpdj560c_device)
#  271|   device_(gs_hpdj600_device)

Error: COMPILER_WARNING (CWE-704): [#def725]
ghostscript-10.05.1/soobj/gconfig.h:270:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj560c_device’ does not match original declaration
#  270 | device_(gs_hpdj560c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:179:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  179 | pcl3_device_instance(hpdj560c,  HPDJ560C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:179:1: note: ‘gs_hpdj560c_device’ was previously declared here
#  268|   device_(gs_hpdj540_device)
#  269|   device_(gs_hpdj550c_device)
#  270|-> device_(gs_hpdj560c_device)
#  271|   device_(gs_hpdj600_device)
#  272|   device_(gs_hpdj660c_device)

Error: COMPILER_WARNING (CWE-704): [#def726]
ghostscript-10.05.1/soobj/gconfig.h:271:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj600_device’ does not match original declaration
#  271 | device_(gs_hpdj600_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:180:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  180 | pcl3_device_instance(hpdj600,   HPDJ600);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:180:1: note: ‘gs_hpdj600_device’ was previously declared here
#  269|   device_(gs_hpdj550c_device)
#  270|   device_(gs_hpdj560c_device)
#  271|-> device_(gs_hpdj600_device)
#  272|   device_(gs_hpdj660c_device)
#  273|   device_(gs_hpdj670c_device)

Error: COMPILER_WARNING (CWE-704): [#def727]
ghostscript-10.05.1/soobj/gconfig.h:272:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj660c_device’ does not match original declaration
#  272 | device_(gs_hpdj660c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:181:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  181 | pcl3_device_instance(hpdj660c,  HPDJ660C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:181:1: note: ‘gs_hpdj660c_device’ was previously declared here
#  270|   device_(gs_hpdj560c_device)
#  271|   device_(gs_hpdj600_device)
#  272|-> device_(gs_hpdj660c_device)
#  273|   device_(gs_hpdj670c_device)
#  274|   device_(gs_hpdj680c_device)

Error: COMPILER_WARNING (CWE-704): [#def728]
ghostscript-10.05.1/soobj/gconfig.h:273:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj670c_device’ does not match original declaration
#  273 | device_(gs_hpdj670c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:182:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  182 | pcl3_device_instance(hpdj670c,  HPDJ670C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:182:1: note: ‘gs_hpdj670c_device’ was previously declared here
#  271|   device_(gs_hpdj600_device)
#  272|   device_(gs_hpdj660c_device)
#  273|-> device_(gs_hpdj670c_device)
#  274|   device_(gs_hpdj680c_device)
#  275|   device_(gs_hpdj690c_device)

Error: COMPILER_WARNING (CWE-704): [#def729]
ghostscript-10.05.1/soobj/gconfig.h:274:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj680c_device’ does not match original declaration
#  274 | device_(gs_hpdj680c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:183:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  183 | pcl3_device_instance(hpdj680c,  HPDJ680C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:183:1: note: ‘gs_hpdj680c_device’ was previously declared here
#  272|   device_(gs_hpdj660c_device)
#  273|   device_(gs_hpdj670c_device)
#  274|-> device_(gs_hpdj680c_device)
#  275|   device_(gs_hpdj690c_device)
#  276|   device_(gs_hpdj850c_device)

Error: COMPILER_WARNING (CWE-704): [#def730]
ghostscript-10.05.1/soobj/gconfig.h:275:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj690c_device’ does not match original declaration
#  275 | device_(gs_hpdj690c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:184:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  184 | pcl3_device_instance(hpdj690c,  HPDJ690C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:184:1: note: ‘gs_hpdj690c_device’ was previously declared here
#  273|   device_(gs_hpdj670c_device)
#  274|   device_(gs_hpdj680c_device)
#  275|-> device_(gs_hpdj690c_device)
#  276|   device_(gs_hpdj850c_device)
#  277|   device_(gs_hpdj855c_device)

Error: COMPILER_WARNING (CWE-704): [#def731]
ghostscript-10.05.1/soobj/gconfig.h:276:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj850c_device’ does not match original declaration
#  276 | device_(gs_hpdj850c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:185:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  185 | pcl3_device_instance(hpdj850c,  HPDJ850C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:185:1: note: ‘gs_hpdj850c_device’ was previously declared here
#  274|   device_(gs_hpdj680c_device)
#  275|   device_(gs_hpdj690c_device)
#  276|-> device_(gs_hpdj850c_device)
#  277|   device_(gs_hpdj855c_device)
#  278|   device_(gs_hpdj870c_device)

Error: COMPILER_WARNING (CWE-704): [#def732]
ghostscript-10.05.1/soobj/gconfig.h:277:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj855c_device’ does not match original declaration
#  277 | device_(gs_hpdj855c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:186:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  186 | pcl3_device_instance(hpdj855c,  HPDJ855C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:186:1: note: ‘gs_hpdj855c_device’ was previously declared here
#  275|   device_(gs_hpdj690c_device)
#  276|   device_(gs_hpdj850c_device)
#  277|-> device_(gs_hpdj855c_device)
#  278|   device_(gs_hpdj870c_device)
#  279|   device_(gs_hpdj890c_device)

Error: COMPILER_WARNING (CWE-704): [#def733]
ghostscript-10.05.1/soobj/gconfig.h:278:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj870c_device’ does not match original declaration
#  278 | device_(gs_hpdj870c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:187:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  187 | pcl3_device_instance(hpdj870c,  HPDJ870C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:187:1: note: ‘gs_hpdj870c_device’ was previously declared here
#  276|   device_(gs_hpdj850c_device)
#  277|   device_(gs_hpdj855c_device)
#  278|-> device_(gs_hpdj870c_device)
#  279|   device_(gs_hpdj890c_device)
#  280|   device_(gs_hpdjplus_device)

Error: COMPILER_WARNING (CWE-704): [#def734]
ghostscript-10.05.1/soobj/gconfig.h:279:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj890c_device’ does not match original declaration
#  279 | device_(gs_hpdj890c_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:188:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  188 | pcl3_device_instance(hpdj890c,  HPDJ890C);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:188:1: note: ‘gs_hpdj890c_device’ was previously declared here
#  277|   device_(gs_hpdj855c_device)
#  278|   device_(gs_hpdj870c_device)
#  279|-> device_(gs_hpdj890c_device)
#  280|   device_(gs_hpdjplus_device)
#  281|   device_(gs_hpdjportable_device)

Error: COMPILER_WARNING (CWE-704): [#def735]
ghostscript-10.05.1/soobj/gconfig.h:280:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdjplus_device’ does not match original declaration
#  280 | device_(gs_hpdjplus_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:167:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  167 | pcl3_device_instance(hpdjplus,  HPDeskJetPlus);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:167:1: note: ‘gs_hpdjplus_device’ was previously declared here
#  278|   device_(gs_hpdj870c_device)
#  279|   device_(gs_hpdj890c_device)
#  280|-> device_(gs_hpdjplus_device)
#  281|   device_(gs_hpdjportable_device)
#  282|   device_(gs_ibmpro_device)

Error: COMPILER_WARNING (CWE-704): [#def736]
ghostscript-10.05.1/soobj/gconfig.h:281:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdjportable_device’ does not match original declaration
#  281 | device_(gs_hpdjportable_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:168:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  168 | pcl3_device_instance(hpdjportable, HPDJPortable);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:168:1: note: ‘gs_hpdjportable_device’ was previously declared here
#  279|   device_(gs_hpdj890c_device)
#  280|   device_(gs_hpdjplus_device)
#  281|-> device_(gs_hpdjportable_device)
#  282|   device_(gs_ibmpro_device)
#  283|   device_(gs_imagen_device)

Error: COMPILER_WARNING (CWE-704): [#def737]
ghostscript-10.05.1/soobj/gconfig.h:282:1: warning[-Wlto-type-mismatch]: type of ‘gs_ibmpro_device’ does not match original declaration
#  282 | device_(gs_ibmpro_device)
#      | ^
ghostscript-10.05.1/devices/gdevepsn.c:133:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  133 | const gx_device_printer far_data gs_ibmpro_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevepsn.c:133:34: note: ‘gs_ibmpro_device’ was previously declared here
#  280|   device_(gs_hpdjplus_device)
#  281|   device_(gs_hpdjportable_device)
#  282|-> device_(gs_ibmpro_device)
#  283|   device_(gs_imagen_device)
#  284|   #endif

Error: COMPILER_WARNING (CWE-704): [#def738]
ghostscript-10.05.1/soobj/gconfig.h:283:1: warning[-Wlto-type-mismatch]: type of ‘gs_imagen_device’ does not match original declaration
#  283 | device_(gs_imagen_device)
#      | ^
ghostscript-10.05.1/devices/gdevimgn.c:243:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  243 | const gx_device_printer far_data gs_imagen_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevimgn.c:243:34: note: ‘gs_imagen_device’ was previously declared here
#  281|   device_(gs_hpdjportable_device)
#  282|   device_(gs_ibmpro_device)
#  283|-> device_(gs_imagen_device)
#  284|   #endif
#  285|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def739]
ghostscript-10.05.1/soobj/gconfig.h:286:1: warning[-Wlto-type-mismatch]: type of ‘gs_itk24i_device’ does not match original declaration
#  286 | device2_(gs_itk24i_device)
#      | ^
ghostscript-10.05.1/devices/gdevatx.c:62:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   62 | const gx_device_printer gs_itk24i_device = /* real width = 832 pixels */
#      |                         ^
ghostscript-10.05.1/devices/gdevatx.c:62:25: note: ‘gs_itk24i_device’ was previously declared here
#  284|   #endif
#  285|   #ifdef device2_
#  286|-> device2_(gs_itk24i_device)
#  287|   device2_(gs_itk38_device)
#  288|   #endif

Error: COMPILER_WARNING (CWE-704): [#def740]
ghostscript-10.05.1/soobj/gconfig.h:287:1: warning[-Wlto-type-mismatch]: type of ‘gs_itk38_device’ does not match original declaration
#  287 | device2_(gs_itk38_device)
#      | ^
ghostscript-10.05.1/devices/gdevatx.c:66:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
#   66 | const gx_device_printer gs_itk38_device = /* real width = 2400 pixels */
#      |                         ^
ghostscript-10.05.1/devices/gdevatx.c:66:25: note: ‘gs_itk38_device’ was previously declared here
#  285|   #ifdef device2_
#  286|   device2_(gs_itk24i_device)
#  287|-> device2_(gs_itk38_device)
#  288|   #endif
#  289|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def741]
ghostscript-10.05.1/soobj/gconfig.h:290:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwhi_device’ does not match original declaration
#  290 | device_(gs_iwhi_device)
#      | ^
ghostscript-10.05.1/contrib/gdevadmp.c:139:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  139 | const gx_device_printer far_data gs_iwhi_device =
#      |                                  ^
ghostscript-10.05.1/contrib/gdevadmp.c:139:34: note: ‘gs_iwhi_device’ was previously declared here
#  288|   #endif
#  289|   #ifdef device_
#  290|-> device_(gs_iwhi_device)
#  291|   device_(gs_iwlo_device)
#  292|   device_(gs_iwlq_device)

Error: COMPILER_WARNING (CWE-704): [#def742]
ghostscript-10.05.1/soobj/gconfig.h:291:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlo_device’ does not match original declaration
#  291 | device_(gs_iwlo_device)
#      | ^
ghostscript-10.05.1/contrib/gdevadmp.c:130:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  130 | const gx_device_printer far_data gs_iwlo_device =
#      |                                  ^
ghostscript-10.05.1/contrib/gdevadmp.c:130:34: note: ‘gs_iwlo_device’ was previously declared here
#  289|   #ifdef device_
#  290|   device_(gs_iwhi_device)
#  291|-> device_(gs_iwlo_device)
#  292|   device_(gs_iwlq_device)
#  293|   device_(gs_jetp3852_device)

Error: COMPILER_WARNING (CWE-704): [#def743]
ghostscript-10.05.1/soobj/gconfig.h:292:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlq_device’ does not match original declaration
#  292 | device_(gs_iwlq_device)
#      | ^
ghostscript-10.05.1/contrib/gdevadmp.c:148:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  148 | const gx_device_printer far_data gs_iwlq_device =
#      |                                  ^
ghostscript-10.05.1/contrib/gdevadmp.c:148:34: note: ‘gs_iwlq_device’ was previously declared here
#  290|   device_(gs_iwhi_device)
#  291|   device_(gs_iwlo_device)
#  292|-> device_(gs_iwlq_device)
#  293|   device_(gs_jetp3852_device)
#  294|   device_(gs_jj100_device)

Error: COMPILER_WARNING (CWE-704): [#def744]
ghostscript-10.05.1/soobj/gconfig.h:293:1: warning[-Wlto-type-mismatch]: type of ‘gs_jetp3852_device’ does not match original declaration
#  293 | device_(gs_jetp3852_device)
#      | ^
ghostscript-10.05.1/devices/gdev3852.c:57:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   57 | const gx_device_printer far_data gs_jetp3852_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdev3852.c:57:34: note: ‘gs_jetp3852_device’ was previously declared here
#  291|   device_(gs_iwlo_device)
#  292|   device_(gs_iwlq_device)
#  293|-> device_(gs_jetp3852_device)
#  294|   device_(gs_jj100_device)
#  295|   device_(gs_la50_device)

Error: COMPILER_WARNING (CWE-704): [#def745]
ghostscript-10.05.1/soobj/gconfig.h:294:1: warning[-Wlto-type-mismatch]: type of ‘gs_jj100_device’ does not match original declaration
#  294 | device_(gs_jj100_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevj100.c:31:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   31 | gx_device_printer gs_jj100_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevj100.c:31:19: note: ‘gs_jj100_device’ was previously declared here
#  292|   device_(gs_iwlq_device)
#  293|   device_(gs_jetp3852_device)
#  294|-> device_(gs_jj100_device)
#  295|   device_(gs_la50_device)
#  296|   device_(gs_la70_device)

Error: COMPILER_WARNING (CWE-704): [#def746]
ghostscript-10.05.1/soobj/gconfig.h:295:1: warning[-Wlto-type-mismatch]: type of ‘gs_la50_device’ does not match original declaration
#  295 | device_(gs_la50_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:129:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  129 | gx_device_printer gs_la50_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:129:19: note: ‘gs_la50_device’ was previously declared here
#  293|   device_(gs_jetp3852_device)
#  294|   device_(gs_jj100_device)
#  295|-> device_(gs_la50_device)
#  296|   device_(gs_la70_device)
#  297|   device_(gs_la75_device)

Error: COMPILER_WARNING (CWE-704): [#def747]
ghostscript-10.05.1/soobj/gconfig.h:296:1: warning[-Wlto-type-mismatch]: type of ‘gs_la70_device’ does not match original declaration
#  296 | device_(gs_la70_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:156:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  156 | gx_device_printer gs_la70_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:156:19: note: ‘gs_la70_device’ was previously declared here
#  294|   device_(gs_jj100_device)
#  295|   device_(gs_la50_device)
#  296|-> device_(gs_la70_device)
#  297|   device_(gs_la75_device)
#  298|   device_(gs_la75plus_device)

Error: COMPILER_WARNING (CWE-704): [#def748]
ghostscript-10.05.1/soobj/gconfig.h:297:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75_device’ does not match original declaration
#  297 | device_(gs_la75_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:182:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  182 | gx_device_printer gs_la75_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:182:19: note: ‘gs_la75_device’ was previously declared here
#  295|   device_(gs_la50_device)
#  296|   device_(gs_la70_device)
#  297|-> device_(gs_la75_device)
#  298|   device_(gs_la75plus_device)
#  299|   #endif

Error: COMPILER_WARNING (CWE-704): [#def749]
ghostscript-10.05.1/soobj/gconfig.h:298:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75plus_device’ does not match original declaration
#  298 | device_(gs_la75plus_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:209:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  209 | gx_device_printer gs_la75plus_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:209:19: note: ‘gs_la75plus_device’ was previously declared here
#  296|   device_(gs_la70_device)
#  297|   device_(gs_la75_device)
#  298|-> device_(gs_la75plus_device)
#  299|   #endif
#  300|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def750]
ghostscript-10.05.1/soobj/gconfig.h:301:1: warning[-Wlto-type-mismatch]: type of ‘gs_laserjet_device’ does not match original declaration
#  301 | device2_(gs_laserjet_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:178:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  178 | const gx_device_hpjet gs_laserjet_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:178:23: note: ‘gs_laserjet_device’ was previously declared here
#  299|   #endif
#  300|   #ifdef device2_
#  301|-> device2_(gs_laserjet_device)
#  302|   #endif
#  303|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def751]
ghostscript-10.05.1/soobj/gconfig.h:304:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp310_device’ does not match original declaration
#  304 | device_(gs_lbp310_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevlbp3.c:17:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   17 | gx_device_printer far_data gs_lbp310_device =
#      |                            ^
ghostscript-10.05.1/contrib/japanese/gdevlbp3.c:17:28: note: ‘gs_lbp310_device’ was previously declared here
#  302|   #endif
#  303|   #ifdef device_
#  304|-> device_(gs_lbp310_device)
#  305|   device_(gs_lbp320_device)
#  306|   device_(gs_lbp8_device)

Error: COMPILER_WARNING (CWE-704): [#def752]
ghostscript-10.05.1/soobj/gconfig.h:305:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp320_device’ does not match original declaration
#  305 | device_(gs_lbp320_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevlbp3.c:29:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   29 | gx_device_printer far_data gs_lbp320_device =
#      |                            ^
ghostscript-10.05.1/contrib/japanese/gdevlbp3.c:29:28: note: ‘gs_lbp320_device’ was previously declared here
#  303|   #ifdef device_
#  304|   device_(gs_lbp310_device)
#  305|-> device_(gs_lbp320_device)
#  306|   device_(gs_lbp8_device)
#  307|   device_(gs_lex2050_device)

Error: COMPILER_WARNING (CWE-704): [#def753]
ghostscript-10.05.1/soobj/gconfig.h:306:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp8_device’ does not match original declaration
#  306 | device_(gs_lbp8_device)
#      | ^
ghostscript-10.05.1/devices/gdevlbp8.c:50:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   50 | const gx_device_printer far_data gs_lbp8_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevlbp8.c:50:34: note: ‘gs_lbp8_device’ was previously declared here
#  304|   device_(gs_lbp310_device)
#  305|   device_(gs_lbp320_device)
#  306|-> device_(gs_lbp8_device)
#  307|   device_(gs_lex2050_device)
#  308|   device_(gs_lex3200_device)

Error: COMPILER_WARNING (CWE-704): [#def754]
ghostscript-10.05.1/soobj/gconfig.h:307:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex2050_device’ does not match original declaration
#  307 | device_(gs_lex2050_device)
#      | ^
ghostscript-10.05.1/contrib/gdevlx7.c:216:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#  216 | lxm_device far_data gs_lex2050_device = {
#      |                     ^
ghostscript-10.05.1/contrib/gdevlx7.c:216:21: note: ‘gs_lex2050_device’ was previously declared here
#  305|   device_(gs_lbp320_device)
#  306|   device_(gs_lbp8_device)
#  307|-> device_(gs_lex2050_device)
#  308|   device_(gs_lex3200_device)
#  309|   device_(gs_lex5700_device)

Error: COMPILER_WARNING (CWE-704): [#def755]
ghostscript-10.05.1/soobj/gconfig.h:308:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex3200_device’ does not match original declaration
#  308 | device_(gs_lex3200_device)
#      | ^
ghostscript-10.05.1/contrib/gdevlx7.c:193:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#  193 | lxm_device far_data gs_lex3200_device = {
#      |                     ^
ghostscript-10.05.1/contrib/gdevlx7.c:193:21: note: ‘gs_lex3200_device’ was previously declared here
#  306|   device_(gs_lbp8_device)
#  307|   device_(gs_lex2050_device)
#  308|-> device_(gs_lex3200_device)
#  309|   device_(gs_lex5700_device)
#  310|   device_(gs_lex7000_device)

Error: COMPILER_WARNING (CWE-704): [#def756]
ghostscript-10.05.1/soobj/gconfig.h:309:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex5700_device’ does not match original declaration
#  309 | device_(gs_lex5700_device)
#      | ^
ghostscript-10.05.1/contrib/gdevlx7.c:170:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#  170 | lxm_device far_data gs_lex5700_device = {
#      |                     ^
ghostscript-10.05.1/contrib/gdevlx7.c:170:21: note: ‘gs_lex5700_device’ was previously declared here
#  307|   device_(gs_lex2050_device)
#  308|   device_(gs_lex3200_device)
#  309|-> device_(gs_lex5700_device)
#  310|   device_(gs_lex7000_device)
#  311|   device_(gs_lips2p_device)

Error: COMPILER_WARNING (CWE-704): [#def757]
ghostscript-10.05.1/soobj/gconfig.h:310:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex7000_device’ does not match original declaration
#  310 | device_(gs_lex7000_device)
#      | ^
ghostscript-10.05.1/contrib/gdevlx7.c:147:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#  147 | lxm_device far_data gs_lex7000_device = {
#      |                     ^
ghostscript-10.05.1/contrib/gdevlx7.c:147:21: note: ‘gs_lex7000_device’ was previously declared here
#  308|   device_(gs_lex3200_device)
#  309|   device_(gs_lex5700_device)
#  310|-> device_(gs_lex7000_device)
#  311|   device_(gs_lips2p_device)
#  312|   device_(gs_lips3_device)

Error: COMPILER_WARNING (CWE-704): [#def758]
ghostscript-10.05.1/soobj/gconfig.h:311:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips2p_device’ does not match original declaration
#  311 | device_(gs_lips2p_device)
#      | ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:146:25: note: type ‘struct gx_device_lips’ should match type ‘struct gx_device’
#  146 | gx_device_lips far_data gs_lips2p_device =
#      |                         ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:146:25: note: ‘gs_lips2p_device’ was previously declared here
#  309|   device_(gs_lex5700_device)
#  310|   device_(gs_lex7000_device)
#  311|-> device_(gs_lips2p_device)
#  312|   device_(gs_lips3_device)
#  313|   device_(gs_lips4_device)

Error: COMPILER_WARNING (CWE-704): [#def759]
ghostscript-10.05.1/soobj/gconfig.h:312:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips3_device’ does not match original declaration
#  312 | device_(gs_lips3_device)
#      | ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:158:25: note: type ‘struct gx_device_lips’ should match type ‘struct gx_device’
#  158 | gx_device_lips far_data gs_lips3_device =
#      |                         ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:158:25: note: ‘gs_lips3_device’ was previously declared here
#  310|   device_(gs_lex7000_device)
#  311|   device_(gs_lips2p_device)
#  312|-> device_(gs_lips3_device)
#  313|   device_(gs_lips4_device)
#  314|   device_(gs_lips4v_device)

Error: COMPILER_WARNING (CWE-704): [#def760]
ghostscript-10.05.1/soobj/gconfig.h:313:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4_device’ does not match original declaration
#  313 | device_(gs_lips4_device)
#      | ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:182:26: note: type ‘struct gx_device_lips4’ should match type ‘struct gx_device’
#  182 | gx_device_lips4 far_data gs_lips4_device =
#      |                          ^
ghostscript-10.05.1/contrib/lips4/gdevl4r.c:182:26: note: ‘gs_lips4_device’ was previously declared here
#  311|   device_(gs_lips2p_device)
#  312|   device_(gs_lips3_device)
#  313|-> device_(gs_lips4_device)
#  314|   device_(gs_lips4v_device)
#  315|   device_(gs_lj250_device)

Error: COMPILER_WARNING (CWE-704): [#def761]
ghostscript-10.05.1/soobj/gconfig.h:314:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4v_device’ does not match original declaration
#  314 | device_(gs_lips4v_device)
#      | ^
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:185:27: note: type ‘struct gx_device_lips4v’ should match type ‘struct gx_device’
#  185 | gx_device_lips4v far_data gs_lips4v_device = {
#      |                           ^
ghostscript-10.05.1/contrib/lips4/gdevl4v.c:185:27: note: ‘gs_lips4v_device’ was previously declared here
#  312|   device_(gs_lips3_device)
#  313|   device_(gs_lips4_device)
#  314|-> device_(gs_lips4v_device)
#  315|   device_(gs_lj250_device)
#  316|   device_(gs_lj3100sw_device)

Error: COMPILER_WARNING (CWE-704): [#def762]
ghostscript-10.05.1/soobj/gconfig.h:315:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj250_device’ does not match original declaration
#  315 | device_(gs_lj250_device)
#      | ^
ghostscript-10.05.1/devices/gdevpjet.c:48:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   48 | const gx_device_printer far_data gs_lj250_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevpjet.c:48:34: note: ‘gs_lj250_device’ was previously declared here
#  313|   device_(gs_lips4_device)
#  314|   device_(gs_lips4v_device)
#  315|-> device_(gs_lj250_device)
#  316|   device_(gs_lj3100sw_device)
#  317|   device_(gs_lj4dith_device)

Error: COMPILER_WARNING (CWE-704): [#def763]
ghostscript-10.05.1/soobj/gconfig.h:316:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj3100sw_device’ does not match original declaration
#  316 | device_(gs_lj3100sw_device)
#      | ^
ghostscript-10.05.1/devices/gdevl31s.c:92:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   92 | gx_device_printer far_data gs_lj3100sw_device =
#      |                            ^
ghostscript-10.05.1/devices/gdevl31s.c:92:28: note: ‘gs_lj3100sw_device’ was previously declared here
#  314|   device_(gs_lips4v_device)
#  315|   device_(gs_lj250_device)
#  316|-> device_(gs_lj3100sw_device)
#  317|   device_(gs_lj4dith_device)
#  318|   device_(gs_lj4dithp_device)

Error: COMPILER_WARNING (CWE-704): [#def764]
ghostscript-10.05.1/soobj/gconfig.h:317:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dith_device’ does not match original declaration
#  317 | device_(gs_lj4dith_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:629:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  629 | gx_device_cdj far_data gs_lj4dith_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:629:24: note: ‘gs_lj4dith_device’ was previously declared here
#  315|   device_(gs_lj250_device)
#  316|   device_(gs_lj3100sw_device)
#  317|-> device_(gs_lj4dith_device)
#  318|   device_(gs_lj4dithp_device)
#  319|   device_(gs_lj5gray_device)

Error: COMPILER_WARNING (CWE-704): [#def765]
ghostscript-10.05.1/soobj/gconfig.h:318:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dithp_device’ does not match original declaration
#  318 | device_(gs_lj4dithp_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:633:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  633 | gx_device_cdj far_data gs_lj4dithp_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:633:24: note: ‘gs_lj4dithp_device’ was previously declared here
#  316|   device_(gs_lj3100sw_device)
#  317|   device_(gs_lj4dith_device)
#  318|-> device_(gs_lj4dithp_device)
#  319|   device_(gs_lj5gray_device)
#  320|   device_(gs_lj5mono_device)

Error: COMPILER_WARNING (CWE-704): [#def766]
ghostscript-10.05.1/soobj/gconfig.h:319:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5gray_device’ does not match original declaration
#  319 | device_(gs_lj5gray_device)
#      | ^
ghostscript-10.05.1/devices/gdevlj56.c:73:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   73 | const gx_device_printer gs_lj5gray_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevlj56.c:73:25: note: ‘gs_lj5gray_device’ was previously declared here
#  317|   device_(gs_lj4dith_device)
#  318|   device_(gs_lj4dithp_device)
#  319|-> device_(gs_lj5gray_device)
#  320|   device_(gs_lj5mono_device)
#  321|   #endif

Error: COMPILER_WARNING (CWE-704): [#def767]
ghostscript-10.05.1/soobj/gconfig.h:320:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5mono_device’ does not match original declaration
#  320 | device_(gs_lj5mono_device)
#      | ^
ghostscript-10.05.1/devices/gdevlj56.c:54:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   54 | const gx_device_printer gs_lj5mono_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevlj56.c:54:25: note: ‘gs_lj5mono_device’ was previously declared here
#  318|   device_(gs_lj4dithp_device)
#  319|   device_(gs_lj5gray_device)
#  320|-> device_(gs_lj5mono_device)
#  321|   #endif
#  322|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def768]
ghostscript-10.05.1/soobj/gconfig.h:323:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet2p_device’ does not match original declaration
#  323 | device2_(gs_ljet2p_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:192:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  192 | const gx_device_hpjet gs_ljet2p_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:192:23: note: ‘gs_ljet2p_device’ was previously declared here
#  321|   #endif
#  322|   #ifdef device2_
#  323|-> device2_(gs_ljet2p_device)
#  324|   device2_(gs_ljet3_device)
#  325|   device2_(gs_ljet3d_device)

Error: COMPILER_WARNING (CWE-704): [#def769]
ghostscript-10.05.1/soobj/gconfig.h:324:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3_device’ does not match original declaration
#  324 | device2_(gs_ljet3_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:199:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  199 | const gx_device_hpjet gs_ljet3_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:199:23: note: ‘gs_ljet3_device’ was previously declared here
#  322|   #ifdef device2_
#  323|   device2_(gs_ljet2p_device)
#  324|-> device2_(gs_ljet3_device)
#  325|   device2_(gs_ljet3d_device)
#  326|   device2_(gs_ljet4_device)

Error: COMPILER_WARNING (CWE-704): [#def770]
ghostscript-10.05.1/soobj/gconfig.h:325:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3d_device’ does not match original declaration
#  325 | device2_(gs_ljet3d_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:206:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  206 | const gx_device_hpjet gs_ljet3d_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:206:23: note: ‘gs_ljet3d_device’ was previously declared here
#  323|   device2_(gs_ljet2p_device)
#  324|   device2_(gs_ljet3_device)
#  325|-> device2_(gs_ljet3d_device)
#  326|   device2_(gs_ljet4_device)
#  327|   device2_(gs_ljet4d_device)

Error: COMPILER_WARNING (CWE-704): [#def771]
ghostscript-10.05.1/soobj/gconfig.h:326:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4_device’ does not match original declaration
#  326 | device2_(gs_ljet4_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:213:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  213 | const gx_device_hpjet gs_ljet4_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:213:23: note: ‘gs_ljet4_device’ was previously declared here
#  324|   device2_(gs_ljet3_device)
#  325|   device2_(gs_ljet3d_device)
#  326|-> device2_(gs_ljet4_device)
#  327|   device2_(gs_ljet4d_device)
#  328|   #endif

Error: COMPILER_WARNING (CWE-704): [#def772]
ghostscript-10.05.1/soobj/gconfig.h:327:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4d_device’ does not match original declaration
#  327 | device2_(gs_ljet4d_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:220:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  220 | const gx_device_hpjet gs_ljet4d_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:220:23: note: ‘gs_ljet4d_device’ was previously declared here
#  325|   device2_(gs_ljet3d_device)
#  326|   device2_(gs_ljet4_device)
#  327|-> device2_(gs_ljet4d_device)
#  328|   #endif
#  329|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def773]
ghostscript-10.05.1/soobj/gconfig.h:330:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4pjl_device’ does not match original declaration
#  330 | device_(gs_ljet4pjl_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:241:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#  241 | const gx_device_printer gs_ljet4pjl_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevdjet.c:241:25: note: ‘gs_ljet4pjl_device’ was previously declared here
#  328|   #endif
#  329|   #ifdef device_
#  330|-> device_(gs_ljet4pjl_device)
#  331|   #endif
#  332|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def774]
ghostscript-10.05.1/soobj/gconfig.h:333:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljetplus_device’ does not match original declaration
#  333 | device2_(gs_ljetplus_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:185:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  185 | const gx_device_hpjet gs_ljetplus_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:185:23: note: ‘gs_ljetplus_device’ was previously declared here
#  331|   #endif
#  332|   #ifdef device2_
#  333|-> device2_(gs_ljetplus_device)
#  334|   #endif
#  335|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def775]
ghostscript-10.05.1/soobj/gconfig.h:336:1: warning[-Wlto-type-mismatch]: type of ‘gs_ln03_device’ does not match original declaration
#  336 | device_(gs_ln03_device)
#      | ^
ghostscript-10.05.1/contrib/gdevln03.c:67:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   67 | gx_device_printer gs_ln03_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevln03.c:67:19: note: ‘gs_ln03_device’ was previously declared here
#  334|   #endif
#  335|   #ifdef device_
#  336|-> device_(gs_ln03_device)
#  337|   device_(gs_lp1800_device)
#  338|   device_(gs_lp1900_device)

Error: COMPILER_WARNING (CWE-704): [#def776]
ghostscript-10.05.1/soobj/gconfig.h:337:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1800_device’ does not match original declaration
#  337 | device_(gs_lp1800_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:254:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  254 | gx_device_escv far_data gs_lp1800_device  = esmv_device_body("lp1800");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:254:25: note: ‘gs_lp1800_device’ was previously declared here
#  335|   #ifdef device_
#  336|   device_(gs_ln03_device)
#  337|-> device_(gs_lp1800_device)
#  338|   device_(gs_lp1900_device)
#  339|   device_(gs_lp2000_device)

Error: COMPILER_WARNING (CWE-704): [#def777]
ghostscript-10.05.1/soobj/gconfig.h:338:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1900_device’ does not match original declaration
#  338 | device_(gs_lp1900_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:255:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  255 | gx_device_escv far_data gs_lp1900_device  = esmv_device_body("lp1900");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:255:25: note: ‘gs_lp1900_device’ was previously declared here
#  336|   device_(gs_ln03_device)
#  337|   device_(gs_lp1800_device)
#  338|-> device_(gs_lp1900_device)
#  339|   device_(gs_lp2000_device)
#  340|   device_(gs_lp2200_device)

Error: COMPILER_WARNING (CWE-704): [#def778]
ghostscript-10.05.1/soobj/gconfig.h:339:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2000_device’ does not match original declaration
#  339 | device_(gs_lp2000_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevespg.c:66:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
#   66 | gx_device_lprn far_data gs_lp2000_device =
#      |                         ^
ghostscript-10.05.1/contrib/japanese/gdevespg.c:66:25: note: ‘gs_lp2000_device’ was previously declared here
#  337|   device_(gs_lp1800_device)
#  338|   device_(gs_lp1900_device)
#  339|-> device_(gs_lp2000_device)
#  340|   device_(gs_lp2200_device)
#  341|   device_(gs_lp2400_device)

Error: COMPILER_WARNING (CWE-704): [#def779]
ghostscript-10.05.1/soobj/gconfig.h:340:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2200_device’ does not match original declaration
#  340 | device_(gs_lp2200_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:256:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  256 | gx_device_escv far_data gs_lp2200_device  = esmv_device_body("lp2200");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:256:25: note: ‘gs_lp2200_device’ was previously declared here
#  338|   device_(gs_lp1900_device)
#  339|   device_(gs_lp2000_device)
#  340|-> device_(gs_lp2200_device)
#  341|   device_(gs_lp2400_device)
#  342|   device_(gs_lp2500_device)

Error: COMPILER_WARNING (CWE-704): [#def780]
ghostscript-10.05.1/soobj/gconfig.h:341:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2400_device’ does not match original declaration
#  341 | device_(gs_lp2400_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:257:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  257 | gx_device_escv far_data gs_lp2400_device  = esmv_device_body("lp2400");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:257:25: note: ‘gs_lp2400_device’ was previously declared here
#  339|   device_(gs_lp2000_device)
#  340|   device_(gs_lp2200_device)
#  341|-> device_(gs_lp2400_device)
#  342|   device_(gs_lp2500_device)
#  343|   #endif

Error: COMPILER_WARNING (CWE-704): [#def781]
ghostscript-10.05.1/soobj/gconfig.h:342:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2500_device’ does not match original declaration
#  342 | device_(gs_lp2500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:258:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  258 | gx_device_escv far_data gs_lp2500_device  = esmv_device_body("lp2500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:258:25: note: ‘gs_lp2500_device’ was previously declared here
#  340|   device_(gs_lp2200_device)
#  341|   device_(gs_lp2400_device)
#  342|-> device_(gs_lp2500_device)
#  343|   #endif
#  344|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def782]
ghostscript-10.05.1/soobj/gconfig.h:345:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2563_device’ does not match original declaration
#  345 | device2_(gs_lp2563_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:227:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  227 | const gx_device_hpjet gs_lp2563_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:227:23: note: ‘gs_lp2563_device’ was previously declared here
#  343|   #endif
#  344|   #ifdef device2_
#  345|-> device2_(gs_lp2563_device)
#  346|   #endif
#  347|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def783]
ghostscript-10.05.1/soobj/gconfig.h:348:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp3000c_device’ does not match original declaration
#  348 | device_(gs_lp3000c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:287:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  287 | gx_device_escv far_data gs_lp3000c_device = escv_device_body("lp3000c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:287:25: note: ‘gs_lp3000c_device’ was previously declared here
#  346|   #endif
#  347|   #ifdef device_
#  348|-> device_(gs_lp3000c_device)
#  349|   device_(gs_lp7500_device)
#  350|   device_(gs_lp7700_device)

Error: COMPILER_WARNING (CWE-704): [#def784]
ghostscript-10.05.1/soobj/gconfig.h:349:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7500_device’ does not match original declaration
#  349 | device_(gs_lp7500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:259:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  259 | gx_device_escv far_data gs_lp7500_device  = esmv_device_body("lp7500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:259:25: note: ‘gs_lp7500_device’ was previously declared here
#  347|   #ifdef device_
#  348|   device_(gs_lp3000c_device)
#  349|-> device_(gs_lp7500_device)
#  350|   device_(gs_lp7700_device)
#  351|   device_(gs_lp7900_device)

Error: COMPILER_WARNING (CWE-704): [#def785]
ghostscript-10.05.1/soobj/gconfig.h:350:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7700_device’ does not match original declaration
#  350 | device_(gs_lp7700_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:260:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  260 | gx_device_escv far_data gs_lp7700_device  = esmv_device_body("lp7700");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:260:25: note: ‘gs_lp7700_device’ was previously declared here
#  348|   device_(gs_lp3000c_device)
#  349|   device_(gs_lp7500_device)
#  350|-> device_(gs_lp7700_device)
#  351|   device_(gs_lp7900_device)
#  352|   device_(gs_lp8000_device)

Error: COMPILER_WARNING (CWE-704): [#def786]
ghostscript-10.05.1/soobj/gconfig.h:351:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7900_device’ does not match original declaration
#  351 | device_(gs_lp7900_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:261:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  261 | gx_device_escv far_data gs_lp7900_device  = esmv_device_body("lp7900");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:261:25: note: ‘gs_lp7900_device’ was previously declared here
#  349|   device_(gs_lp7500_device)
#  350|   device_(gs_lp7700_device)
#  351|-> device_(gs_lp7900_device)
#  352|   device_(gs_lp8000_device)
#  353|   device_(gs_lp8000c_device)

Error: COMPILER_WARNING (CWE-704): [#def787]
ghostscript-10.05.1/soobj/gconfig.h:352:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000_device’ does not match original declaration
#  352 | device_(gs_lp8000_device)
#      | ^
ghostscript-10.05.1/devices/gdevlp8k.c:172:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  172 | gx_device_printer far_data gs_lp8000_device =
#      |                            ^
ghostscript-10.05.1/devices/gdevlp8k.c:172:28: note: ‘gs_lp8000_device’ was previously declared here
#  350|   device_(gs_lp7700_device)
#  351|   device_(gs_lp7900_device)
#  352|-> device_(gs_lp8000_device)
#  353|   device_(gs_lp8000c_device)
#  354|   device_(gs_lp8100_device)

Error: COMPILER_WARNING (CWE-704): [#def788]
ghostscript-10.05.1/soobj/gconfig.h:353:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000c_device’ does not match original declaration
#  353 | device_(gs_lp8000c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:288:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  288 | gx_device_escv far_data gs_lp8000c_device = escv_device_body("lp8000c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:288:25: note: ‘gs_lp8000c_device’ was previously declared here
#  351|   device_(gs_lp7900_device)
#  352|   device_(gs_lp8000_device)
#  353|-> device_(gs_lp8000c_device)
#  354|   device_(gs_lp8100_device)
#  355|   device_(gs_lp8200c_device)

Error: COMPILER_WARNING (CWE-704): [#def789]
ghostscript-10.05.1/soobj/gconfig.h:354:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8100_device’ does not match original declaration
#  354 | device_(gs_lp8100_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:262:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  262 | gx_device_escv far_data gs_lp8100_device  = esmv_device_body("lp8100");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:262:25: note: ‘gs_lp8100_device’ was previously declared here
#  352|   device_(gs_lp8000_device)
#  353|   device_(gs_lp8000c_device)
#  354|-> device_(gs_lp8100_device)
#  355|   device_(gs_lp8200c_device)
#  356|   device_(gs_lp8300c_device)

Error: COMPILER_WARNING (CWE-704): [#def790]
ghostscript-10.05.1/soobj/gconfig.h:355:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8200c_device’ does not match original declaration
#  355 | device_(gs_lp8200c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:289:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  289 | gx_device_escv far_data gs_lp8200c_device = escv_device_body("lp8200c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:289:25: note: ‘gs_lp8200c_device’ was previously declared here
#  353|   device_(gs_lp8000c_device)
#  354|   device_(gs_lp8100_device)
#  355|-> device_(gs_lp8200c_device)
#  356|   device_(gs_lp8300c_device)
#  357|   device_(gs_lp8300f_device)

Error: COMPILER_WARNING (CWE-704): [#def791]
ghostscript-10.05.1/soobj/gconfig.h:356:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300c_device’ does not match original declaration
#  356 | device_(gs_lp8300c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:290:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  290 | gx_device_escv far_data gs_lp8300c_device = escv_device_body("lp8300c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:290:25: note: ‘gs_lp8300c_device’ was previously declared here
#  354|   device_(gs_lp8100_device)
#  355|   device_(gs_lp8200c_device)
#  356|-> device_(gs_lp8300c_device)
#  357|   device_(gs_lp8300f_device)
#  358|   device_(gs_lp8400f_device)

Error: COMPILER_WARNING (CWE-704): [#def792]
ghostscript-10.05.1/soobj/gconfig.h:357:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300f_device’ does not match original declaration
#  357 | device_(gs_lp8300f_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:263:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  263 | gx_device_escv far_data gs_lp8300f_device = esmv_device_body("lp8300f");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:263:25: note: ‘gs_lp8300f_device’ was previously declared here
#  355|   device_(gs_lp8200c_device)
#  356|   device_(gs_lp8300c_device)
#  357|-> device_(gs_lp8300f_device)
#  358|   device_(gs_lp8400f_device)
#  359|   device_(gs_lp8500c_device)

Error: COMPILER_WARNING (CWE-704): [#def793]
ghostscript-10.05.1/soobj/gconfig.h:358:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8400f_device’ does not match original declaration
#  358 | device_(gs_lp8400f_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:264:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  264 | gx_device_escv far_data gs_lp8400f_device = esmv_device_body("lp8400f");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:264:25: note: ‘gs_lp8400f_device’ was previously declared here
#  356|   device_(gs_lp8300c_device)
#  357|   device_(gs_lp8300f_device)
#  358|-> device_(gs_lp8400f_device)
#  359|   device_(gs_lp8500c_device)
#  360|   device_(gs_lp8600_device)

Error: COMPILER_WARNING (CWE-704): [#def794]
ghostscript-10.05.1/soobj/gconfig.h:359:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8500c_device’ does not match original declaration
#  359 | device_(gs_lp8500c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:291:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  291 | gx_device_escv far_data gs_lp8500c_device = escv_device_body("lp8500c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:291:25: note: ‘gs_lp8500c_device’ was previously declared here
#  357|   device_(gs_lp8300f_device)
#  358|   device_(gs_lp8400f_device)
#  359|-> device_(gs_lp8500c_device)
#  360|   device_(gs_lp8600_device)
#  361|   device_(gs_lp8600f_device)

Error: COMPILER_WARNING (CWE-704): [#def795]
ghostscript-10.05.1/soobj/gconfig.h:360:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600_device’ does not match original declaration
#  360 | device_(gs_lp8600_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:265:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  265 | gx_device_escv far_data gs_lp8600_device  = esmv_device_body("lp8600");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:265:25: note: ‘gs_lp8600_device’ was previously declared here
#  358|   device_(gs_lp8400f_device)
#  359|   device_(gs_lp8500c_device)
#  360|-> device_(gs_lp8600_device)
#  361|   device_(gs_lp8600f_device)
#  362|   device_(gs_lp8700_device)

Error: COMPILER_WARNING (CWE-704): [#def796]
ghostscript-10.05.1/soobj/gconfig.h:361:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600f_device’ does not match original declaration
#  361 | device_(gs_lp8600f_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:266:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  266 | gx_device_escv far_data gs_lp8600f_device = esmv_device_body("lp8600f");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:266:25: note: ‘gs_lp8600f_device’ was previously declared here
#  359|   device_(gs_lp8500c_device)
#  360|   device_(gs_lp8600_device)
#  361|-> device_(gs_lp8600f_device)
#  362|   device_(gs_lp8700_device)
#  363|   device_(gs_lp8800c_device)

Error: COMPILER_WARNING (CWE-704): [#def797]
ghostscript-10.05.1/soobj/gconfig.h:362:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8700_device’ does not match original declaration
#  362 | device_(gs_lp8700_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:267:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  267 | gx_device_escv far_data gs_lp8700_device  = esmv_device_body("lp8700");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:267:25: note: ‘gs_lp8700_device’ was previously declared here
#  360|   device_(gs_lp8600_device)
#  361|   device_(gs_lp8600f_device)
#  362|-> device_(gs_lp8700_device)
#  363|   device_(gs_lp8800c_device)
#  364|   device_(gs_lp8900_device)

Error: COMPILER_WARNING (CWE-704): [#def798]
ghostscript-10.05.1/soobj/gconfig.h:363:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8800c_device’ does not match original declaration
#  363 | device_(gs_lp8800c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:292:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  292 | gx_device_escv far_data gs_lp8800c_device = escv_device_body("lp8800c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:292:25: note: ‘gs_lp8800c_device’ was previously declared here
#  361|   device_(gs_lp8600f_device)
#  362|   device_(gs_lp8700_device)
#  363|-> device_(gs_lp8800c_device)
#  364|   device_(gs_lp8900_device)
#  365|   device_(gs_lp9000b_device)

Error: COMPILER_WARNING (CWE-704): [#def799]
ghostscript-10.05.1/soobj/gconfig.h:364:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8900_device’ does not match original declaration
#  364 | device_(gs_lp8900_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:268:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  268 | gx_device_escv far_data gs_lp8900_device  = esmv_device_body("lp8900");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:268:25: note: ‘gs_lp8900_device’ was previously declared here
#  362|   device_(gs_lp8700_device)
#  363|   device_(gs_lp8800c_device)
#  364|-> device_(gs_lp8900_device)
#  365|   device_(gs_lp9000b_device)
#  366|   device_(gs_lp9000c_device)

Error: COMPILER_WARNING (CWE-704): [#def800]
ghostscript-10.05.1/soobj/gconfig.h:365:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000b_device’ does not match original declaration
#  365 | device_(gs_lp9000b_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:269:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  269 | gx_device_escv far_data gs_lp9000b_device = esmv_device_body("lp9000b");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:269:25: note: ‘gs_lp9000b_device’ was previously declared here
#  363|   device_(gs_lp8800c_device)
#  364|   device_(gs_lp8900_device)
#  365|-> device_(gs_lp9000b_device)
#  366|   device_(gs_lp9000c_device)
#  367|   device_(gs_lp9100_device)

Error: COMPILER_WARNING (CWE-704): [#def801]
ghostscript-10.05.1/soobj/gconfig.h:366:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000c_device’ does not match original declaration
#  366 | device_(gs_lp9000c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:293:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  293 | gx_device_escv far_data gs_lp9000c_device = escv_device_body("lp9000c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:293:25: note: ‘gs_lp9000c_device’ was previously declared here
#  364|   device_(gs_lp8900_device)
#  365|   device_(gs_lp9000b_device)
#  366|-> device_(gs_lp9000c_device)
#  367|   device_(gs_lp9100_device)
#  368|   device_(gs_lp9200b_device)

Error: COMPILER_WARNING (CWE-704): [#def802]
ghostscript-10.05.1/soobj/gconfig.h:367:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9100_device’ does not match original declaration
#  367 | device_(gs_lp9100_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:270:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  270 | gx_device_escv far_data gs_lp9100_device  = esmv_device_body("lp9100");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:270:25: note: ‘gs_lp9100_device’ was previously declared here
#  365|   device_(gs_lp9000b_device)
#  366|   device_(gs_lp9000c_device)
#  367|-> device_(gs_lp9100_device)
#  368|   device_(gs_lp9200b_device)
#  369|   device_(gs_lp9200c_device)

Error: COMPILER_WARNING (CWE-704): [#def803]
ghostscript-10.05.1/soobj/gconfig.h:368:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200b_device’ does not match original declaration
#  368 | device_(gs_lp9200b_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:271:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  271 | gx_device_escv far_data gs_lp9200b_device = esmv_device_body("lp9200b");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:271:25: note: ‘gs_lp9200b_device’ was previously declared here
#  366|   device_(gs_lp9000c_device)
#  367|   device_(gs_lp9100_device)
#  368|-> device_(gs_lp9200b_device)
#  369|   device_(gs_lp9200c_device)
#  370|   device_(gs_lp9300_device)

Error: COMPILER_WARNING (CWE-704): [#def804]
ghostscript-10.05.1/soobj/gconfig.h:369:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200c_device’ does not match original declaration
#  369 | device_(gs_lp9200c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:294:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  294 | gx_device_escv far_data gs_lp9200c_device = escv_device_body("lp9200c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:294:25: note: ‘gs_lp9200c_device’ was previously declared here
#  367|   device_(gs_lp9100_device)
#  368|   device_(gs_lp9200b_device)
#  369|-> device_(gs_lp9200c_device)
#  370|   device_(gs_lp9300_device)
#  371|   device_(gs_lp9400_device)

Error: COMPILER_WARNING (CWE-704): [#def805]
ghostscript-10.05.1/soobj/gconfig.h:370:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9300_device’ does not match original declaration
#  370 | device_(gs_lp9300_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:272:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  272 | gx_device_escv far_data gs_lp9300_device  = esmv_device_body("lp9300");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:272:25: note: ‘gs_lp9300_device’ was previously declared here
#  368|   device_(gs_lp9200b_device)
#  369|   device_(gs_lp9200c_device)
#  370|-> device_(gs_lp9300_device)
#  371|   device_(gs_lp9400_device)
#  372|   device_(gs_lp9500c_device)

Error: COMPILER_WARNING (CWE-704): [#def806]
ghostscript-10.05.1/soobj/gconfig.h:371:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9400_device’ does not match original declaration
#  371 | device_(gs_lp9400_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:273:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  273 | gx_device_escv far_data gs_lp9400_device  = esmv_device_body("lp9400");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:273:25: note: ‘gs_lp9400_device’ was previously declared here
#  369|   device_(gs_lp9200c_device)
#  370|   device_(gs_lp9300_device)
#  371|-> device_(gs_lp9400_device)
#  372|   device_(gs_lp9500c_device)
#  373|   device_(gs_lp9600_device)

Error: COMPILER_WARNING (CWE-704): [#def807]
ghostscript-10.05.1/soobj/gconfig.h:372:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9500c_device’ does not match original declaration
#  372 | device_(gs_lp9500c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:295:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  295 | gx_device_escv far_data gs_lp9500c_device = escv_device_body("lp9500c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:295:25: note: ‘gs_lp9500c_device’ was previously declared here
#  370|   device_(gs_lp9300_device)
#  371|   device_(gs_lp9400_device)
#  372|-> device_(gs_lp9500c_device)
#  373|   device_(gs_lp9600_device)
#  374|   device_(gs_lp9600s_device)

Error: COMPILER_WARNING (CWE-704): [#def808]
ghostscript-10.05.1/soobj/gconfig.h:373:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600_device’ does not match original declaration
#  373 | device_(gs_lp9600_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:274:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  274 | gx_device_escv far_data gs_lp9600_device  = esmv_device_body("lp9600");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:274:25: note: ‘gs_lp9600_device’ was previously declared here
#  371|   device_(gs_lp9400_device)
#  372|   device_(gs_lp9500c_device)
#  373|-> device_(gs_lp9600_device)
#  374|   device_(gs_lp9600s_device)
#  375|   device_(gs_lp9800c_device)

Error: COMPILER_WARNING (CWE-704): [#def809]
ghostscript-10.05.1/soobj/gconfig.h:374:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600s_device’ does not match original declaration
#  374 | device_(gs_lp9600s_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:275:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  275 | gx_device_escv far_data gs_lp9600s_device = esmv_device_body("lp9600s");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:275:25: note: ‘gs_lp9600s_device’ was previously declared here
#  372|   device_(gs_lp9500c_device)
#  373|   device_(gs_lp9600_device)
#  374|-> device_(gs_lp9600s_device)
#  375|   device_(gs_lp9800c_device)
#  376|   device_(gs_lps4500_device)

Error: COMPILER_WARNING (CWE-704): [#def810]
ghostscript-10.05.1/soobj/gconfig.h:375:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9800c_device’ does not match original declaration
#  375 | device_(gs_lp9800c_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:296:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  296 | gx_device_escv far_data gs_lp9800c_device = escv_device_body("lp9800c");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:296:25: note: ‘gs_lp9800c_device’ was previously declared here
#  373|   device_(gs_lp9600_device)
#  374|   device_(gs_lp9600s_device)
#  375|-> device_(gs_lp9800c_device)
#  376|   device_(gs_lps4500_device)
#  377|   device_(gs_lps6500_device)

Error: COMPILER_WARNING (CWE-704): [#def811]
ghostscript-10.05.1/soobj/gconfig.h:376:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps4500_device’ does not match original declaration
#  376 | device_(gs_lps4500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:276:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  276 | gx_device_escv far_data gs_lps4500_device = esmv_device_body("lps4500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:276:25: note: ‘gs_lps4500_device’ was previously declared here
#  374|   device_(gs_lp9600s_device)
#  375|   device_(gs_lp9800c_device)
#  376|-> device_(gs_lps4500_device)
#  377|   device_(gs_lps6500_device)
#  378|   device_(gs_lq850_device)

Error: COMPILER_WARNING (CWE-704): [#def812]
ghostscript-10.05.1/soobj/gconfig.h:377:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps6500_device’ does not match original declaration
#  377 | device_(gs_lps6500_device)
#      | ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:297:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
#  297 | gx_device_escv far_data gs_lps6500_device = escv_device_body("lps6500");
#      |                         ^
ghostscript-10.05.1/contrib/eplaser/gdevescv.c:297:25: note: ‘gs_lps6500_device’ was previously declared here
#  375|   device_(gs_lp9800c_device)
#  376|   device_(gs_lps4500_device)
#  377|-> device_(gs_lps6500_device)
#  378|   device_(gs_lq850_device)
#  379|   device_(gs_lxm3200_device)

Error: COMPILER_WARNING (CWE-704): [#def813]
ghostscript-10.05.1/soobj/gconfig.h:378:1: warning[-Wlto-type-mismatch]: type of ‘gs_lq850_device’ does not match original declaration
#  378 | device_(gs_lq850_device)
#      | ^
ghostscript-10.05.1/devices/gdevdm24.c:38:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   38 | const gx_device_printer gs_lq850_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevdm24.c:38:25: note: ‘gs_lq850_device’ was previously declared here
#  376|   device_(gs_lps4500_device)
#  377|   device_(gs_lps6500_device)
#  378|-> device_(gs_lq850_device)
#  379|   device_(gs_lxm3200_device)
#  380|   device_(gs_lxm5700m_device)

Error: COMPILER_WARNING (CWE-704): [#def814]
ghostscript-10.05.1/soobj/gconfig.h:379:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm3200_device’ does not match original declaration
#  379 | device_(gs_lxm3200_device)
#      | ^
ghostscript-10.05.1/contrib/gdevlx32.c:318:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#  318 | lxm_device far_data gs_lxm3200_device =
#      |                     ^
ghostscript-10.05.1/contrib/gdevlx32.c:318:21: note: ‘gs_lxm3200_device’ was previously declared here
#  377|   device_(gs_lps6500_device)
#  378|   device_(gs_lq850_device)
#  379|-> device_(gs_lxm3200_device)
#  380|   device_(gs_lxm5700m_device)
#  381|   device_(gs_m8510_device)

Error: COMPILER_WARNING (CWE-704): [#def815]
ghostscript-10.05.1/soobj/gconfig.h:380:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm5700m_device’ does not match original declaration
#  380 | device_(gs_lxm5700m_device)
#      | ^
ghostscript-10.05.1/devices/gdevlxm.c:62:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
#   62 | lxm_device far_data gs_lxm5700m_device = {
#      |                     ^
ghostscript-10.05.1/devices/gdevlxm.c:62:21: note: ‘gs_lxm5700m_device’ was previously declared here
#  378|   device_(gs_lq850_device)
#  379|   device_(gs_lxm3200_device)
#  380|-> device_(gs_lxm5700m_device)
#  381|   device_(gs_m8510_device)
#  382|   device_(gs_md1xMono_device)

Error: COMPILER_WARNING (CWE-704): [#def816]
ghostscript-10.05.1/soobj/gconfig.h:381:1: warning[-Wlto-type-mismatch]: type of ‘gs_m8510_device’ does not match original declaration
#  381 | device_(gs_m8510_device)
#      | ^
ghostscript-10.05.1/devices/gdev8510.c:26:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   26 | const gx_device_printer far_data gs_m8510_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdev8510.c:26:34: note: ‘gs_m8510_device’ was previously declared here
#  379|   device_(gs_lxm3200_device)
#  380|   device_(gs_lxm5700m_device)
#  381|-> device_(gs_m8510_device)
#  382|   device_(gs_md1xMono_device)
#  383|   device_(gs_md2k_device)

Error: COMPILER_WARNING (CWE-704): [#def817]
ghostscript-10.05.1/soobj/gconfig.h:382:1: warning[-Wlto-type-mismatch]: type of ‘gs_md1xMono_device’ does not match original declaration
#  382 | device_(gs_md1xMono_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:86:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   86 | gx_device_printer far_data gs_md1xMono_device =
#      |                            ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:86:28: note: ‘gs_md1xMono_device’ was previously declared here
#  380|   device_(gs_lxm5700m_device)
#  381|   device_(gs_m8510_device)
#  382|-> device_(gs_md1xMono_device)
#  383|   device_(gs_md2k_device)
#  384|   device_(gs_md50Eco_device)

Error: COMPILER_WARNING (CWE-704): [#def818]
ghostscript-10.05.1/soobj/gconfig.h:383:1: warning[-Wlto-type-mismatch]: type of ‘gs_md2k_device’ does not match original declaration
#  383 | device_(gs_md2k_device)
#      | ^
ghostscript-10.05.1/contrib/gdevmd2k.c:95:25: note: type ‘struct gx_device_alps’ should match type ‘struct gx_device’
#   95 | gx_device_alps far_data gs_md2k_device = alps_device("md2k", md2k_print_page);
#      |                         ^
ghostscript-10.05.1/contrib/gdevmd2k.c:95:25: note: ‘gs_md2k_device’ was previously declared here
#  381|   device_(gs_m8510_device)
#  382|   device_(gs_md1xMono_device)
#  383|-> device_(gs_md2k_device)
#  384|   device_(gs_md50Eco_device)
#  385|   device_(gs_md50Mono_device)

Error: COMPILER_WARNING (CWE-704): [#def819]
ghostscript-10.05.1/soobj/gconfig.h:384:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Eco_device’ does not match original declaration
#  384 | device_(gs_md50Eco_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:77:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   77 | gx_device_printer far_data gs_md50Eco_device =
#      |                            ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:77:28: note: ‘gs_md50Eco_device’ was previously declared here
#  382|   device_(gs_md1xMono_device)
#  383|   device_(gs_md2k_device)
#  384|-> device_(gs_md50Eco_device)
#  385|   device_(gs_md50Mono_device)
#  386|   device_(gs_md5k_device)

Error: COMPILER_WARNING (CWE-704): [#def820]
ghostscript-10.05.1/soobj/gconfig.h:385:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Mono_device’ does not match original declaration
#  385 | device_(gs_md50Mono_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:68:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   68 | gx_device_printer far_data gs_md50Mono_device =
#      |                            ^
ghostscript-10.05.1/contrib/japanese/gdevalps.c:68:28: note: ‘gs_md50Mono_device’ was previously declared here
#  383|   device_(gs_md2k_device)
#  384|   device_(gs_md50Eco_device)
#  385|-> device_(gs_md50Mono_device)
#  386|   device_(gs_md5k_device)
#  387|   device_(gs_mj500c_device)

Error: COMPILER_WARNING (CWE-704): [#def821]
ghostscript-10.05.1/soobj/gconfig.h:386:1: warning[-Wlto-type-mismatch]: type of ‘gs_md5k_device’ does not match original declaration
#  386 | device_(gs_md5k_device)
#      | ^
ghostscript-10.05.1/contrib/gdevmd2k.c:96:25: note: type ‘struct gx_device_alps’ should match type ‘struct gx_device’
#   96 | gx_device_alps far_data gs_md5k_device = alps_device("md5k", md5k_print_page);
#      |                         ^
ghostscript-10.05.1/contrib/gdevmd2k.c:96:25: note: ‘gs_md5k_device’ was previously declared here
#  384|   device_(gs_md50Eco_device)
#  385|   device_(gs_md50Mono_device)
#  386|-> device_(gs_md5k_device)
#  387|   device_(gs_mj500c_device)
#  388|   device_(gs_mj6000c_device)

Error: COMPILER_WARNING (CWE-704): [#def822]
ghostscript-10.05.1/soobj/gconfig.h:387:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj500c_device’ does not match original declaration
#  387 | device_(gs_mj500c_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:265:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
#  265 | gx_device_mj far_data gs_mj500c_device =
#      |                       ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:265:23: note: ‘gs_mj500c_device’ was previously declared here
#  385|   device_(gs_md50Mono_device)
#  386|   device_(gs_md5k_device)
#  387|-> device_(gs_mj500c_device)
#  388|   device_(gs_mj6000c_device)
#  389|   device_(gs_mj700v2c_device)

Error: COMPILER_WARNING (CWE-704): [#def823]
ghostscript-10.05.1/soobj/gconfig.h:388:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj6000c_device’ does not match original declaration
#  388 | device_(gs_mj6000c_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:270:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
#  270 | gx_device_mj far_data gs_mj6000c_device =
#      |                       ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:270:23: note: ‘gs_mj6000c_device’ was previously declared here
#  386|   device_(gs_md5k_device)
#  387|   device_(gs_mj500c_device)
#  388|-> device_(gs_mj6000c_device)
#  389|   device_(gs_mj700v2c_device)
#  390|   device_(gs_mj8000c_device)

Error: COMPILER_WARNING (CWE-704): [#def824]
ghostscript-10.05.1/soobj/gconfig.h:389:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj700v2c_device’ does not match original declaration
#  389 | device_(gs_mj700v2c_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:259:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
#  259 | gx_device_mj far_data gs_mj700v2c_device =
#      |                       ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:259:23: note: ‘gs_mj700v2c_device’ was previously declared here
#  387|   device_(gs_mj500c_device)
#  388|   device_(gs_mj6000c_device)
#  389|-> device_(gs_mj700v2c_device)
#  390|   device_(gs_mj8000c_device)
#  391|   device_(gs_ml600_device)

Error: COMPILER_WARNING (CWE-704): [#def825]
ghostscript-10.05.1/soobj/gconfig.h:390:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj8000c_device’ does not match original declaration
#  390 | device_(gs_mj8000c_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:275:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
#  275 | gx_device_mj far_data gs_mj8000c_device =
#      |                       ^
ghostscript-10.05.1/contrib/japanese/gdevmjc.c:275:23: note: ‘gs_mj8000c_device’ was previously declared here
#  388|   device_(gs_mj6000c_device)
#  389|   device_(gs_mj700v2c_device)
#  390|-> device_(gs_mj8000c_device)
#  391|   device_(gs_ml600_device)
#  392|   device_(gs_necp6_device)

Error: COMPILER_WARNING (CWE-704): [#def826]
ghostscript-10.05.1/soobj/gconfig.h:391:1: warning[-Wlto-type-mismatch]: type of ‘gs_ml600_device’ does not match original declaration
#  391 | device_(gs_ml600_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevml6.c:44:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   44 | gx_device_printer gs_ml600_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevml6.c:44:19: note: ‘gs_ml600_device’ was previously declared here
#  389|   device_(gs_mj700v2c_device)
#  390|   device_(gs_mj8000c_device)
#  391|-> device_(gs_ml600_device)
#  392|   device_(gs_necp6_device)
#  393|   device_(gs_npdl_device)

Error: COMPILER_WARNING (CWE-704): [#def827]
ghostscript-10.05.1/soobj/gconfig.h:392:1: warning[-Wlto-type-mismatch]: type of ‘gs_necp6_device’ does not match original declaration
#  392 | device_(gs_necp6_device)
#      | ^
ghostscript-10.05.1/devices/gdevdm24.c:27:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   27 | const gx_device_printer far_data gs_necp6_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevdm24.c:27:34: note: ‘gs_necp6_device’ was previously declared here
#  390|   device_(gs_mj8000c_device)
#  391|   device_(gs_ml600_device)
#  392|-> device_(gs_necp6_device)
#  393|   device_(gs_npdl_device)
#  394|   #endif

Error: COMPILER_WARNING (CWE-704): [#def828]
ghostscript-10.05.1/soobj/gconfig.h:393:1: warning[-Wlto-type-mismatch]: type of ‘gs_npdl_device’ does not match original declaration
#  393 | device_(gs_npdl_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevnpdl.c:132:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
#  132 | gx_device_lprn far_data gs_npdl_device =
#      |                         ^
ghostscript-10.05.1/contrib/japanese/gdevnpdl.c:132:25: note: ‘gs_npdl_device’ was previously declared here
#  391|   device_(gs_ml600_device)
#  392|   device_(gs_necp6_device)
#  393|-> device_(gs_npdl_device)
#  394|   #endif
#  395|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def829]
ghostscript-10.05.1/soobj/gconfig.h:396:1: warning[-Wlto-type-mismatch]: type of ‘gs_oce9050_device’ does not match original declaration
#  396 | device2_(gs_oce9050_device)
#      | ^
ghostscript-10.05.1/devices/gdevdjet.c:234:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
#  234 | const gx_device_hpjet gs_oce9050_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevdjet.c:234:23: note: ‘gs_oce9050_device’ was previously declared here
#  394|   #endif
#  395|   #ifdef device2_
#  396|-> device2_(gs_oce9050_device)
#  397|   #endif
#  398|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def830]
ghostscript-10.05.1/soobj/gconfig.h:399:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki182_device’ does not match original declaration
#  399 | device_(gs_oki182_device)
#      | ^
ghostscript-10.05.1/devices/gdevo182.c:67:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   67 | const gx_device_printer far_data gs_oki182_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevo182.c:67:34: note: ‘gs_oki182_device’ was previously declared here
#  397|   #endif
#  398|   #ifdef device_
#  399|-> device_(gs_oki182_device)
#  400|   device_(gs_oki4w_device)
#  401|   device_(gs_okiibm_device)

Error: COMPILER_WARNING (CWE-704): [#def831]
ghostscript-10.05.1/soobj/gconfig.h:400:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki4w_device’ does not match original declaration
#  400 | device_(gs_oki4w_device)
#      | ^
ghostscript-10.05.1/contrib/gdevop4w.c:106:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  106 | gx_device_printer far_data gs_oki4w_device =
#      |                            ^
ghostscript-10.05.1/contrib/gdevop4w.c:106:28: note: ‘gs_oki4w_device’ was previously declared here
#  398|   #ifdef device_
#  399|   device_(gs_oki182_device)
#  400|-> device_(gs_oki4w_device)
#  401|   device_(gs_okiibm_device)
#  402|   device_(gs_oprp_device)

Error: COMPILER_WARNING (CWE-704): [#def832]
ghostscript-10.05.1/soobj/gconfig.h:401:1: warning[-Wlto-type-mismatch]: type of ‘gs_okiibm_device’ does not match original declaration
#  401 | device_(gs_okiibm_device)
#      | ^
ghostscript-10.05.1/devices/gdevokii.c:77:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   77 | const gx_device_printer far_data gs_okiibm_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevokii.c:77:34: note: ‘gs_okiibm_device’ was previously declared here
#  399|   device_(gs_oki182_device)
#  400|   device_(gs_oki4w_device)
#  401|-> device_(gs_okiibm_device)
#  402|   device_(gs_oprp_device)
#  403|   device_(gs_opvp_device)

Error: COMPILER_WARNING (CWE-704): [#def833]
ghostscript-10.05.1/soobj/gconfig.h:402:1: warning[-Wlto-type-mismatch]: type of ‘gs_oprp_device’ does not match original declaration
#  402 | device_(gs_oprp_device)
#      | ^
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:503:22: note: type ‘const struct gx_device_oprp’ should match type ‘struct gx_device’
#  503 | const gx_device_oprp gs_oprp_device =
#      |                      ^
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:503:22: note: ‘gs_oprp_device’ was previously declared here
#  400|   device_(gs_oki4w_device)
#  401|   device_(gs_okiibm_device)
#  402|-> device_(gs_oprp_device)
#  403|   device_(gs_opvp_device)
#  404|   device_(gs_paintjet_device)

Error: COMPILER_WARNING (CWE-704): [#def834]
ghostscript-10.05.1/soobj/gconfig.h:403:1: warning[-Wlto-type-mismatch]: type of ‘gs_opvp_device’ does not match original declaration
#  403 | device_(gs_opvp_device)
#      | ^
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:458:33: note: type ‘const struct gx_device_opvp’ should match type ‘struct gx_device’
#  458 | const   gx_device_opvp          gs_opvp_device =
#      |                                 ^
ghostscript-10.05.1/contrib/opvp/gdevopvp.c:458:33: note: ‘gs_opvp_device’ was previously declared here
#  401|   device_(gs_okiibm_device)
#  402|   device_(gs_oprp_device)
#  403|-> device_(gs_opvp_device)
#  404|   device_(gs_paintjet_device)
#  405|   device_(gs_pcl3_device)

Error: COMPILER_WARNING (CWE-704): [#def835]
ghostscript-10.05.1/soobj/gconfig.h:404:1: warning[-Wlto-type-mismatch]: type of ‘gs_paintjet_device’ does not match original declaration
#  404 | device_(gs_paintjet_device)
#      | ^
ghostscript-10.05.1/devices/gdevpjet.c:55:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   55 | const gx_device_printer far_data gs_paintjet_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevpjet.c:55:34: note: ‘gs_paintjet_device’ was previously declared here
#  402|   device_(gs_oprp_device)
#  403|   device_(gs_opvp_device)
#  404|-> device_(gs_paintjet_device)
#  405|   device_(gs_pcl3_device)
#  406|   device_(gs_photoex_device)

Error: COMPILER_WARNING (CWE-704): [#def836]
ghostscript-10.05.1/soobj/gconfig.h:405:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcl3_device’ does not match original declaration
#  405 | device_(gs_pcl3_device)
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:162:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
#  162 | pcl3_device_instance(pcl3, pcl3_generic_new);
#      | ^
ghostscript-10.05.1/contrib/pcl3/src/gdevpcl3.c:162:1: note: ‘gs_pcl3_device’ was previously declared here
#  403|   device_(gs_opvp_device)
#  404|   device_(gs_paintjet_device)
#  405|-> device_(gs_pcl3_device)
#  406|   device_(gs_photoex_device)
#  407|   device_(gs_picty180_device)

Error: COMPILER_WARNING (CWE-704): [#def837]
ghostscript-10.05.1/soobj/gconfig.h:406:1: warning[-Wlto-type-mismatch]: type of ‘gs_photoex_device’ does not match original declaration
#  406 | device_(gs_photoex_device)
#      | ^
ghostscript-10.05.1/devices/gdevphex.c:1030:28: note: type ‘struct gx_photoex_device’ should match type ‘struct gx_device’
# 1030 | gx_photoex_device far_data gs_photoex_device = {
#      |                            ^
ghostscript-10.05.1/devices/gdevphex.c:1030:28: note: ‘gs_photoex_device’ was previously declared here
#  404|   device_(gs_paintjet_device)
#  405|   device_(gs_pcl3_device)
#  406|-> device_(gs_photoex_device)
#  407|   device_(gs_picty180_device)
#  408|   device_(gs_pj_device)

Error: COMPILER_WARNING (CWE-704): [#def838]
ghostscript-10.05.1/soobj/gconfig.h:407:1: warning[-Wlto-type-mismatch]: type of ‘gs_picty180_device’ does not match original declaration
#  407 | device_(gs_picty180_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:613:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
#  613 | gx_device_cdj far_data gs_picty180_device =
#      |                        ^
ghostscript-10.05.1/devices/gdevcdj.c:613:24: note: ‘gs_picty180_device’ was previously declared here
#  405|   device_(gs_pcl3_device)
#  406|   device_(gs_photoex_device)
#  407|-> device_(gs_picty180_device)
#  408|   device_(gs_pj_device)
#  409|   device_(gs_pjetxl_device)

Error: COMPILER_WARNING (CWE-704): [#def839]
ghostscript-10.05.1/soobj/gconfig.h:408:1: warning[-Wlto-type-mismatch]: type of ‘gs_pj_device’ does not match original declaration
#  408 | device_(gs_pj_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:637:23: note: type ‘struct gx_device_pj’ should match type ‘struct gx_device’
#  637 | gx_device_pj far_data gs_pj_device =
#      |                       ^
ghostscript-10.05.1/devices/gdevcdj.c:637:23: note: ‘gs_pj_device’ was previously declared here
#  406|   device_(gs_photoex_device)
#  407|   device_(gs_picty180_device)
#  408|-> device_(gs_pj_device)
#  409|   device_(gs_pjetxl_device)
#  410|   device_(gs_pjxl_device)

Error: COMPILER_WARNING (CWE-704): [#def840]
ghostscript-10.05.1/soobj/gconfig.h:409:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjetxl_device’ does not match original declaration
#  409 | device_(gs_pjetxl_device)
#      | ^
ghostscript-10.05.1/devices/gdevpjet.c:63:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   63 | const gx_device_printer far_data gs_pjetxl_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevpjet.c:63:34: note: ‘gs_pjetxl_device’ was previously declared here
#  407|   device_(gs_picty180_device)
#  408|   device_(gs_pj_device)
#  409|-> device_(gs_pjetxl_device)
#  410|   device_(gs_pjxl_device)
#  411|   device_(gs_pjxl300_device)

Error: COMPILER_WARNING (CWE-704): [#def841]
ghostscript-10.05.1/soobj/gconfig.h:410:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl_device’ does not match original declaration
#  410 | device_(gs_pjxl_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:641:25: note: type ‘struct gx_device_pjxl’ should match type ‘struct gx_device’
#  641 | gx_device_pjxl far_data gs_pjxl_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevcdj.c:641:25: note: ‘gs_pjxl_device’ was previously declared here
#  408|   device_(gs_pj_device)
#  409|   device_(gs_pjetxl_device)
#  410|-> device_(gs_pjxl_device)
#  411|   device_(gs_pjxl300_device)
#  412|   device_(gs_pr1000_device)

Error: COMPILER_WARNING (CWE-704): [#def842]
ghostscript-10.05.1/soobj/gconfig.h:411:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl300_device’ does not match original declaration
#  411 | device_(gs_pjxl300_device)
#      | ^
ghostscript-10.05.1/devices/gdevcdj.c:645:25: note: type ‘struct gx_device_pjxl’ should match type ‘struct gx_device’
#  645 | gx_device_pjxl far_data gs_pjxl300_device =
#      |                         ^
ghostscript-10.05.1/devices/gdevcdj.c:645:25: note: ‘gs_pjxl300_device’ was previously declared here
#  409|   device_(gs_pjetxl_device)
#  410|   device_(gs_pjxl_device)
#  411|-> device_(gs_pjxl300_device)
#  412|   device_(gs_pr1000_device)
#  413|   device_(gs_pr1000_4_device)

Error: COMPILER_WARNING (CWE-704): [#def843]
ghostscript-10.05.1/soobj/gconfig.h:412:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_device’ does not match original declaration
#  412 | device_(gs_pr1000_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:52:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   52 | gx_device_printer gs_pr1000_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:52:19: note: ‘gs_pr1000_device’ was previously declared here
#  410|   device_(gs_pjxl_device)
#  411|   device_(gs_pjxl300_device)
#  412|-> device_(gs_pr1000_device)
#  413|   device_(gs_pr1000_4_device)
#  414|   device_(gs_pr150_device)

Error: COMPILER_WARNING (CWE-704): [#def844]
ghostscript-10.05.1/soobj/gconfig.h:413:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_4_device’ does not match original declaration
#  413 | device_(gs_pr1000_4_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:70:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   70 | gx_device_printer gs_pr1000_4_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:70:19: note: ‘gs_pr1000_4_device’ was previously declared here
#  411|   device_(gs_pjxl300_device)
#  412|   device_(gs_pr1000_device)
#  413|-> device_(gs_pr1000_4_device)
#  414|   device_(gs_pr150_device)
#  415|   device_(gs_pr201_device)

Error: COMPILER_WARNING (CWE-704): [#def845]
ghostscript-10.05.1/soobj/gconfig.h:414:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr150_device’ does not match original declaration
#  414 | device_(gs_pr150_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:61:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   61 | gx_device_printer gs_pr150_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:61:19: note: ‘gs_pr150_device’ was previously declared here
#  412|   device_(gs_pr1000_device)
#  413|   device_(gs_pr1000_4_device)
#  414|-> device_(gs_pr150_device)
#  415|   device_(gs_pr201_device)
#  416|   #endif

Error: COMPILER_WARNING (CWE-704): [#def846]
ghostscript-10.05.1/soobj/gconfig.h:415:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr201_device’ does not match original declaration
#  415 | device_(gs_pr201_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:43:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   43 | gx_device_printer gs_pr201_device =
#      |                   ^
ghostscript-10.05.1/contrib/japanese/gdevp201.c:43:19: note: ‘gs_pr201_device’ was previously declared here
#  413|   device_(gs_pr1000_4_device)
#  414|   device_(gs_pr150_device)
#  415|-> device_(gs_pr201_device)
#  416|   #endif
#  417|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def847]
ghostscript-10.05.1/soobj/gconfig.h:418:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlcolor_device’ does not match original declaration
#  418 | device2_(gs_pxlcolor_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevpx.c:200:23: note: type ‘const struct gx_device_pclxl’ should match type ‘const struct gx_device’
#  200 | const gx_device_pclxl gs_pxlcolor_device = {
#      |                       ^
ghostscript-10.05.1/devices/vector/gdevpx.c:200:23: note: ‘gs_pxlcolor_device’ was previously declared here
#  416|   #endif
#  417|   #ifdef device2_
#  418|-> device2_(gs_pxlcolor_device)
#  419|   device2_(gs_pxlmono_device)
#  420|   #endif

Error: COMPILER_WARNING (CWE-704): [#def848]
ghostscript-10.05.1/soobj/gconfig.h:419:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlmono_device’ does not match original declaration
#  419 | device2_(gs_pxlmono_device)
#      | ^
ghostscript-10.05.1/devices/vector/gdevpx.c:196:23: note: type ‘const struct gx_device_pclxl’ should match type ‘const struct gx_device’
#  196 | const gx_device_pclxl gs_pxlmono_device = {
#      |                       ^
ghostscript-10.05.1/devices/vector/gdevpx.c:196:23: note: ‘gs_pxlmono_device’ was previously declared here
#  417|   #ifdef device2_
#  418|   device2_(gs_pxlcolor_device)
#  419|-> device2_(gs_pxlmono_device)
#  420|   #endif
#  421|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def849]
ghostscript-10.05.1/soobj/gconfig.h:422:1: warning[-Wlto-type-mismatch]: type of ‘gs_r4081_device’ does not match original declaration
#  422 | device_(gs_r4081_device)
#      | ^
ghostscript-10.05.1/devices/gdev4081.c:24:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   24 | const gx_device_printer far_data gs_r4081_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdev4081.c:24:34: note: ‘gs_r4081_device’ was previously declared here
#  420|   #endif
#  421|   #ifdef device_
#  422|-> device_(gs_r4081_device)
#  423|   device_(gs_rinkj_device)
#  424|   device_(gs_rpdl_device)

Error: COMPILER_WARNING (CWE-704): [#def850]
ghostscript-10.05.1/soobj/gconfig.h:423:1: warning[-Wlto-type-mismatch]: type of ‘gs_rinkj_device’ does not match original declaration
#  423 | device_(gs_rinkj_device)
#      | ^
ghostscript-10.05.1/devices/gdevrinkj.c:145:20: note: type ‘const struct rinkj_device’ should match type ‘struct gx_device’
#  145 | const rinkj_device gs_rinkj_device =
#      |                    ^
ghostscript-10.05.1/devices/gdevrinkj.c:145:20: note: ‘gs_rinkj_device’ was previously declared here
#  421|   #ifdef device_
#  422|   device_(gs_r4081_device)
#  423|-> device_(gs_rinkj_device)
#  424|   device_(gs_rpdl_device)
#  425|   device_(gs_samsunggdi_device)

Error: COMPILER_WARNING (CWE-704): [#def851]
ghostscript-10.05.1/soobj/gconfig.h:424:1: warning[-Wlto-type-mismatch]: type of ‘gs_rpdl_device’ does not match original declaration
#  424 | device_(gs_rpdl_device)
#      | ^
ghostscript-10.05.1/contrib/japanese/gdevrpdl.c:48:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
#   48 | gx_device_lprn far_data gs_rpdl_device =
#      |                         ^
ghostscript-10.05.1/contrib/japanese/gdevrpdl.c:48:25: note: ‘gs_rpdl_device’ was previously declared here
#  422|   device_(gs_r4081_device)
#  423|   device_(gs_rinkj_device)
#  424|-> device_(gs_rpdl_device)
#  425|   device_(gs_samsunggdi_device)
#  426|   device_(gs_sj48_device)

Error: COMPILER_WARNING (CWE-704): [#def852]
ghostscript-10.05.1/soobj/gconfig.h:425:1: warning[-Wlto-type-mismatch]: type of ‘gs_samsunggdi_device’ does not match original declaration
#  425 | device_(gs_samsunggdi_device)
#      | ^
ghostscript-10.05.1/contrib/gdevgdi.c:114:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#  114 | gx_device_printer far_data gs_samsunggdi_device =
#      |                            ^
ghostscript-10.05.1/contrib/gdevgdi.c:114:28: note: ‘gs_samsunggdi_device’ was previously declared here
#  423|   device_(gs_rinkj_device)
#  424|   device_(gs_rpdl_device)
#  425|-> device_(gs_samsunggdi_device)
#  426|   device_(gs_sj48_device)
#  427|   device_(gs_st800_device)

Error: COMPILER_WARNING (CWE-704): [#def853]
ghostscript-10.05.1/soobj/gconfig.h:426:1: warning[-Wlto-type-mismatch]: type of ‘gs_sj48_device’ does not match original declaration
#  426 | device_(gs_sj48_device)
#      | ^
ghostscript-10.05.1/devices/gdevsj48.c:43:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   43 | gx_device_printer far_data gs_sj48_device =
#      |                            ^
ghostscript-10.05.1/devices/gdevsj48.c:43:28: note: ‘gs_sj48_device’ was previously declared here
#  424|   device_(gs_rpdl_device)
#  425|   device_(gs_samsunggdi_device)
#  426|-> device_(gs_sj48_device)
#  427|   device_(gs_st800_device)
#  428|   device_(gs_stcolor_device)

Error: COMPILER_WARNING (CWE-704): [#def854]
ghostscript-10.05.1/soobj/gconfig.h:427:1: warning[-Wlto-type-mismatch]: type of ‘gs_st800_device’ does not match original declaration
#  427 | device_(gs_st800_device)
#      | ^
ghostscript-10.05.1/devices/gdevescp.c:89:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   89 | const gx_device_printer far_data gs_st800_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevescp.c:89:34: note: ‘gs_st800_device’ was previously declared here
#  425|   device_(gs_samsunggdi_device)
#  426|   device_(gs_sj48_device)
#  427|-> device_(gs_st800_device)
#  428|   device_(gs_stcolor_device)
#  429|   device_(gs_t4693d2_device)

Error: COMPILER_WARNING (CWE-704): [#def855]
ghostscript-10.05.1/soobj/gconfig.h:428:1: warning[-Wlto-type-mismatch]: type of ‘gs_stcolor_device’ does not match original declaration
#  428 | device_(gs_stcolor_device)
#      | ^
ghostscript-10.05.1/devices/gdevstc.c:163:25: note: type ‘struct stcolor_device’ should match type ‘struct gx_device’
#  163 | stcolor_device far_data gs_stcolor_device = {
#      |                         ^
ghostscript-10.05.1/devices/gdevstc.c:163:25: note: ‘gs_stcolor_device’ was previously declared here
#  426|   device_(gs_sj48_device)
#  427|   device_(gs_st800_device)
#  428|-> device_(gs_stcolor_device)
#  429|   device_(gs_t4693d2_device)
#  430|   device_(gs_t4693d4_device)

Error: COMPILER_WARNING (CWE-704): [#def856]
ghostscript-10.05.1/soobj/gconfig.h:429:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d2_device’ does not match original declaration
#  429 | device_(gs_t4693d2_device)
#      | ^
ghostscript-10.05.1/devices/gdev4693.c:44:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   44 | const gx_device_printer gs_t4693d2_device = t4693d_prn_device("t4693d2",8, 3);
#      |                         ^
ghostscript-10.05.1/devices/gdev4693.c:44:25: note: ‘gs_t4693d2_device’ was previously declared here
#  427|   device_(gs_st800_device)
#  428|   device_(gs_stcolor_device)
#  429|-> device_(gs_t4693d2_device)
#  430|   device_(gs_t4693d4_device)
#  431|   device_(gs_t4693d8_device)

Error: COMPILER_WARNING (CWE-704): [#def857]
ghostscript-10.05.1/soobj/gconfig.h:430:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d4_device’ does not match original declaration
#  430 | device_(gs_t4693d4_device)
#      | ^
ghostscript-10.05.1/devices/gdev4693.c:45:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   45 | const gx_device_printer gs_t4693d4_device = t4693d_prn_device("t4693d4",16, 15);
#      |                         ^
ghostscript-10.05.1/devices/gdev4693.c:45:25: note: ‘gs_t4693d4_device’ was previously declared here
#  428|   device_(gs_stcolor_device)
#  429|   device_(gs_t4693d2_device)
#  430|-> device_(gs_t4693d4_device)
#  431|   device_(gs_t4693d8_device)
#  432|   device_(gs_tek4696_device)

Error: COMPILER_WARNING (CWE-704): [#def858]
ghostscript-10.05.1/soobj/gconfig.h:431:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d8_device’ does not match original declaration
#  431 | device_(gs_t4693d8_device)
#      | ^
ghostscript-10.05.1/devices/gdev4693.c:46:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   46 | const gx_device_printer gs_t4693d8_device = t4693d_prn_device("t4693d8",24, 255);
#      |                         ^
ghostscript-10.05.1/devices/gdev4693.c:46:25: note: ‘gs_t4693d8_device’ was previously declared here
#  429|   device_(gs_t4693d2_device)
#  430|   device_(gs_t4693d4_device)
#  431|-> device_(gs_t4693d8_device)
#  432|   device_(gs_tek4696_device)
#  433|   device_(gs_uniprint_device)

Error: COMPILER_WARNING (CWE-704): [#def859]
ghostscript-10.05.1/soobj/gconfig.h:432:1: warning[-Wlto-type-mismatch]: type of ‘gs_tek4696_device’ does not match original declaration
#  432 | device_(gs_tek4696_device)
#      | ^
ghostscript-10.05.1/devices/gdevtknk.c:52:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
#   52 | const gx_device_printer far_data gs_tek4696_device =
#      |                                  ^
ghostscript-10.05.1/devices/gdevtknk.c:52:34: note: ‘gs_tek4696_device’ was previously declared here
#  430|   device_(gs_t4693d4_device)
#  431|   device_(gs_t4693d8_device)
#  432|-> device_(gs_tek4696_device)
#  433|   device_(gs_uniprint_device)
#  434|   device_(gs_xes_device)

Error: COMPILER_WARNING (CWE-704): [#def860]
ghostscript-10.05.1/soobj/gconfig.h:433:1: warning[-Wlto-type-mismatch]: type of ‘gs_uniprint_device’ does not match original declaration
#  433 | device_(gs_uniprint_device)
#      | ^
ghostscript-10.05.1/devices/gdevupd.c:248:21: note: type ‘struct upd_device’ should match type ‘struct gx_device’
#  248 | upd_device far_data gs_uniprint_device = { /** */
#      |                     ^
ghostscript-10.05.1/devices/gdevupd.c:248:21: note: ‘gs_uniprint_device’ was previously declared here
#  431|   device_(gs_t4693d8_device)
#  432|   device_(gs_tek4696_device)
#  433|-> device_(gs_uniprint_device)
#  434|   device_(gs_xes_device)
#  435|   #endif

Error: COMPILER_WARNING (CWE-704): [#def861]
ghostscript-10.05.1/soobj/gconfig.h:434:1: warning[-Wlto-type-mismatch]: type of ‘gs_xes_device’ does not match original declaration
#  434 | device_(gs_xes_device)
#      | ^
ghostscript-10.05.1/contrib/gdevxes.c:69:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
#   69 | gx_device_printer gs_xes_device =
#      |                   ^
ghostscript-10.05.1/contrib/gdevxes.c:69:19: note: ‘gs_xes_device’ was previously declared here
#  432|   device_(gs_tek4696_device)
#  433|   device_(gs_uniprint_device)
#  434|-> device_(gs_xes_device)
#  435|   #endif
#  436|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def862]
ghostscript-10.05.1/soobj/gconfig.h:437:1: warning[-Wlto-type-mismatch]: type of ‘gs_appleraster_device’ does not match original declaration
#  437 | device2_(gs_appleraster_device)
#      | ^
ghostscript-10.05.1/cups/gdevcups.c:486:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
#  486 | gx_device_cups  gs_appleraster_device = { gs_xxx_device("appleraster",
#      |                 ^
ghostscript-10.05.1/cups/gdevcups.c:486:17: note: ‘gs_appleraster_device’ was previously declared here
#  435|   #endif
#  436|   #ifdef device2_
#  437|-> device2_(gs_appleraster_device)
#  438|   device2_(gs_cups_device)
#  439|   device2_(gs_pwgraster_device)

Error: COMPILER_WARNING (CWE-704): [#def863]
ghostscript-10.05.1/soobj/gconfig.h:438:1: warning[-Wlto-type-mismatch]: type of ‘gs_cups_device’ does not match original declaration
#  438 | device2_(gs_cups_device)
#      | ^
ghostscript-10.05.1/cups/gdevcups.c:482:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
#  482 | gx_device_cups  gs_cups_device = { gs_xxx_device("cups", "") };
#      |                 ^
ghostscript-10.05.1/cups/gdevcups.c:482:17: note: ‘gs_cups_device’ was previously declared here
#  436|   #ifdef device2_
#  437|   device2_(gs_appleraster_device)
#  438|-> device2_(gs_cups_device)
#  439|   device2_(gs_pwgraster_device)
#  440|   device2_(gs_urf_device)

Error: COMPILER_WARNING (CWE-704): [#def864]
ghostscript-10.05.1/soobj/gconfig.h:439:1: warning[-Wlto-type-mismatch]: type of ‘gs_pwgraster_device’ does not match original declaration
#  439 | device2_(gs_pwgraster_device)
#      | ^
ghostscript-10.05.1/cups/gdevcups.c:483:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
#  483 | gx_device_cups  gs_pwgraster_device = { gs_xxx_device("pwgraster",
#      |                 ^
ghostscript-10.05.1/cups/gdevcups.c:483:17: note: ‘gs_pwgraster_device’ was previously declared here
#  437|   device2_(gs_appleraster_device)
#  438|   device2_(gs_cups_device)
#  439|-> device2_(gs_pwgraster_device)
#  440|   device2_(gs_urf_device)
#  441|   #endif

Error: COMPILER_WARNING (CWE-704): [#def865]
ghostscript-10.05.1/soobj/gconfig.h:440:1: warning[-Wlto-type-mismatch]: type of ‘gs_urf_device’ does not match original declaration
#  440 | device2_(gs_urf_device)
#      | ^
ghostscript-10.05.1/cups/gdevcups.c:488:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
#  488 | gx_device_cups  gs_urf_device = { gs_xxx_device("urf",
#      |                 ^
ghostscript-10.05.1/cups/gdevcups.c:488:17: note: ‘gs_urf_device’ was previously declared here
#  438|   device2_(gs_cups_device)
#  439|   device2_(gs_pwgraster_device)
#  440|-> device2_(gs_urf_device)
#  441|   #endif
#  442|   #ifdef device_

Error: COMPILER_WARNING (CWE-704): [#def866]
ghostscript-10.05.1/soobj/gconfig.h:443:1: warning[-Wlto-type-mismatch]: type of ‘gs_ijs_device’ does not match original declaration
#  443 | device_(gs_ijs_device)
#      | ^
ghostscript-10.05.1/devices/gdevijs.c:144:15: note: type ‘struct gx_device_ijs’ should match type ‘struct gx_device’
#  144 | gx_device_ijs gs_ijs_device =
#      |               ^
ghostscript-10.05.1/devices/gdevijs.c:144:15: note: ‘gs_ijs_device’ was previously declared here
#  441|   #endif
#  442|   #ifdef device_
#  443|-> device_(gs_ijs_device)
#  444|   #endif
#  445|   #ifdef device2_

Error: COMPILER_WARNING (CWE-704): [#def867]
ghostscript-10.05.1/soobj/gconfig.h:446:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16_device’ does not match original declaration
#  446 | device2_(gs_png16_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:120:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  120 | const gx_device_png gs_png16_device = {
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:120:21: note: ‘gs_png16_device’ was previously declared here
#  444|   #endif
#  445|   #ifdef device2_
#  446|-> device2_(gs_png16_device)
#  447|   device2_(gs_png16m_device)
#  448|   device2_(gs_png16malpha_device)

Error: COMPILER_WARNING (CWE-704): [#def868]
ghostscript-10.05.1/soobj/gconfig.h:447:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16m_device’ does not match original declaration
#  447 | device2_(gs_png16m_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:217:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  217 | const gx_device_png gs_png16m_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:217:21: note: ‘gs_png16m_device’ was previously declared here
#  445|   #ifdef device2_
#  446|   device2_(gs_png16_device)
#  447|-> device2_(gs_png16m_device)
#  448|   device2_(gs_png16malpha_device)
#  449|   device2_(gs_png256_device)

Error: COMPILER_WARNING (CWE-704): [#def869]
ghostscript-10.05.1/soobj/gconfig.h:448:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16malpha_device’ does not match original declaration
#  448 | device2_(gs_png16malpha_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:321:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
#  321 | const gx_device_pngalpha gs_png16malpha_device = {
#      |                          ^
ghostscript-10.05.1/devices/gdevpng.c:321:26: note: ‘gs_png16malpha_device’ was previously declared here
#  446|   device2_(gs_png16_device)
#  447|   device2_(gs_png16m_device)
#  448|-> device2_(gs_png16malpha_device)
#  449|   device2_(gs_png256_device)
#  450|   device2_(gs_png48_device)

Error: COMPILER_WARNING (CWE-704): [#def870]
ghostscript-10.05.1/soobj/gconfig.h:449:1: warning[-Wlto-type-mismatch]: type of ‘gs_png256_device’ does not match original declaration
#  449 | device2_(gs_png256_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:144:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  144 | const gx_device_png gs_png256_device = {
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:144:21: note: ‘gs_png256_device’ was previously declared here
#  447|   device2_(gs_png16m_device)
#  448|   device2_(gs_png16malpha_device)
#  449|-> device2_(gs_png256_device)
#  450|   device2_(gs_png48_device)
#  451|   device2_(gs_pngalpha_device)

Error: COMPILER_WARNING (CWE-704): [#def871]
ghostscript-10.05.1/soobj/gconfig.h:450:1: warning[-Wlto-type-mismatch]: type of ‘gs_png48_device’ does not match original declaration
#  450 | device2_(gs_png48_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:241:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  241 | const gx_device_png gs_png48_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:241:21: note: ‘gs_png48_device’ was previously declared here
#  448|   device2_(gs_png16malpha_device)
#  449|   device2_(gs_png256_device)
#  450|-> device2_(gs_png48_device)
#  451|   device2_(gs_pngalpha_device)
#  452|   device2_(gs_pnggray_device)

Error: COMPILER_WARNING (CWE-704): [#def872]
ghostscript-10.05.1/soobj/gconfig.h:451:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngalpha_device’ does not match original declaration
#  451 | device2_(gs_pngalpha_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:286:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
#  286 | const gx_device_pngalpha gs_pngalpha_device = {
#      |                          ^
ghostscript-10.05.1/devices/gdevpng.c:286:26: note: ‘gs_pngalpha_device’ was previously declared here
#  449|   device2_(gs_png256_device)
#  450|   device2_(gs_png48_device)
#  451|-> device2_(gs_pngalpha_device)
#  452|   device2_(gs_pnggray_device)
#  453|   device2_(gs_pngmono_device)

Error: COMPILER_WARNING (CWE-704): [#def873]
ghostscript-10.05.1/soobj/gconfig.h:452:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnggray_device’ does not match original declaration
#  452 | device2_(gs_pnggray_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:167:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  167 | const gx_device_png gs_pnggray_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:167:21: note: ‘gs_pnggray_device’ was previously declared here
#  450|   device2_(gs_png48_device)
#  451|   device2_(gs_pngalpha_device)
#  452|-> device2_(gs_pnggray_device)
#  453|   device2_(gs_pngmono_device)
#  454|   device2_(gs_pngmonod_device)

Error: COMPILER_WARNING (CWE-704): [#def874]
ghostscript-10.05.1/soobj/gconfig.h:453:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmono_device’ does not match original declaration
#  453 | device2_(gs_pngmono_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:95:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#   95 | const gx_device_png gs_pngmono_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:95:21: note: ‘gs_pngmono_device’ was previously declared here
#  451|   device2_(gs_pngalpha_device)
#  452|   device2_(gs_pnggray_device)
#  453|-> device2_(gs_pngmono_device)
#  454|   device2_(gs_pngmonod_device)
#  455|   device2_(gs_nullpage_device)

Error: COMPILER_WARNING (CWE-704): [#def875]
ghostscript-10.05.1/soobj/gconfig.h:454:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmonod_device’ does not match original declaration
#  454 | device2_(gs_pngmonod_device)
#      | ^
ghostscript-10.05.1/devices/gdevpng.c:190:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
#  190 | const gx_device_png gs_pngmonod_device =
#      |                     ^
ghostscript-10.05.1/devices/gdevpng.c:190:21: note: ‘gs_pngmonod_device’ was previously declared here
#  452|   device2_(gs_pnggray_device)
#  453|   device2_(gs_pngmono_device)
#  454|-> device2_(gs_pngmonod_device)
#  455|   device2_(gs_nullpage_device)
#  456|   #endif

Error: COMPILER_WARNING (CWE-704): [#def876]
ghostscript-10.05.1/soobj/gconfig.h:455:1: warning[-Wlto-type-mismatch]: type of ‘gs_nullpage_device’ does not match original declaration
#  455 | device2_(gs_nullpage_device)
#      | ^
ghostscript-10.05.1/base/gdevnfwd.c:1007:22: note: type ‘const struct gx_device_null’ should match type ‘const struct gx_device’
# 1007 | const gx_device_null gs_nullpage_device = {
#      |                      ^
ghostscript-10.05.1/base/gdevnfwd.c:1007:22: note: ‘gs_nullpage_device’ was previously declared here
#  453|   device2_(gs_pngmono_device)
#  454|   device2_(gs_pngmonod_device)
#  455|-> device2_(gs_nullpage_device)
#  456|   #endif
#  457|   #ifdef io_device_

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-182.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameghostscript-10.05.1-5.fc43
store-results-to/tmp/tmpzakd_iqq/ghostscript-10.05.1-5.fc43.tar.xz
time-created2026-01-08 14:18:20
time-finished2026-01-08 14:25:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpzakd_iqq/ghostscript-10.05.1-5.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpzakd_iqq/ghostscript-10.05.1-5.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9