Task #90451 - ghostscript-10.06.0-1.fc44/scan-results.err
back to task #90451download
Error: SHELLCHECK_WARNING (CWE-477):
/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):
/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):
/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):
ghostscript-10.06.0/base/fapi_ft.c: scope_hint: In function ‘gs_fapi_ft_get_scaled_font’
ghostscript-10.06.0/base/fapi_ft.c:1287:86: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘a_font->retrieve_tt_font’ differ in signedness
# 1287 | code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
# | ^~~
# | |
# | unsigned int *
ghostscript-10.06.0/base/fapi_ft.c:1287:86: note: expected ‘int *’ but argument is of type ‘unsigned int *’
# 1285| if (a_font->retrieve_tt_font != NULL) {
# 1286| unsigned int ms;
# 1287|-> code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
# 1288| if (code == 0) {
# 1289| data_owned = false;
Error: CPPCHECK_WARNING (CWE-909):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevdevn.c:1536:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘linelength[i]’
ghostscript-10.06.0/base/gdevdevn.c:1471:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1483:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1492:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1494:33: branch_false: ...to here
ghostscript-10.06.0/base/gdevdevn.c:1496:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1489:27: branch_false: ...to here
ghostscript-10.06.0/base/gdevdevn.c:1522:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1523:9: branch_true: ...to here
ghostscript-10.06.0/base/gdevdevn.c:1522:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1528:8: branch_false: ...to here
ghostscript-10.06.0/base/gdevdevn.c:1528:8: branch_false: following ‘false’ branch (when ‘npcmcolors == 0’)...
ghostscript-10.06.0/base/gdevdevn.c:1534:5: branch_false: ...to here
ghostscript-10.06.0/base/gdevdevn.c:1534:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevdevn.c:1535:61: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevmem.c:959:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/base/gdevmem.c:948:6: enter_function: entry to ‘mem_dev_initialize_device_procs’
ghostscript-10.06.0/base/gdevmem.c:955:11: call_function: inlined call to ‘gdev_mem_functions_for_bits’ from ‘mem_dev_initialize_device_procs’
ghostscript-10.06.0/base/gdevmem.c:957:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevmem.c:976:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/base/gdevmem.c:969:6: enter_function: entry to ‘mem_word_dev_initialize_device_procs’
ghostscript-10.06.0/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.06.0/base/gdevmem.c:974:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevp14.c:7523: warning[uninitvar]: Uninitialized variable: comp_bits
# 7521| memset(&(pdev->color_info.comp_bits), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7522| memset(&(pdev->color_info.comp_shift), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7523|-> memcpy(&(pdev->color_info.comp_bits), comp_bits, new_num_comps);
# 7524| memcpy(&(pdev->color_info.comp_shift), comp_shift, new_num_comps);
# 7525| group_color->max_color = pdev->color_info.max_color = deep ? 65535 : 255;
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/base/gdevp14.c:7524: warning[uninitvar]: Uninitialized variable: comp_shift
# 7522| memset(&(pdev->color_info.comp_shift), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
# 7523| memcpy(&(pdev->color_info.comp_bits), comp_bits, new_num_comps);
# 7524|-> memcpy(&(pdev->color_info.comp_shift), comp_shift, new_num_comps);
# 7525| group_color->max_color = pdev->color_info.max_color = deep ? 65535 : 255;
# 7526| group_color->max_gray = pdev->color_info.max_gray = deep ? 65535 : 255;
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/base/gdevp14.c:8818: warning[uninitvar]: Uninitialized variable: comp_value
# 8816| for (i = pgs->color_component_map.num_components - 1; i >= 0; i--)
# 8817| comp_value[i] = all;
# 8818|-> map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps);
# 8819| }
# 8820|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/base/gdevpipe.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(fname, mode)’
ghostscript-10.06.0/base/gdevpipe.c:47:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevpipe.c:50:5: branch_false: ...to here
ghostscript-10.06.0/base/gdevpipe.c:55:9: acquire_memory: allocated here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevplnx.c:332: error[integerOverflow]: Signed integer overflow for expression '-(1<<3)'.
# 330| pts->size.y = buffer_size / width_raster;
# 331| } else {
# 332|-> pts->buffer.raster = buffer_size & -align_bitmap_mod;
# 333| pts->size.x =
# 334| pts->buffer.raster * (8 / edev->plane_dev->color_info.depth);
Error: GCC_ANALYZER_WARNING (CWE-465):
ghostscript-10.06.0/base/gdevsclass.c:397:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.06.0/base/gdevsclass.c:378:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:379:16: branch_true: ...to here
ghostscript-10.06.0/base/gdevsclass.c:380:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevsclass.c:383:13: branch_false: ...to here
ghostscript-10.06.0/base/gdevsclass.c:383:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:384:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevsclass.c:387:24: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:388:29: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevsclass.c:438:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.06.0/base/gdevsclass.c:378:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:379:16: branch_true: ...to here
ghostscript-10.06.0/base/gdevsclass.c:380:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevsclass.c:383:13: branch_false: ...to here
ghostscript-10.06.0/base/gdevsclass.c:383:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:384:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevsclass.c:437:24: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevsclass.c:437:24: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevvec.c:121:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line_start.x’
ghostscript-10.06.0/base/gdevvec.c:99:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevvec.c:101:5: branch_false: ...to here
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: following ‘true’ branch (when ‘incomplete_line == 0’)...
ghostscript-10.06.0/base/gdevvec.c:112:21: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:120:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:121:36: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gdevvec.c:128:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line_start.y’
ghostscript-10.06.0/base/gdevvec.c:99:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevvec.c:101:5: branch_false: ...to here
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: following ‘true’ branch (when ‘incomplete_line == 0’)...
ghostscript-10.06.0/base/gdevvec.c:112:21: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:107:12: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:110:16: branch_true: following ‘true’ branch (when ‘pe_op == 2’)...
ghostscript-10.06.0/base/gdevvec.c:111:20: branch_true: ...to here
ghostscript-10.06.0/base/gdevvec.c:120:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gdevvec.c:127:28: branch_false: ...to here
ghostscript-10.06.0/base/gdevvec.c:127:27: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gdevvec.c:128:36: branch_true: ...to here
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gen_ordered.c: scope_hint: In function ‘htsc_setpoint’
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:46:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:46:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:58:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:58:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:76:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:221:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222:5: call_function: inlined call to ‘define_int’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222: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):
ghostscript-10.06.0/base/genarch.c:76:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:221:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222:5: call_function: inlined call to ‘ilog2’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222:5: call_function: inlined call to ‘define_int’ from ‘main’
ghostscript-10.06.0/base/genarch.c:222: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):
ghostscript-10.06.0/base/genarch.c:95:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infname, "r")’
ghostscript-10.06.0/base/genarch.c:83:16: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:87:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:87:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:92:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genarch.c:93:13: branch_true: ...to here
ghostscript-10.06.0/base/genarch.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/base/genarch.c:95:13: danger: ‘fopen(infname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/30/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):
ghostscript-10.06.0/base/genarch.c:95:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infname, "r")’
ghostscript-10.06.0/base/genarch.c:83:16: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:87:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:87:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:92:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genarch.c:93:13: branch_true: ...to here
ghostscript-10.06.0/base/genarch.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/base/genarch.c:95:13: danger: ‘fopen(infname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/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):
ghostscript-10.06.0/base/genarch.c:167:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_true: following ‘true’ branch (when ‘argc == 3’)...
ghostscript-10.06.0/base/genarch.c:167:16: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:104:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_true: following ‘true’ branch (when ‘argc == 3’)...
ghostscript-10.06.0/base/genarch.c:167:16: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genarch.c:170:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:170:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/base/genarch.c:170:5: danger: ‘fopen(fname, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/36/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):
ghostscript-10.06.0/base/genarch.c:170:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:170:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/base/genarch.c:170:5: danger: ‘fopen(fname, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/37/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):
ghostscript-10.06.0/base/genarch.c:171:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_resource: opened here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:171:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/base/genarch.c:171:5: danger: ‘fopen(fname, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/38/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):
ghostscript-10.06.0/base/genarch.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
ghostscript-10.06.0/base/genarch.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:159:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:160:9: acquire_memory: allocated here
ghostscript-10.06.0/base/genarch.c:161:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:166:8: branch_false: following ‘false’ branch (when ‘argc != 3’)...
ghostscript-10.06.0/base/genarch.c:170:5: branch_false: ...to here
ghostscript-10.06.0/base/genarch.c:171:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/base/genarch.c:171:5: danger: ‘fopen(fname, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/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):
ghostscript-10.06.0/base/genconf.c:777:19: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(strlen(fname) + strlen(*pconf.file_prefix) + 1)’
ghostscript-10.06.0/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.06.0/base/genconf.c:765:19: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:795:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:795:5: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:795:5: throw: if ‘fseek’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:796:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:796:11: throw: if ‘ftell’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:796:11: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:796:11: throw: if ‘ftell’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:805:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:804:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:805:9: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:805:9: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:805:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:804:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:805:9: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:805:9: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:810:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_resource: opened here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:810:5: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:786:10: acquire_memory: allocated here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:810:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(end + 1))’
ghostscript-10.06.0/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:787:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:795:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:803:12: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.06.0/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:810:5: throw: if ‘rewind’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:811:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(end + 1))’
ghostscript-10.06.0/base/genconf.c:763:1: enter_function: entry to ‘read_file’
ghostscript-10.06.0/base/genconf.c:772:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:777:19: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:797:8: branch_false: following ‘false’ branch (when ‘end >= 0’)...
ghostscript-10.06.0/base/genconf.c:803:20: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:803:12: call_function: inlined call to ‘mmalloc’ from ‘read_file’
ghostscript-10.06.0/base/genconf.c:804:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:810:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:812:8: branch_false: following ‘false’ branch (when ‘nread >= 0’)...
ghostscript-10.06.0/base/genconf.c:819:5: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:821:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:822:9: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:822:9: throw: if ‘printf’ throws an exception...
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/genconf.c: scope_hint: In function ‘main’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:1160:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(xlen + 1))’
ghostscript-10.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1156:22: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1184:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1186:17: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1186:17: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1156:22: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:1185:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1163:33: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1184:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1185:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1185:21: throw: if ‘fputs’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:1186:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1184:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1186:17: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1186:17: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:1192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1163:33: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1191:17: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1191:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1192:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1192:17: throw: if ‘fputs’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/genconf.c:1196:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
ghostscript-10.06.0/base/genconf.c:1143:1: enter_function: entry to ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1151:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1152:28: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1154:21: call_function: inlined call to ‘mmalloc’ from ‘write_list_pattern’
ghostscript-10.06.0/base/genconf.c:1160:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1161:25: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1163:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1163:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1165:16: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1165:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1166:17: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1168:12: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1171:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/genconf.c:1177:9: branch_false: ...to here
ghostscript-10.06.0/base/genconf.c:1181:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/genconf.c:1183:16: branch_true: following ‘true’ branch (when the strings are non-equal)...
ghostscript-10.06.0/base/genconf.c:1184:21: branch_true: ...to here
ghostscript-10.06.0/base/genconf.c:1196:9: throw: if ‘fputs’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp.h:331:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bitData’
ghostscript-10.06.0/devices/gdevdjtc.c:77:1: enter_function: entry to ‘djet500c_print_page’
ghostscript-10.06.0/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.06.0/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:125:24: acquire_memory: allocated here
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:129:22: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevdjtc.c:215:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp.h:331:12: warning[-Wanalyzer-malloc-leak]: leak of ‘indata1’
ghostscript-10.06.0/devices/gdevtknk.c:125:1: enter_function: entry to ‘tekink_print_page’
ghostscript-10.06.0/devices/gdevtknk.c:144:21: acquire_memory: allocated here
ghostscript-10.06.0/devices/gdevtknk.c:145:8: branch_false: following ‘false’ branch (when ‘indata1’ is non-NULL)...
ghostscript-10.06.0/devices/gdevtknk.c:148:15: branch_false: ...to here
ghostscript-10.06.0/devices/gdevtknk.c:160:22: branch_false: following ‘false’ branch (when ‘scan_line >= scan_lines’)...
ghostscript-10.06.0/devices/gdevtknk.c:160:22: branch_false: ...to here
ghostscript-10.06.0/devices/gdevtknk.c:251:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevtknk.c:255:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevtknk.c:255:8: branch_true: following ‘true’ branch (when the strings are equal)...
ghostscript-10.06.0/devices/gdevtknk.c:256:9: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unifs.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
ghostscript-10.06.0/base/gp_unifs.c:95:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:97:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:115:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:125:14: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:125:14: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unifs.c:126:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
ghostscript-10.06.0/base/gp_unifs.c:146:1: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:141:8: branch_true: following ‘true’ branch (when ‘remove != 0’)...
ghostscript-10.06.0/base/gp_unifs.c:142:9: branch_true: ...to here
ghostscript-10.06.0/base/gp_unifs.c:142:9: throw: if ‘unlink’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unifs.c:529:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(work)’
ghostscript-10.06.0/base/gp_unifs.c:499:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:502:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:502:8: branch_true: following ‘true’ branch (when ‘worklen == 0’)...
ghostscript-10.06.0/base/gp_unifs.c:503:34: branch_true: ...to here
ghostscript-10.06.0/base/gp_unifs.c:514:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:518:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:518:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gp_unifs.c:523:19: branch_true: ...to here
ghostscript-10.06.0/base/gp_unifs.c:523:19: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unifs.c:524:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:529:13: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:529:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unifs.c:552:24: branch_false: ...to here
ghostscript-10.06.0/base/gp_unifs.c:552:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gp_unifs.c:567:17: branch_true: ...to here
ghostscript-10.06.0/base/gp_unifs.c:567:17: throw: if the called function throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:340:17: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:340:17: throw: if ‘FcInitLoadConfigAndFonts’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:348:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:348:16: throw: if ‘FcConfigGetFontDirs’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:350:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gp_unix.c:350:9: branch_true: ...to here
ghostscript-10.06.0/base/gp_unix.c:350:9: throw: if ‘FcConfigDestroy’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:359:22: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:359:22: throw: if ‘FcStrListNext’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:364:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:359:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gp_unix.c:364:16: throw: if ‘gs_add_control_path’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:366:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:366:5: throw: if ‘FcStrListDone’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:368:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:359:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:361:9: branch_true: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_true: following ‘true’ branch (when ‘code < 0’)...
ghostscript-10.06.0/base/gp_unix.c:368:9: branch_true: ...to here
ghostscript-10.06.0/base/gp_unix.c:368:9: throw: if ‘FcConfigDestroy’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:374:11: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:374:11: throw: if ‘FcPatternBuild’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:381:10: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:381:10: throw: if ‘FcObjectSetBuild’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:390:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:390:24: throw: if ‘FcFontList’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:391:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:391:5: throw: if ‘FcPatternDestroy’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gp_unix.c:392:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
ghostscript-10.06.0/base/gp_unix.c:330:32: acquire_memory: allocated here
ghostscript-10.06.0/base/gp_unix.c:331:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
ghostscript-10.06.0/base/gp_unix.c:334:5: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:341:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:348:16: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gp_unix.c:349:8: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:367:8: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gp_unix.c:374:11: branch_false: ...to here
ghostscript-10.06.0/base/gp_unix.c:392:5: throw: if ‘FcObjectSetDestroy’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gsalloc.c:2223:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_free[i]’
ghostscript-10.06.0/base/gsalloc.c:2198:24: branch_true: following ‘true’ branch (when ‘cur != top’)...
ghostscript-10.06.0/base/gsalloc.c:2202:9: branch_true: ...to here
ghostscript-10.06.0/base/gsalloc.c:2203:13: branch_true: following ‘true’ branch (when ‘size <= 800’)...
ghostscript-10.06.0/base/gsalloc.c:2204:14: branch_true: ...to here
ghostscript-10.06.0/base/gsalloc.c:2205:12: branch_false: following ‘false’ branch (when ‘smallest <= i’)...
ghostscript-10.06.0/base/gsalloc.c:2218:12: branch_false: ...to here
ghostscript-10.06.0/base/gsalloc.c:2218:12: branch_true: following ‘true’ branch (when ‘largest < i’)...
ghostscript-10.06.0/base/gsalloc.c:2219:16: branch_true: ...to here
ghostscript-10.06.0/base/gsalloc.c:2219:16: branch_false: following ‘false’ branch (when ‘largest < 0’)...
ghostscript-10.06.0/base/gsalloc.c:2223:9: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gscdevn.c: scope_hint: In function ‘gx_check_process_names_DeviceN’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gsgcache.c: scope_hint: In function ‘gs_glyph_cache_elem__locate’
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gsicc_cache.c:1556:44: warning[-Wunused-but-set-variable=]: variable ‘num_process’ set but not used
# 1556 | int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# | ^~~~~~~~~~~
# 1554| gsicc_namedcolortable_t *namedcolor_table;
# 1555| unsigned int num_entries;
# 1556|-> int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# 1557| gs_color_space_index type = gs_color_space_get_index(pcs);
# 1558| char **names = NULL;
Error: COMPILER_WARNING:
ghostscript-10.06.0/base/gsicc_cache.c: scope_hint: In function ‘gsicc_support_named_color’
ghostscript-10.06.0/base/gsicc_cache.c:1556:59: warning[-Wunused-but-set-variable=]: variable ‘num_other’ set but not used
# 1556 | int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# | ^~~~~~~~~
# 1554| gsicc_namedcolortable_t *namedcolor_table;
# 1555| unsigned int num_entries;
# 1556|-> int k, code, i, num_comp, num_spots=0, num_process=0, num_other=0;
# 1557| gs_color_space_index type = gs_color_space_get_index(pcs);
# 1558| char **names = NULL;
Error: CPPCHECK_WARNING (CWE-562):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gsicc_manage.c:577:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘profile_data’
ghostscript-10.06.0/base/gsicc_manage.c:576:13: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gsicc_manage.c:576:13: branch_true: ...to here
ghostscript-10.06.0/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: COMPILER_WARNING (CWE-457):
ghostscript-10.06.0/base/gsicc_manage.c:856:59: warning[-Wmaybe-uninitialized]: ‘icc_profile’ may be used uninitialized
# 856 | srcgtag->gray_profiles[gsSRC_TEXTPRO] = icc_profile;
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ghostscript-10.06.0/base/gsicc_manage.c: scope_hint: In function ‘gs_setsrcgtagicc’
ghostscript-10.06.0/base/gsicc_manage.c:648:20: note: ‘icc_profile’ was declared here
# 648 | cmm_profile_t *icc_profile;
# | ^~~~~~~~~~~
# 854| break;
# 855| case TEXT_GRAY:
# 856|-> srcgtag->gray_profiles[gsSRC_TEXTPRO] = icc_profile;
# 857| srcgtag->gray_rend_cond[gsSRC_TEXTPRO].cmm = cmm;
# 858| if (cmm == gsCMM_DEFAULT) {
Error: GCC_ANALYZER_WARNING:
ghostscript-10.06.0/base/gsiorom.c:235:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.06.0/base/gsiorom.c:140:1: enter_function: entry to ‘s_block_read_seek’
ghostscript-10.06.0/base/gsiorom.c:147:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gsmalloc.c:131:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mem’
ghostscript-10.06.0/base/gsmalloc.c:115:31: acquire_memory: allocated here
ghostscript-10.06.0/base/gsmalloc.c:117:8: branch_false: following ‘false’ branch (when ‘mem’ is non-NULL)...
ghostscript-10.06.0/base/gsmalloc.c:120:5: branch_false: ...to here
ghostscript-10.06.0/base/gsmalloc.c:131:20: throw: if ‘gx_monitor_alloc’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/base/gsparaml.c:776:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str’
ghostscript-10.06.0/base/gsparaml.c:1072:5: enter_function: entry to ‘gs_param_list_dump’
ghostscript-10.06.0/base/gsparaml.c:1081:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gsparaml.c:1084:13: branch_true: ...to here
ghostscript-10.06.0/base/gsparaml.c:1084:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsparaml.c:1088:9: branch_false: ...to here
ghostscript-10.06.0/base/gsparaml.c:1091:16: call_function: inlined call to ‘gs_param_list_to_string’ from ‘gs_param_list_dump’
# 774| out->last = str[slen-1];
# 775| if (out->value != NULL) {
# 776|-> memcpy(out->value, str, slen);
# 777| out->value += slen;
# 778| *out->value = 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gsptype1.c:1159:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/base/gsptype1.c:1120:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsptype1.c:1123:12: branch_false: ...to here
ghostscript-10.06.0/base/gsptype1.c:1124:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsptype1.c:1127:5: branch_false: ...to here
ghostscript-10.06.0/base/gsptype1.c:1130:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsptype1.c:1134:20: branch_false: ...to here
ghostscript-10.06.0/base/gsptype1.c:1139:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsptype1.c:1146:9: branch_false: ...to here
ghostscript-10.06.0/base/gsptype1.c:1154:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gsptype1.c:1159:9: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gssprintf.c:583:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
ghostscript-10.06.0/base/gssprintf.c:1498:5: enter_function: entry to ‘gs_vsprintf’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gstype1.c:198:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.06.0/base/gstype1.c:158:5: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gstype1.c:160:8: branch_true: ...to here
ghostscript-10.06.0/base/gstype1.c:160:8: branch_true: following ‘true’ branch (when ‘pgd’ is NULL)...
ghostscript-10.06.0/base/gstype1.c:161:9: branch_true: ...to here
ghostscript-10.06.0/base/gstype1.c:214:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gstype1.c:170:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gstype1.c:173:9: branch_false: ...to here
ghostscript-10.06.0/base/gstype1.c:173:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gstype1.c:173:9: branch_true: ...to here
ghostscript-10.06.0/base/gstype1.c:174:12: branch_true: following ‘true’ branch (when ‘c <= 31’)...
ghostscript-10.06.0/base/gstype1.c:187:13: branch_true: ...to here
ghostscript-10.06.0/base/gstype1.c:197:17: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gstype1.c:198:21: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gstype2.c:234:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.06.0/base/gstype2.c:172:5: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gstype2.c:174:8: branch_true: ...to here
ghostscript-10.06.0/base/gstype2.c:174:8: branch_true: following ‘true’ branch (when ‘pgd’ is NULL)...
ghostscript-10.06.0/base/gstype2.c:175:9: branch_true: ...to here
ghostscript-10.06.0/base/gstype2.c:249:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gstype2.c:185:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gstype2.c:188:15: branch_false: ...to here
ghostscript-10.06.0/base/gstype2.c:190:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gstype2.c:190:9: branch_true: ...to here
ghostscript-10.06.0/base/gstype2.c:191:12: branch_false: following ‘false’ branch (when ‘c <= 31’)...
ghostscript-10.06.0/base/gstype2.c:222:9: branch_false: ...to here
ghostscript-10.06.0/base/gstype2.c:232:20: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gstype2.c:233:21: branch_false: following ‘false’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxccman.c:82: error[integerOverflow]: Signed integer overflow for expression '-((((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))>8)?(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8)):8)&((((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))>8)?(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8)):8)-1)?(((int)sizeof(struct cached_char))+((((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))>8)?(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8)):8)-1))/(((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))>8)?(((1<<3)>((8>8)?(8):8))?(1<<3):((8>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. */
ghostscript-10.06.0/base/gxccman.c:82: note: trimmed 1 message(s) with length over 512
Error: CPPCHECK_WARNING (CWE-190):
ghostscript-10.06.0/base/gxccman.c:762: error[integerOverflow]: Signed integer overflow for expression '-(((((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))>8)?(((1<<3)>((8>8)?(8):8))?(1<<3):((8>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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gxclimag.c: scope_hint: In function ‘clist_image_plane_data’
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gxclipm.c:181:21: warning[-Wunused-but-set-variable=]: variable ‘sdata’ set but not used
# 181 | const byte *sdata;\
# | ^~~~~
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gxclipm.c: scope_hint: In function ‘clip_runs_enumerate’
ghostscript-10.06.0/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.06.0/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):
ghostscript-10.06.0/base/gxclist.c:276:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hsize’
ghostscript-10.06.0/base/gxclist.c:269:12: branch_false: following ‘false’ branch (when ‘hc <= 2’)...
ghostscript-10.06.0/base/gxclist.c:271:8: branch_false: ...to here
ghostscript-10.06.0/base/gxclist.c:271:8: branch_false: following ‘false’ branch (when ‘hc > 2’)...
ghostscript-10.06.0/base/gxclist.c:273:5: branch_false: ...to here
ghostscript-10.06.0/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:
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gxclmem.c: scope_hint: In function ‘memfile_get_pdata.isra.0’
ghostscript-10.06.0/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.06.0/base/gxclmem.c:21: included_from: Included from here.
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxclmem.c:1167:20: warning[-Wanalyzer-deref-before-check]: check of ‘pphys’ for NULL after already dereferencing it
ghostscript-10.06.0/base/gxclmem.c:1155:8: branch_true: following ‘true’ branch (when ‘bp’ is non-NULL)...
ghostscript-10.06.0/base/gxclmem.c:1157:27: branch_true: ...to here
ghostscript-10.06.0/base/gxclmem.c:1160:30: branch_true: following ‘true’ branch (when ‘tmpbp’ is non-NULL)...
ghostscript-10.06.0/base/gxclmem.c:1161:21: branch_true: ...to here
ghostscript-10.06.0/base/gxclmem.c:1165:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxclmem.c:1165:12: branch_true: ...to here
ghostscript-10.06.0/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:
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxclrast.c:1505:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.06.0/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:616:8: branch_false: following ‘false’ branch (when ‘clipper_dev_open == 0’)...
ghostscript-10.06.0/base/gxclrast.c:619:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:653:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:655:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:659:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:663:12: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:664:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:668:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:680:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:680:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:691:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:728:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gxclrast.c:731:13: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1503:28: branch_true: following ‘true’ branch (when ‘data_height == 0’)...
ghostscript-10.06.0/base/gxclrast.c:1505:36: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1505:36: danger: use of uninitialized value ‘image_info’ here
# 1503| if (data_height == 0) {
# 1504| if_debug0m('L', mem, " done image\n");
# 1505|-> code = gx_image_end(image_info, true);
# 1506| if (code < 0)
# 1507| goto out;
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/base/gxclrast.c:1540:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.06.0/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:616:8: branch_false: following ‘false’ branch (when ‘clipper_dev_open == 0’)...
ghostscript-10.06.0/base/gxclrast.c:619:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:653:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:655:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:659:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:663:12: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:664:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:668:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:680:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:680:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:691:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:728:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gxclrast.c:731:13: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1538:28: branch_true: following ‘true’ branch (when ‘data_height == 0’)...
ghostscript-10.06.0/base/gxclrast.c:1540:36: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1540:36: danger: use of uninitialized value ‘image_info’ here
# 1538| if (data_height == 0) {
# 1539| if_debug0m('L', mem, " done image\n");
# 1540|-> code = gx_image_end(image_info, true);
# 1541| if (code < 0)
# 1542| goto out;
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/base/gxclrast.c:3420:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vs[1]’
ghostscript-10.06.0/base/gxclrast.c:511:1: enter_function: entry to ‘clist_playback_band’
ghostscript-10.06.0/base/gxclrast.c:589:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:593:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:616:8: branch_false: following ‘false’ branch (when ‘clipper_dev_open == 0’)...
ghostscript-10.06.0/base/gxclrast.c:619:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:653:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:655:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:659:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:663:12: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:664:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:668:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:680:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:680:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:691:5: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:724:8: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:728:12: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/gxclrast.c:731:13: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:739:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxclrast.c:740:17: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:740:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxclrast.c:741:28: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:741:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:752:15: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:2032:20: branch_true: following ‘true’ branch (when ‘op == 241’)...
ghostscript-10.06.0/base/gxclrast.c:2033:21: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1967:24: branch_true: following ‘true’ branch (when ‘in_path == 0’)...
ghostscript-10.06.0/base/gxclrast.c:1968:34: branch_true: ...to here
ghostscript-10.06.0/base/gxclrast.c:1975:33: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclrast.c:2025:28: branch_false: ...to here
ghostscript-10.06.0/base/gxclrast.c:2025:28: call_function: calling ‘clist_decode_segment’ from ‘clist_playback_band’
# 3418| break;
# 3419| case cmd_opv_rgapto:
# 3420|-> code = gx_path_add_gap_notes(ppath, px += A, py += B, notes);
# 3421| break;
# 3422| case cmd_opv_hlineto:
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/base/gxclread.c:787: warning[uninitvar]: Uninitialized variable: lines_rasterized
# 785| }
# 786| cdev->buf_procs.destroy_buf_device(bdev);
# 787|-> if (code < 0 || lines_rasterized == line_count)
# 788| return code;
# 789| /*
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxclthrd.c:906:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘code’
ghostscript-10.06.0/base/gxclthrd.c:868:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxclthrd.c:906:8: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxcpath.c:991:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.06.0/base/gxcpath.c:509:1: enter_function: entry to ‘gx_cpath_to_path’
ghostscript-10.06.0/base/gxcpath.c:511:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxcpath.c:515:9: branch_true: ...to here
ghostscript-10.06.0/base/gxcpath.c:516:16: call_function: calling ‘gx_cpath_to_path_synthesize’ from ‘gx_cpath_to_path’
# 989| left: /* Trace upward along a left edge. */
# 990| /* We're at the lower left corner of rp. */
# 991|-> rp->to_visit &= ~visit_left;
# 992| /* Look for an adjacent rectangle above rp. */
# 993| for (look = rp;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/base/gxcpath.c:1037:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.06.0/base/gxcpath.c:509:1: enter_function: entry to ‘gx_cpath_to_path’
ghostscript-10.06.0/base/gxcpath.c:511:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxcpath.c:515:9: branch_true: ...to here
ghostscript-10.06.0/base/gxcpath.c:516:16: call_function: calling ‘gx_cpath_to_path_synthesize’ from ‘gx_cpath_to_path’
# 1035| right: /* Trace downward along a right edge. */
# 1036| /* We're at the upper right corner of rp. */
# 1037|-> rp->to_visit &= ~visit_right;
# 1038| /* Look for an adjacent rectangle below rp. */
# 1039| for (look = rp;
Error: COMPILER_WARNING:
ghostscript-10.06.0/base/gxctable.c: scope_hint: In function ‘gx_color_interpolate_nearest’
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxfill.c:522: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 520| }
# 521| code = (*fill_loop)
# 522|-> (&lst, (max_fill_band == 0 ? NO_BAND_MASK : int2fixed(-max_fill_band)));
# 523| if (lst.windings != NULL && lst.windings != lst.local_windings)
# 524| gs_free_object(pdev->memory, lst.windings, "gx_general_fill_path");
Error: GCC_ANALYZER_WARNING:
ghostscript-10.06.0/base/gxht_thresh.c:1089:29: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.06.0/base/gxht_thresh.c:1016:29: branch_true: following ‘true’ branch (when ‘j < spp_out’)...
ghostscript-10.06.0/base/gxht_thresh.c:1017:32: branch_true: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1024:24: branch_false: following ‘false’ branch (when ‘threshold’ is non-NULL)...
ghostscript-10.06.0/base/gxht_thresh.c:1027:37: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1060:24: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxht_thresh.c:1060:24: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1067:34: branch_false: following ‘false’ branch (when ‘jj >= init_tile’)...
ghostscript-10.06.0/base/gxht_thresh.c:1083:24: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1083:24: branch_true: following ‘true’ branch (when ‘replicate_tile != 0’)...
ghostscript-10.06.0/base/gxht_thresh.c:1086:34: branch_true: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1088:38: branch_true: following ‘true’ branch (when ‘jj < num_tiles’)...
ghostscript-10.06.0/base/gxht_thresh.c:1089:59: branch_true: ...to here
ghostscript-10.06.0/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:
ghostscript-10.06.0/base/gxht_thresh.c:1093:25: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.06.0/base/gxht_thresh.c:1016:29: branch_true: following ‘true’ branch (when ‘j < spp_out’)...
ghostscript-10.06.0/base/gxht_thresh.c:1017:32: branch_true: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1024:24: branch_false: following ‘false’ branch (when ‘threshold’ is non-NULL)...
ghostscript-10.06.0/base/gxht_thresh.c:1027:37: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1060:24: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxht_thresh.c:1060:24: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1067:34: branch_false: following ‘false’ branch (when ‘jj >= init_tile’)...
ghostscript-10.06.0/base/gxht_thresh.c:1083:24: branch_false: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1083:24: branch_true: following ‘true’ branch (when ‘replicate_tile != 0’)...
ghostscript-10.06.0/base/gxht_thresh.c:1086:34: branch_true: ...to here
ghostscript-10.06.0/base/gxht_thresh.c:1088:38: branch_false: following ‘false’ branch (when ‘jj >= num_tiles’)...
ghostscript-10.06.0/base/gxht_thresh.c:1093:55: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxi12bit.c:520:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gxi12bit.c:520:13: danger: infinite loop here
ghostscript-10.06.0/base/gxi12bit.c:520:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gxi12bit.c:520:13: branch_true: ...to here
ghostscript-10.06.0/base/gxi12bit.c:521:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/base/gxi12bit.c:521:22: branch_false: ...to here
# 518| float temp;
# 519|
# 520|-> while ( curr_pos < bufend ) {
# 521| for ( k = 0; k < spp; k ++ ) {
# 522| switch ( penum->map[k].decoding ) {
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/base/gxi12bit.c:559:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gxi12bit.c:559:13: danger: infinite loop here
ghostscript-10.06.0/base/gxi12bit.c:559:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gxi12bit.c:559:13: branch_true: ...to here
ghostscript-10.06.0/base/gxi12bit.c:560:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/base/gxi12bit.c:560:22: branch_false: ...to here
# 557| float temp;
# 558|
# 559|-> while ( curr_pos < bufend ) {
# 560| for ( k = 0; k < spp; k ++ ) {
# 561| switch ( penum->map[k].decoding ) {
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/base/gxicolor.c:377:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gxicolor.c:377:13: danger: infinite loop here
ghostscript-10.06.0/base/gxicolor.c:377:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gxicolor.c:377:13: branch_true: ...to here
ghostscript-10.06.0/base/gxicolor.c:378:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/base/gxicolor.c:378:22: branch_false: ...to here
# 375| float temp;
# 376|
# 377|-> while ( curr_pos < bufend ) {
# 378| for ( k = 0; k < spp; k ++ ) {
# 379| switch ( penum->map[k].decoding ) {
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/base/gxicolor.c:416:13: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gxicolor.c:416:13: danger: infinite loop here
ghostscript-10.06.0/base/gxicolor.c:416:13: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gxicolor.c:416:13: branch_true: ...to here
ghostscript-10.06.0/base/gxicolor.c:417:22: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/base/gxicolor.c:417:22: branch_false: ...to here
# 414| float temp;
# 415|
# 416|-> while ( curr_pos < bufend ) {
# 417| for ( k = 0; k < spp; k ++ ) {
# 418| switch ( penum->map[k].decoding ) {
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/base/gximdecode.c:191:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gximdecode.c:191:12: danger: infinite loop here
ghostscript-10.06.0/base/gximdecode.c:191:12: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gximdecode.c:191:12: branch_true: ...to here
ghostscript-10.06.0/base/gximdecode.c:192:21: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gximdecode.c:227:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/base/gximdecode.c:227:12: danger: infinite loop here
ghostscript-10.06.0/base/gximdecode.c:227:12: branch_true: when ‘curr_pos < bufend’: always following ‘true’ branch...
ghostscript-10.06.0/base/gximdecode.c:227:12: branch_true: ...to here
ghostscript-10.06.0/base/gximdecode.c:228:21: branch_false: when ‘k >= spp’: always following ‘false’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gximono.c:972:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ghostscript-10.06.0/base/gximono.c:425:8: branch_false: following ‘false’ branch (when ‘h != 0’)...
ghostscript-10.06.0/base/gximono.c:433:5: branch_false: ...to here
ghostscript-10.06.0/base/gximono.c:435:8: branch_false: following ‘false’ branch (when ‘masked != 0’)...
ghostscript-10.06.0/base/gximono.c:439:5: branch_false: ...to here
ghostscript-10.06.0/base/gximono.c:451:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gximono.c:947:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gximono.c:948:17: branch_true: ...to here
ghostscript-10.06.0/base/gximono.c:972:13: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gximono.c:972:13: branch_true: ...to here
ghostscript-10.06.0/base/gximono.c:972:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gximono.c:972:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gximono.c:1169:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc_contone[0]’
ghostscript-10.06.0/base/gximono.c:1128:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gximono.c:1154:8: branch_false: ...to here
ghostscript-10.06.0/base/gximono.c:1154:8: branch_false: following ‘false’ branch (when ‘flush_buff == 0’)...
ghostscript-10.06.0/base/gximono.c:1154:8: branch_false: ...to here
ghostscript-10.06.0/base/gximono.c:1158:17: branch_false: following ‘false’ branch (when ‘k >= spp_out’)...
ghostscript-10.06.0/base/gximono.c:1167:10: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gximono.c: scope_hint: In function ‘image_render_mono_ht’
ghostscript-10.06.0/base/gximono.c:1169:23: warning[-Wmaybe-uninitialized]: ‘devc_contone’ may be used uninitialized
# 1169 | devc_contone_gray = devc_contone[0];
# | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/gxiscale.c:2460:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc.type’
ghostscript-10.06.0/base/gxiscale.c:2315:1: enter_function: entry to ‘image_render_interpolate_landscape’
ghostscript-10.06.0/base/gxiscale.c:2333:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxiscale.c:2336:9: branch_false: ...to here
ghostscript-10.06.0/base/gxiscale.c:2340:5: call_function: calling ‘initial_decode’ from ‘image_render_interpolate_landscape’
ghostscript-10.06.0/base/gxiscale.c:2340:5: return_function: returning to ‘image_render_interpolate_landscape’ from ‘initial_decode’
ghostscript-10.06.0/base/gxiscale.c:2366:16: branch_true: following ‘true’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.06.0/base/gxiscale.c:2367:17: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2370:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxiscale.c:2370:17: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2380:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxiscale.c:2382:17: branch_false: ...to here
ghostscript-10.06.0/base/gxiscale.c:2382:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/gxiscale.c:2383:32: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2387:20: branch_true: following ‘true’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.06.0/base/gxiscale.c:2388:32: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2388:32: call_function: calling ‘interpolate_scaled_expanded_height’ from ‘image_render_interpolate_landscape’
ghostscript-10.06.0/base/gxiscale.c:2388:32: return_function: returning to ‘image_render_interpolate_landscape’ from ‘interpolate_scaled_expanded_height’
ghostscript-10.06.0/base/gxiscale.c:2394:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/gxiscale.c:2398:26: branch_false: ...to here
ghostscript-10.06.0/base/gxiscale.c:2399:20: branch_true: following ‘true’ branch (when ‘color_handler’ is NULL)...
ghostscript-10.06.0/base/gxiscale.c:2400:37: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2400:37: call_function: calling ‘get_color_handler’ from ‘image_render_interpolate_landscape’
ghostscript-10.06.0/base/gxiscale.c:2400:37: return_function: returning to ‘image_render_interpolate_landscape’ from ‘get_color_handler’
ghostscript-10.06.0/base/gxiscale.c:2401:30: branch_true: following ‘true’ branch (when ‘x < xe’)...
ghostscript-10.06.0/base/gxiscale.c:2402:24: branch_true: ...to here
ghostscript-10.06.0/base/gxiscale.c:2402:24: branch_false: following ‘false’ branch (when ‘color_handler’ is NULL)...
ghostscript-10.06.0/base/gxiscale.c:2423:25: branch_false: ...to here
ghostscript-10.06.0/base/gxiscale.c:2452:28: branch_false: following ‘false’ branch (when ‘abs_interp_limit > 1’)...
ghostscript-10.06.0/base/gxiscale.c:2457:49: branch_false: ...to here
ghostscript-10.06.0/base/gxiscale.c:2459:40: call_function: calling ‘interpolate_scaled_expanded_width’ from ‘image_render_interpolate_landscape’
ghostscript-10.06.0/base/gxiscale.c:2459:40: return_function: returning to ‘image_render_interpolate_landscape’ from ‘interpolate_scaled_expanded_width’
ghostscript-10.06.0/base/gxiscale.c:2460:37: danger: use of uninitialized value ‘devc.type’ here
# 2458|
# 2459| scaled_w = interpolate_scaled_expanded_width(rep, pss);
# 2460|-> rcode = gx_fill_rectangle_device_rop(scaled_y, scaled_x, scaled_h, scaled_w,
# 2461| &devc, dev, lop);
# 2462| if (rcode < 0)
Error: COMPILER_WARNING (CWE-457):
ghostscript-10.06.0/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.06.0/base/gxshade6.c: scope_hint: In function ‘fill_quadrangle.isra.0’
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:76:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ghostscript-10.06.0/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:328:14: acquire_resource: opened here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:76:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ghostscript-10.06.0/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:333:15: acquire_resource: opened here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:76:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ghostscript-10.06.0/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:328:14: acquire_memory: allocated here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:76:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ghostscript-10.06.0/base/pack_ps.c:246:1: enter_function: entry to ‘main’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:333:15: acquire_memory: allocated here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:347:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:328:14: acquire_resource: opened here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:347:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:333:15: acquire_resource: opened here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:347:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:328:14: acquire_memory: allocated here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/pack_ps.c:347:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: following ‘false’ branch (when ‘argc > 1’)...
ghostscript-10.06.0/base/pack_ps.c:273:8: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:279:12: branch_true: following ‘true’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:280:17: branch_true: ...to here
ghostscript-10.06.0/base/pack_ps.c:317:8: branch_false: following ‘false’ branch (when ‘argc > atarg’)...
ghostscript-10.06.0/base/pack_ps.c:321:22: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:329:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:333:15: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:333:15: acquire_memory: allocated here
ghostscript-10.06.0/base/pack_ps.c:334:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/pack_ps.c:341:34: branch_false: ...to here
ghostscript-10.06.0/base/pack_ps.c:347:5: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/base/sdctc.c: scope_hint: In function ‘stream_dct_end_passthrough’
ghostscript-10.06.0/base/sdctc.c:89:10: warning[-Wunused-variable]: unused variable ‘EOI’
# 89 | char EOI[2] = {0xff, 0xD9};
# | ^~~
# 87| stream_dct_end_passthrough(jpeg_decompress_data *jddp)
# 88| {
# 89|-> char EOI[2] = {0xff, 0xD9};
# 90|
# 91| if (jddp != NULL && jddp->PassThrough != 0 && jddp->PassThroughfn != NULL) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/base/sfilter2.c:206:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[1]’
ghostscript-10.06.0/base/sfilter2.c:182:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/sfilter2.c:184:22: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.06.0/base/sfilter2.c:184:40: branch_true: ...to here
ghostscript-10.06.0/base/sfilter2.c:196:26: branch_true: following ‘true’ branch...
ghostscript-10.06.0/base/sfilter2.c:197:27: branch_true: ...to here
ghostscript-10.06.0/base/sfilter2.c:196:26: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/sfilter2.c:205:17: branch_false: ...to here
ghostscript-10.06.0/base/sfilter2.c:205:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/base/slzwd.c:371:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ghostscript-10.06.0/base/slzwd.c:132:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/slzwd.c:136:8: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:136:8: branch_true: following ‘true’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/base/slzwd.c:137:13: branch_true: ...to here
ghostscript-10.06.0/base/slzwd.c:150:16: branch_false: following ‘false’ branch (when ‘n < 0’)...
ghostscript-10.06.0/base/slzwd.c:154:13: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:154:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/slzwd.c:158:9: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:161:12: branch_false: following ‘false’ branch (when ‘c != eod’)...
ghostscript-10.06.0/base/slzwd.c:161:12: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:165:20: branch_false: following ‘false’ branch (when ‘c == eod’)...
ghostscript-10.06.0/base/slzwd.c:168:9: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:324:16: branch_true: following ‘true’ branch (when ‘prev_code >= 0’)...
ghostscript-10.06.0/base/slzwd.c:330:21: branch_true: ...to here
ghostscript-10.06.0/base/slzwd.c:330:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/base/slzwd.c:370:20: branch_false: ...to here
ghostscript-10.06.0/base/slzwd.c:370:20: branch_true: following ‘true’ branch (when ‘next_code <= 4095’)...
ghostscript-10.06.0/base/slzwd.c:371:21: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:503:20: warning[-Wanalyzer-malloc-leak]: leak of ‘dict’
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:485:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:486:37: branch_true: ...to here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:486:37: acquire_memory: allocated here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:491:6: branch_false: following ‘false’ branch (when ‘dict’ is non-NULL)...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:496:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:503:20: throw: if ‘BrotliGetDictionary’ throws an exception...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:503:20: danger: ‘dict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 501| dict->num_transform_lists = 0;
# 502|
# 503|-> dict->words[0] = BrotliGetDictionary();
# 504| dict->transforms[0] = BrotliGetTransforms();
# 505|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:504:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dict’
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:485:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:486:37: branch_true: ...to here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:486:37: acquire_memory: allocated here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:491:6: branch_false: following ‘false’ branch (when ‘dict’ is non-NULL)...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:496:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:504:25: throw: if ‘BrotliGetTransforms’ throws an exception...
ghostscript-10.06.0/brotli/c/common/shared_dictionary.c:504:25: danger: ‘dict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 502|
# 503| dict->words[0] = BrotliGetDictionary();
# 504|-> dict->transforms[0] = BrotliGetTransforms();
# 505|
# 506| dict->alloc_func = alloc_func ? alloc_func : BrotliDefaultAllocFunc;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:51:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nodes’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:797:6: enter_function: entry to ‘BrotliCreateZopfliBackwardReferences’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:802:23: branch_false: following ‘false’ branch (when ‘num_bytes == 18446744073709551615’)...
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:804:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:804:3: call_function: inlined call to ‘BrotliInitZopfliNodes’ from ‘BrotliCreateZopfliBackwardReferences’
# 49| stub.dcode_insert_length = 0;
# 50| stub.u.cost = kInfinity;
# 51|-> for (i = 0; i < length; ++i) array[i] = stub;
# 52| }
# 53|
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:224:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘literal_costs’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:707:8: enter_function: entry to ‘BrotliZopfliComputeShortestPath’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:730:3: call_function: calling ‘InitZopfliCostModel’ from ‘BrotliZopfliComputeShortestPath’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:730:3: return_function: returning to ‘BrotliZopfliComputeShortestPath’ from ‘InitZopfliCostModel’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:732:3: call_function: calling ‘ZopfliCostModelSetFromLiteralCosts’ from ‘BrotliZopfliComputeShortestPath’
# 222| ringbuffer, self->literal_histograms,
# 223| &literal_costs[1]);
# 224|-> literal_costs[0] = 0.0;
# 225| for (i = 0; i < num_bytes; ++i) {
# 226| literal_carry += literal_costs[i + 1];
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:611: error[ctunullpointer]: Null pointer dereference: nodes
# 609| const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
# 610| size_t pos = 0;
# 611|-> uint32_t offset = nodes[0].u.next;
# 612| size_t i;
# 613| size_t gap = params->dictionary.compound.total_size;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:611: warning[nullPointer]: Possible null pointer dereference: nodes
# 609| const size_t max_backward_limit = BROTLI_MAX_BACKWARD_LIMIT(params->lgwin);
# 610| size_t pos = 0;
# 611|-> uint32_t offset = nodes[0].u.next;
# 612| size_t i;
# 613| size_t gap = params->dictionary.compound.total_size;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:728: warning[nullPointer]: Possible null pointer dereference: nodes
# 726| return 0;
# 727| }
# 728|-> nodes[0].length = 0;
# 729| nodes[0].u.cost = 0;
# 730| InitZopfliCostModel(m, model, ¶ms->dist, num_bytes);
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:728:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nodes’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:797:6: enter_function: entry to ‘BrotliCreateZopfliBackwardReferences’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:802:23: branch_false: following ‘false’ branch (when ‘num_bytes == 18446744073709551615’)...
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:804:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:804:3: call_function: inlined call to ‘BrotliInitZopfliNodes’ from ‘BrotliCreateZopfliBackwardReferences’
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:805:20: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:805:20: call_function: calling ‘BrotliZopfliComputeShortestPath’ from ‘BrotliCreateZopfliBackwardReferences’
# 726| return 0;
# 727| }
# 728|-> nodes[0].length = 0;
# 729| nodes[0].u.cost = 0;
# 730| InitZopfliCostModel(m, model, ¶ms->dist, num_bytes);
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/backward_references_hq.c:729: warning[nullPointer]: Possible null pointer dereference: nodes
# 727| }
# 728| nodes[0].length = 0;
# 729|-> nodes[0].u.cost = 0;
# 730| InitZopfliCostModel(m, model, ¶ms->dist, num_bytes);
# 731| if (BROTLI_IS_OOM(m)) return 0;
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:64:7: warning[-Wanalyzer-null-argument]: use of NULL ‘literals’ where non-null expected
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:125:6: enter_function: entry to ‘BrotliSplitBlock’
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:136:29: call_function: inlined call to ‘CountLiterals’ from ‘BrotliSplitBlock’
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:137:25: branch_false: following ‘false’ branch (when ‘total_length == 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:140:5: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:140:5: call_function: calling ‘CopyLiteralsToByteArray’ from ‘BrotliSplitBlock’
# 62| if (from_pos + insert_len > mask) {
# 63| size_t head_size = mask + 1 - from_pos;
# 64|-> memcpy(literals + pos, data + from_pos, head_size);
# 65| from_pos = 0;
# 66| pos += head_size;
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:70:7: warning[-Wanalyzer-null-argument]: use of NULL ‘literals’ where non-null expected
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:125:6: enter_function: entry to ‘BrotliSplitBlock’
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:136:29: call_function: inlined call to ‘CountLiterals’ from ‘BrotliSplitBlock’
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:137:25: branch_false: following ‘false’ branch (when ‘total_length == 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:140:5: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter.c:140:5: call_function: calling ‘CopyLiteralsToByteArray’ from ‘BrotliSplitBlock’
# 68| }
# 69| if (insert_len > 0) {
# 70|-> memcpy(literals + pos, data + from_pos, insert_len);
# 71| pos += insert_len;
# 72| }
Error: CPPCHECK_WARNING (CWE-682):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:232: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 230| size_t i;
# 231| uint32_t* BROTLI_RESTRICT const sizes = u32 + 0 * HISTOGRAMS_PER_BATCH;
# 232|-> uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH;
# 233| uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH;
# 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH;
Error: CPPCHECK_WARNING (CWE-682):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:233: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 231| uint32_t* BROTLI_RESTRICT const sizes = u32 + 0 * HISTOGRAMS_PER_BATCH;
# 232| uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH;
# 233|-> uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH;
# 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH;
# 235| uint32_t* BROTLI_RESTRICT const block_lengths =
Error: CPPCHECK_WARNING (CWE-682):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:234: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 232| uint32_t* BROTLI_RESTRICT const new_clusters = u32 + 1 * HISTOGRAMS_PER_BATCH;
# 233| uint32_t* BROTLI_RESTRICT const symbols = u32 + 2 * HISTOGRAMS_PER_BATCH;
# 234|-> uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH;
# 235| uint32_t* BROTLI_RESTRICT const block_lengths =
# 236| u32 + 4 * HISTOGRAMS_PER_BATCH;
Error: CPPCHECK_WARNING (CWE-682):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:236: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 234| uint32_t* BROTLI_RESTRICT const remap = u32 + 3 * HISTOGRAMS_PER_BATCH;
# 235| uint32_t* BROTLI_RESTRICT const block_lengths =
# 236|-> u32 + 4 * HISTOGRAMS_PER_BATCH;
# 237| /* TODO(eustas): move to arena? */
# 238| HistogramType* tmp = BROTLI_ALLOC(m, HistogramType, 2);
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:247: warning[nullPointer]: Possible null pointer dereference: u32
# 245| }
# 246|
# 247|-> memset(u32, 0, (num_blocks + 4 * HISTOGRAMS_PER_BATCH) * sizeof(uint32_t));
# 248|
# 249| /* Calculate block lengths (convert repeating values -> series length). */
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:247:3: warning[-Wanalyzer-null-argument]: use of NULL ‘u32’ where non-null expected
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:201:13: enter_function: entry to ‘ClusterBlocksCommand’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:206:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:206:33: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:208:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:214:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksCommand’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:247:3: danger: argument 1 (‘u32’) NULL where non-null expected
# 245| }
# 246|
# 247|-> memset(u32, 0, (num_blocks + 4 * HISTOGRAMS_PER_BATCH) * sizeof(uint32_t));
# 248|
# 249| /* Calculate block lengths (convert repeating values -> series length). */
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:278:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u32’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:201:13: enter_function: entry to ‘ClusterBlocksCommand’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:206:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:206:33: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:208:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:214:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:219:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksCommand’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:263:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:265:9: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:268:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:270:43: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:272:19: branch_false: following ‘false’ branch (when ‘k >= block_length’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:275:33: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:278:7: danger: dereference of NULL ‘u32 + j * 4’
# 276| new_clusters[j] = (uint32_t)j;
# 277| symbols[j] = (uint32_t)j;
# 278|-> sizes[j] = 1;
# 279| }
# 280| num_new_clusters = FN(BrotliHistogramCombine)(
Error: CPPCHECK_WARNING (CWE-682):
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:434: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 432| }
# 433| histograms = BROTLI_ALLOC(m, HistogramType, num_histograms + 1);
# 434|-> tmp = histograms + num_histograms;
# 435| if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(histograms)) return;
# 436| /* Find good entropy codes. */
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmp’
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: branch_true: following ‘true’ branch (when ‘length != 0’)...
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: branch_false: following ‘false’ branch (when ‘next_index == 0’)...
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/cluster_inc.h:214:59: danger: dereference of NULL ‘tmp + (long unsigned int)next_index * 2192’
# 212| Returns N, the number of unique values in symbols[]. */
# 213| BROTLI_INTERNAL size_t FN(BrotliHistogramReindex)(MemoryManager* m,
# 214|-> HistogramType* out, uint32_t* symbols, size_t length) CODE({
# 215| static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
# 216| uint32_t* new_index = BROTLI_ALLOC(m, uint32_t, length);
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:90:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:42:6: branch_false: following ‘false’ branch (when ‘slot_bits <= 16’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:43:6: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:43:6: branch_false: following ‘false’ branch (when ‘slot_bits <= bucket_bits’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:44:7: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:44:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:46:10: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:46:10: branch_false: following ‘false’ branch (when ‘alloc_size == 0’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:50:38: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:70:15: branch_true: following ‘true’ branch (when ‘i < num_slots’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:72:15: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:89:10: branch_true: following ‘true’ branch (when ‘overflow == 0’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:90:18: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:90:9: danger: dereference of NULL ‘flat + (long unsigned int)i * 4’
# 88| }
# 89| if (!overflow) {
# 90|-> slot_size[i] = count;
# 91| total_items += count;
# 92| break;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:113: warning[nullPointer]: Possible null pointer dereference: result
# 111| source_ref = (uint8_t**)(&items[total_items]);
# 112|
# 113|-> result->magic = kLeanPreparedDictionaryMagic;
# 114| result->num_items = total_items;
# 115| result->source_size = (uint32_t)source_size;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:114: warning[nullPointer]: Possible null pointer dereference: result
# 112|
# 113| result->magic = kLeanPreparedDictionaryMagic;
# 114|-> result->num_items = total_items;
# 115| result->source_size = (uint32_t)source_size;
# 116| result->hash_bits = hash_bits;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:115: warning[nullPointer]: Possible null pointer dereference: result
# 113| result->magic = kLeanPreparedDictionaryMagic;
# 114| result->num_items = total_items;
# 115|-> result->source_size = (uint32_t)source_size;
# 116| result->hash_bits = hash_bits;
# 117| result->bucket_bits = bucket_bits;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:116: warning[nullPointer]: Possible null pointer dereference: result
# 114| result->num_items = total_items;
# 115| result->source_size = (uint32_t)source_size;
# 116|-> result->hash_bits = hash_bits;
# 117| result->bucket_bits = bucket_bits;
# 118| result->slot_bits = slot_bits;
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:117: warning[nullPointer]: Possible null pointer dereference: result
# 115| result->source_size = (uint32_t)source_size;
# 116| result->hash_bits = hash_bits;
# 117|-> result->bucket_bits = bucket_bits;
# 118| result->slot_bits = slot_bits;
# 119| BROTLI_UNALIGNED_STORE_PTR(source_ref, source);
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:118: warning[nullPointer]: Possible null pointer dereference: result
# 116| result->hash_bits = hash_bits;
# 117| result->bucket_bits = bucket_bits;
# 118|-> result->slot_bits = slot_bits;
# 119| BROTLI_UNALIGNED_STORE_PTR(source_ref, source);
# 120|
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:132:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:42:6: branch_false: following ‘false’ branch (when ‘slot_bits <= 16’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:43:6: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:43:6: branch_false: following ‘false’ branch (when ‘slot_bits <= bucket_bits’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:44:7: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:44:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:46:10: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:46:10: branch_false: following ‘false’ branch (when ‘alloc_size == 0’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:50:38: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:70:15: branch_false: following ‘false’ branch (when ‘i >= num_slots’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:99:45: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:122:15: branch_false: following ‘false’ branch (when ‘i >= num_slots’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:122:15: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:127:15: branch_true: following ‘true’ branch (when ‘i < num_buckets’)...
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:128:14: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:132:30: release_memory: using NULL here
ghostscript-10.06.0/brotli/c/enc/compound_dictionary.c:132:21: danger: dereference of NULL ‘flat + (long unsigned int)slot * 4’
# 130| uint32_t pos;
# 131| size_t j;
# 132|-> size_t cursor = slot_size[slot];
# 133| if (count > slot_limit[slot]) count = slot_limit[slot];
# 134| if (count == 0) {
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/encode.c:174: warning[nullPointer]: Possible null pointer dereference: table
# 172|
# 173| *table_size = htsize;
# 174|-> memset(table, 0, htsize * sizeof(*table));
# 175| return table;
# 176| }
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/brotli/c/enc/encode.c:1047:9: warning[-Wanalyzer-null-argument]: use of NULL ‘new_commands’ where non-null expected
ghostscript-10.06.0/brotli/c/enc/encode.c:936:20: enter_function: entry to ‘EncodeData’
ghostscript-10.06.0/brotli/c/enc/encode.c:941:41: call_function: inlined call to ‘WrapPosition’ from ‘EncodeData’
ghostscript-10.06.0/brotli/c/enc/encode.c:941:12: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:979:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:981:7: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:981:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:982:6: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:984:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:987:6: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:999:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:1037:22: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:1038:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:1042:18: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:1044:22: branch_false: following ‘false’ branch (when ‘newsize == 0’)...
ghostscript-10.06.0/brotli/c/enc/encode.c:1046:11: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:1046:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/encode.c:1047:62: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/encode.c:1047:9: danger: argument 1 (‘new_commands’) NULL where non-null expected
# 1045| if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(new_commands)) return BROTLI_FALSE;
# 1046| if (s->commands_) {
# 1047|-> memcpy(new_commands, s->commands_, sizeof(Command) * s->num_commands_);
# 1048| BROTLI_FREE(m, s->commands_);
# 1049| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/histogram_inc.h:20:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/brotli/c/enc/metablock.c:338:13: enter_function: entry to ‘InitContextBlockSplitter’
ghostscript-10.06.0/brotli/c/enc/metablock.c:366:3: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:369:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:373:17: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:373:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:373:3: release_memory: ‘*histograms’ is NULL
ghostscript-10.06.0/brotli/c/enc/metablock.c:374:3: release_memory: ‘*self.histograms_’ is NULL
ghostscript-10.06.0/brotli/c/enc/metablock.c:377:3: call_function: inlined call to ‘ClearHistogramsLiteral’ from ‘InitContextBlockSplitter’
# 18| static BROTLI_INLINE void FN(HistogramClear)(FN(Histogram)* self) {
# 19| memset(self->data_, 0, sizeof(self->data_));
# 20|-> self->total_count_ = 0;
# 21| self->bit_cost_ = HUGE_VAL;
# 22| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/histogram_inc.h:20:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘histograms’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:397:13: enter_function: entry to ‘SplitByteVectorLiteral’
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:416:6: branch_false: following ‘false’ branch (when ‘length != 0’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:421:6: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:421:6: branch_false: following ‘false’ branch (when ‘length > 127’)...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:433:16: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:433:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:434:20: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/block_splitter_inc.h:437:3: call_function: calling ‘InitialEntropyCodesLiteral’ from ‘SplitByteVectorLiteral’
# 18| static BROTLI_INLINE void FN(HistogramClear)(FN(Histogram)* self) {
# 19| memset(self->data_, 0, sizeof(self->data_));
# 20|-> self->total_count_ = 0;
# 21| self->bit_cost_ = HUGE_VAL;
# 22| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/metablock.c:434:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘combined_histo’
ghostscript-10.06.0/brotli/c/enc/metablock.c:385:13: enter_function: entry to ‘ContextBlockSplitterFinishBlock’
ghostscript-10.06.0/brotli/c/enc/metablock.c:395:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:414:14: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:414:13: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:421:9: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:421:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:423:12: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:426:17: branch_true: following ‘true’ branch (when ‘i < num_contexts’)...
ghostscript-10.06.0/brotli/c/enc/metablock.c:427:30: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:429:20: call_function: inlined call to ‘BitsEntropy’ from ‘ContextBlockSplitterFinishBlock’
ghostscript-10.06.0/brotli/c/enc/metablock.c:431:19: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.06.0/brotli/c/enc/metablock.c:432:21: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:434:9: danger: dereference of NULL ‘combined_histo + jx * 1040’
# 432| size_t jx = j * num_contexts + i;
# 433| size_t last_histogram_ix = self->last_histogram_ix_[j] + i;
# 434|-> combined_histo[jx] = histograms[curr_histo_ix];
# 435| HistogramAddHistogramLiteral(&combined_histo[jx],
# 436| &histograms[last_histogram_ix]);
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/brotli/c/enc/metablock.c:535:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/brotli/c/enc/metablock.c:528:7: branch_false: following ‘false’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:527:3: branch_false: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:531:15: branch_true: following ‘true’ branch...
ghostscript-10.06.0/brotli/c/enc/metablock.c:532:23: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:534:17: branch_true: following ‘true’ branch (when ‘j != 64’)...
ghostscript-10.06.0/brotli/c/enc/metablock.c:536:38: branch_true: ...to here
ghostscript-10.06.0/brotli/c/enc/metablock.c:535:7: release_memory: ‘*mb.literal_context_map’ is NULL
ghostscript-10.06.0/brotli/c/enc/metablock.c:535:7: danger: dereference of NULL ‘*mb.literal_context_map + ((i << 6) + j) * 4’
# 533| size_t j;
# 534| for (j = 0; j < (1u << BROTLI_LITERAL_CONTEXT_BITS); ++j) {
# 535|-> mb->literal_context_map[(i << BROTLI_LITERAL_CONTEXT_BITS) + j] =
# 536| offset + static_context_map[j];
# 537| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:381:12: warning[-Wanalyzer-malloc-leak]: leak of ‘get_sysname()’
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:807:1: enter_function: entry to ‘escv_beginpage’
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:955:23: call_function: calling ‘get_sysname’ from ‘escv_beginpage’
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:955:23: return_function: returning to ‘escv_beginpage’ from ‘get_sysname’
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:956:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:958:11: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:796:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdest’
ghostscript-10.06.0/contrib/eplaser/gdevescv.c:795:13: branch_true: following ‘true’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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-457):
ghostscript-10.06.0/contrib/gdevln03.c:367:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
ghostscript-10.06.0/contrib/gdevln03.c:291:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/gdevln03.c:293:5: branch_false: ...to here
ghostscript-10.06.0/contrib/gdevln03.c:297:29: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/gdevln03.c:298:9: branch_true: ...to here
ghostscript-10.06.0/contrib/gdevln03.c:304:42: branch_false: following ‘false’ branch (when ‘l < 0’)...
ghostscript-10.06.0/contrib/gdevln03.c:367:12: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/gdevlx32.c: scope_hint: In function ‘finalizeheader’
ghostscript-10.06.0/contrib/gdevlx32.c:1298:23: warning[-Wmaybe-uninitialized]: ‘offs2’ may be used uninitialized
# 1298 | nstartabs = newstart + offs2;
# | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/gdevmd2k.c:387:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘contflag’
ghostscript-10.06.0/contrib/gdevmd2k.c:372:11: branch_true: following ‘true’ branch (when ‘p_in < p_end’)...
ghostscript-10.06.0/contrib/gdevmd2k.c:375:18: branch_true: ...to here
ghostscript-10.06.0/contrib/gdevmd2k.c:376:16: branch_false: following ‘false’ branch (when ‘count >= climit’)...
ghostscript-10.06.0/contrib/gdevmd2k.c:381:12: branch_false: ...to here
ghostscript-10.06.0/contrib/gdevmd2k.c:381:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
ghostscript-10.06.0/contrib/gdevmd2k.c:387:12: branch_false: ...to here
ghostscript-10.06.0/contrib/gdevmd2k.c:387:12: danger: use of uninitialized value ‘contflag’ here
# 385| }
# 386|
# 387|-> if (contflag) {
# 388| climit = min(129, p_end - p_in);
# 389| p_in += 3;
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/lips4/gdevl4v.c:1935: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1933| int i, j;
# 1934| uint width_bytes = (w + 7) >> 3;
# 1935|-> uint num_bytes = round_up(width_bytes, 4) * h;
# 1936| byte *buf;
# 1937|
Error: CPPCHECK_WARNING (CWE-190):
ghostscript-10.06.0/contrib/lips4/gdevl4v.c:1938: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1936| byte *buf;
# 1937|
# 1938|-> if (h != 0 && num_bytes / h != round_up(width_bytes, 4))
# 1939| return gs_note_error(gs_error_undefinedresult);
# 1940|
Error: CPPCHECK_WARNING (CWE-190):
ghostscript-10.06.0/contrib/lips4/gdevl4v.c:2116: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 2114| int i;
# 2115| uint width_bytes = (w + 7) >> 3;
# 2116|-> uint num_bytes = round_up(width_bytes, 4) * h;
# 2117| byte *buf;
# 2118|
Error: CPPCHECK_WARNING (CWE-190):
ghostscript-10.06.0/contrib/lips4/gdevl4v.c:2119: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 2117| byte *buf;
# 2118|
# 2119|-> if (h != 0 && num_bytes / h != round_up(width_bytes, 4))
# 2120| return gs_note_error(gs_error_undefinedresult);
# 2121|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:972:12: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4981:1: enter_function: entry to ‘opvp_setdash’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4999:8: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5000:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5000:13: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5001:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5001:12: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5002:25: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5012:13: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5012:13: call_function: calling ‘gsopvpSetLineDash’ from ‘opvp_setdash’
# 970| gx_device_opvp *opdev = (gx_device_opvp*)dev;
# 971|
# 972|-> return opdev->globals.apiEntry_0_2->SetLineDash(printerContext, num,
# 973| /* remove const */ (OPVP_Fix *)pdash);
# 974| }
Error: GCC_ANALYZER_WARNING (CWE-775):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:1001:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dumFD’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:2262:1: enter_function: entry to ‘opvp_open’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:2280:12: call_function: calling ‘prepare_open’ from ‘opvp_open’
# 999|
# 1000| if (opdev->globals.OpenPrinter != NULL) {
# 1001|-> dc = (*(opdev->globals.OpenPrinter))(outputFD, printerModel, apiVersion, apiProcs);
# 1002| } else {
# 1003| /* try version 0.2 */
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:1286:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4981:1: enter_function: entry to ‘opvp_setdash’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4999:8: branch_true: following ‘true’ branch (when ‘count != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5000:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5000:13: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5001:12: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5001:12: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5002:25: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5012:13: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5012:13: call_function: calling ‘gsopvpSetLineDash’ from ‘opvp_setdash’
# 1284| return SetLineDashWrapper(dev, printerContext, num, pdash);
# 1285| } else if (opdev->globals.apiEntry->opvpSetLineDash) {
# 1286|-> return opdev->globals.apiEntry->opvpSetLineDash(printerContext, num, pdash);
# 1287| } else
# 1288| return OPVP_FATALERROR;
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:1494:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘opvp_p’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5162:1: enter_function: entry to ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5198:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5205:14: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5212:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5214:23: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5220:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5227:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5294:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5296:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5302:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5306:27: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5212:12: branch_false: following ‘false’ branch (when ‘begin == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5230:19: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5230:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5232:17: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5232:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
# 1492| opvp_realloc(void **old, size_t size)
# 1493| {
# 1494|-> void *buf = realloc(*old, size);
# 1495| if (buf)
# 1496| *old = buf;
Error: COMPILER_WARNING:
ghostscript-10.06.0/contrib/opvp/gdevopvp.c: scope_hint: In function ‘opvp_gen_page_info’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:1891:48: warning[-Wformat-truncation=]: ‘%s’ directive argument is null
# 1891 | snprintf(wbuff, OPVP_BUFF_SIZE - 1, "%s_%s_%s%s", region, name,
# | ^~
# 1889| }
# 1890| memset((void*)wbuff, 0, OPVP_BUFF_SIZE);
# 1891|-> snprintf(wbuff, OPVP_BUFF_SIZE - 1, "%s_%s_%s%s", region, name,
# 1892| opvp_get_sizestring(width, height),
# 1893| unit);
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:1892: error[nullPointer]: Null pointer dereference
# 1890| memset((void*)wbuff, 0, OPVP_BUFF_SIZE);
# 1891| snprintf(wbuff, OPVP_BUFF_SIZE - 1, "%s_%s_%s%s", region, name,
# 1892|-> opvp_get_sizestring(width, height),
# 1893| unit);
# 1894| buff = opvp_alloc_string(&buff, wbuff);
Error: GCC_ANALYZER_WARNING (CWE-775):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:2247:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dumFD’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:2262:1: enter_function: entry to ‘opvp_open’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:2280:12: call_function: calling ‘prepare_open’ from ‘opvp_open’
# 2245| /* close device for dummy */
# 2246| if (dumFD != -1) {
# 2247|-> close(dumFD);
# 2248| dumFD = -1;
# 2249| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3207:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mybuf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3122:8: branch_false: following ‘false’ branch (when ‘data_x == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3160:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3189:8: branch_true: following ‘true’ branch (when ‘reverse != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3191:20: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3193:12: branch_true: following ‘true’ branch (when ‘buff == data’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3196:26: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3196:26: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3196:16: branch_false: following ‘false’ branch (when ‘mybuf’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3198:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3206:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3207:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3207:9: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3207:9: danger: ‘mybuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 3205| OPVP_I2FIX(y, point.y);
# 3206| if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
# 3207|-> opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext,point.x, point.y);
# 3208| }
# 3209|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3316:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mybuf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3284:8: branch_true: following ‘true’ branch (when ‘data_x != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3286:17: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3292:24: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3293:12: branch_false: following ‘false’ branch (when ‘mybuf’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3297:20: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3299:20: branch_true: following ‘true’ branch (when ‘i < h’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3300:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3299:20: branch_true: following ‘true’ branch (when ‘i < h’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3300:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3315:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3316:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3316:9: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3316:9: danger: ‘mybuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 3314| OPVP_I2FIX(y, point.y);
# 3315| if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
# 3316|-> opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext, point.x, point.y);
# 3317| }
# 3318|
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3539: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3537| return_error(gs_error_invalidaccess);
# 3538| }
# 3539|-> buff = realloc(buff, vdps.size + 1);
# 3540| if (opvp_realloc((void**)&buff, vdps.size + 1) == NULL) {
# 3541| ecode = gs_error_VMerror;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3542:13: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(0, (long unsigned int)(vdps.size + 1))’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3540:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3542:13: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3542:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3542:13: danger: ‘realloc(0, (long unsigned int)(vdps.size + 1))’ leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
# 3540| if (opvp_realloc((void**)&buff, vdps.size + 1) == NULL) {
# 3541| ecode = gs_error_VMerror;
# 3542|-> param_signal_error(plist, pname, ecode);
# 3543| break;
# 3544| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3540:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3545:33: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: danger: ‘buf’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
# 3547| if (opvp_alloc_string(&(opdev->globals.vectorDriver), buff) == NULL) {
# 3548| ecode = gs_error_VMerror;
# 3549|-> param_signal_error(plist, pname, ecode);
# 3550| }
# 3551| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3562:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3540:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3545:33: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3562:12: throw: if ‘param_read_string’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3562:12: danger: ‘buf’ leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
# 3560| /* printer model name */
# 3561| pname = "Model";
# 3562|-> code = param_read_string(plist, pname, &pmps);
# 3563| switch (code) {
# 3564| case 0:
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3565: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3563| switch (code) {
# 3564| case 0:
# 3565|-> buff = realloc(buff, pmps.size + 1);
# 3566| memcpy(buff, pmps.data, pmps.size);
# 3567| buff[pmps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3566:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
# 3564| case 0:
# 3565| buff = realloc(buff, pmps.size + 1);
# 3566|-> memcpy(buff, pmps.data, pmps.size);
# 3567| buff[pmps.size] = 0;
# 3568| if (opvp_alloc_string(&(opdev->globals.printerModel), buff) == NULL) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3570:13: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(buff, (long unsigned int)(pmps.size + 1))’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3568:13: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3568:13: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3568:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3570:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3570:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3570:13: danger: ‘realloc(buff, (long unsigned int)(pmps.size + 1))’ leaks here; was allocated at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
# 3568| if (opvp_alloc_string(&(opdev->globals.printerModel), buff) == NULL) {
# 3569| ecode = gs_error_VMerror;
# 3570|-> param_signal_error(plist, pname, ecode);
# 3571| }
# 3572| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3578:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3540:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3545:33: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:13: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3547:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3549:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3578:9: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3578:9: danger: ‘buf’ leaks here; was allocated at [(6)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/5)
# 3576| default:
# 3577| ecode = code;
# 3578|-> param_signal_error(plist, pname, ecode);
# 3579| }
# 3580|
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3586: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3584| switch (code) {
# 3585| case 0:
# 3586|-> buff = realloc(buff, jips.size + 1);
# 3587| if (opvp_realloc((void**)&buff, jips.size + 1) == NULL) {
# 3588| ecode = gs_error_VMerror;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3589:13: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(buff, (long unsigned int)(jips.size + 1))’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3587:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3589:13: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3589:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3589:13: danger: ‘realloc(buff, (long unsigned int)(jips.size + 1))’ leaks here; was allocated at [(4)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/3)
# 3587| if (opvp_realloc((void**)&buff, jips.size + 1) == NULL) {
# 3588| ecode = gs_error_VMerror;
# 3589|-> param_signal_error(plist, pname, ecode);
# 3590| break;
# 3591| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3596:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3510:1: enter_function: entry to ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3587:13: call_function: inlined call to ‘opvp_realloc’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3592:33: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3594:13: call_function: calling ‘opvp_alloc_string’ from ‘_put_params’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3594:13: return_function: returning to ‘_put_params’ from ‘opvp_alloc_string’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3594:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3596:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3596:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3596:13: danger: ‘buf’ leaks here; was allocated at [(6)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/5)
# 3594| if (opvp_alloc_string(&(opdev->globals.jobInfo), buff) == NULL) {
# 3595| ecode = gs_error_VMerror;
# 3596|-> param_signal_error(plist, pname, ecode);
# 3597| }
# 3598| break;
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:3612: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3610| switch (code) {
# 3611| case 0:
# 3612|-> buff = realloc(buff, dips.size + 1);
# 3613| if (opvp_realloc((void**)&buff, dips.size + 1) == NULL) {
# 3614| ecode = gs_error_VMerror;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4395:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4392:11: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4394:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4395:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4395:9: throw: if ‘gx_image_plane_data’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4395:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
# 4393|
# 4394| if (vinfo->default_info) {
# 4395|-> gx_image_plane_data(vinfo->default_info, planes, height);
# 4396| }
# 4397| if (vinfo->bbox_info) {
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4398:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4392:11: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4397:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4398:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4398:9: throw: if ‘gx_image_plane_data’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4398:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 4396| }
# 4397| if (vinfo->bbox_info) {
# 4398|-> gx_image_plane_data(vinfo->bbox_info, planes, height);
# 4399| }
# 4400|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4392:11: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4401:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4403:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4404:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4408:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4457:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4461:17: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4719:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4719:12: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4720:25: branch_true: following ‘true’ branch (when ‘i < height’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4721:29: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4722:29: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: throw: if ‘gx_color_frac_map’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4723:34: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 4721| ptr = buf + raster_length * i;
# 4722| for (j = 0; j < vinfo->width; j++) {
# 4723|-> ptr[j*3+0] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+0]), effective_transfer[0]));
# 4724| ptr[j*3+1] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+1]), effective_transfer[1]));
# 4725| ptr[j*3+2] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j*3+2]), effective_transfer[2]));
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4392:11: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4401:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4403:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4404:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4408:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4457:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4461:17: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4719:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4728:19: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4728:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4728:19: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4729:25: branch_true: following ‘true’ branch (when ‘i < height’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4730:29: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4731:27: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: throw: if ‘gx_color_frac_map’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4732:30: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 4730| ptr = buf + raster_length * i;
# 4731| for (j=0; j < vinfo->width; j++) {
# 4732|-> ptr[j] = frac2byte(gx_map_color_frac(pgs, byte2frac(ptr[j]), effective_transfer[3]));
# 4733| }
# 4734| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4739:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4384:8: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4392:11: acquire_memory: allocated here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4401:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4403:9: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4404:12: branch_false: following ‘false’ branch (when ‘pbe’ is non-NULL)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4408:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4457:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4461:17: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4719:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4728:19: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4728:19: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4738:13: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4738:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4740:25: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4739:13: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:4739:13: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 4737| /* call TansferDrawImage */
# 4738| if (opdev->globals.apiEntry->opvpTransferDrawImage) {
# 4739|-> opdev->globals.apiEntry->opvpTransferDrawImage(opdev->globals.printerContext,
# 4740| raster_length * height, (void *)buf);
# 4741| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5162:1: enter_function: entry to ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5198:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5205:14: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5212:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5214:23: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5220:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5227:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5294:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5296:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5302:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5306:27: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: throw: if ‘gx_path_enum_next’ throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: danger: ‘buf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
# 5209|
# 5210| while (!ecode) {
# 5211|-> op = gx_path_enum_next(&path, (gs_fixed_point *)vs);
# 5212| if (begin) {
# 5213| /* start point */
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5336: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5334| goto exit;
# 5335| }
# 5336|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5337| points[i].x = fixed2float(vs[0]) / scale.x;
# 5338| points[i].y = fixed2float(vs[1]) / scale.y;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5395:20: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5162:1: enter_function: entry to ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5198:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5205:14: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5212:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5214:23: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5220:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5227:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5294:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5296:9: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5395:20: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5395:20: danger: ‘buf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
# 5393| case gs_pe_closepath:
# 5394| /* close path */
# 5395|-> code = (*vdev_proc(vdev, closepath))(
# 5396| vdev,
# 5397| points[0].x,
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5420:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5162:1: enter_function: entry to ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5198:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5205:14: branch_false: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5210:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5211:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5212:12: branch_true: following ‘true’ branch (when ‘begin != 0’)...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5214:23: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5220:17: call_function: inlined call to ‘opvp_realloc’ from ‘opvp_vector_dopath’
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5227:13: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5294:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5420:14: branch_true: ...to here
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5420:12: throw: if the called function throws an exception...
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:5420:12: danger: ‘buf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
# 5418|
# 5419| /* end path */
# 5420|-> code = (*vdev_proc(vdev, endpath))(vdev, type);
# 5421| if (code) ecode = code;
# 5422|
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:409:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘approx[0]’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:562:6: enter_function: entry to ‘eprn_split_FS’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:567:6: branch_false: following ‘false’ branch (when ‘colour_model != 0’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:573:12: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:577:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:578:7: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:511:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘approx[0]’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:480:22: branch_true: following ‘true’ branch (when ‘colorant != 3’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:481:25: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:490:36: branch_true: following ‘true’ branch (when ‘pixel < pixels’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: following ‘true’ branch (when ‘pixel_mod_8 == 8’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:491:8: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:493:23: branch_false: following ‘false’ branch (when ‘plane >= planes’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:497:5: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:497:36: branch_false: following ‘false’ branch (when ‘colorant == -1’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:510:8: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:510:8: branch_true: following ‘true’ branch (when ‘colour_model == 3’)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnfs.c:511:9: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:447:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:393:12: enter_function: entry to ‘eprn_read_media_data’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:8: branch_true: following ‘true’ branch (when ‘s’ is NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:47: call_function: inlined call to ‘gp_fgetc’ from ‘eprn_read_media_data’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:446:24: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:447:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:447:26: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:505:27: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:505:27: throw: if ‘ms_find_code_from_name’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:506:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:507:9: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:507:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:514:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_list’
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:408:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:416:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:421:5: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:424:8: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:433:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:482:10: branch_false: following ‘false’ branch (when ‘new_list’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:493:20: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:506:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:513:11: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:513:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:514:9: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/eprnparm.c:514:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:308:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:272:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:283:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:283:6: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:286:9: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:287:6: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:287:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:294:10: branch_true: following ‘true’ branch (when ‘t’ is NULL)...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:294:45: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:299:7: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:305:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:306:7: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:376:7: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:368:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:369:29: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:369:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:370:18: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:371:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/eprn/mediasize.c:375:16: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/eprn/pagecount.c:67:8: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.06.0/contrib/pcl3/eprn/pagecount.c:58:12: enter_function: entry to ‘lock_file’
ghostscript-10.06.0/contrib/pcl3/eprn/pagecount.c:67:8: call_function: inlined call to ‘gp_get_file’ from ‘lock_file’
ghostscript-10.06.0/contrib/pcl3/eprn/pagecount.c:67:8: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:360:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:346:6: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:352:44: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:360:12: branch_true: following ‘true’ branch (when ‘t > s’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:360:21: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:361:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:346:6: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:352:44: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:360:12: branch_false: following ‘false’ branch (when ‘t <= s’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:361:5: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: warning[-Wanalyzer-malloc-leak]: leak of ‘lengths’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1509:29: acquire_memory: allocated here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1510:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: throw: if ‘eprn_number_of_octets’ throws an exception...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: danger: ‘lengths’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1512| goto end;
# 1513| }
# 1514|-> eprn_number_of_octets((eprn_Device *)dev, lengths);
# 1515| alloc_size = planes*sizeof(pcl_OctetString);
# 1516| rd.next = (pcl_OctetString *)malloc(alloc_size);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.next’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1510:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1516:32: acquire_memory: allocated here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1543:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1552:28: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1561:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:72: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: throw: if ‘pcl3_begin_page’ throws an exception...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: danger: ‘rd.next’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1566|
# 1567| /* Open the page and start raster mode */
# 1568|-> rc = convert(pcl3_begin_page(out, &dev->file_data));
# 1569| if (rc) {
# 1570| (void) gs_note_error(rc);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.workspace[0]’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1510:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1543:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1552:28: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1560:20: acquire_memory: allocated here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1561:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:72: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: throw: if ‘pcl3_begin_page’ throws an exception...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: danger: ‘rd.workspace[0]’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
# 1566|
# 1567| /* Open the page and start raster mode */
# 1568|-> rc = convert(pcl3_begin_page(out, &dev->file_data));
# 1569| if (rc) {
# 1570| (void) gs_note_error(rc);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.next’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1470:12: enter_function: entry to ‘pcl3_print_page’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1510:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1516:32: acquire_memory: allocated here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1543:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1552:28: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1561:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:72: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: call_function: inlined call to ‘convert’ from ‘pcl3_print_page’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: throw: if ‘pcl3_begin_raster’ throws an exception...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: danger: ‘rd.next’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
# 1571| goto end;
# 1572| }
# 1573|-> rc = convert(pcl3_begin_raster(out, &rd));
# 1574| if (rc) {
# 1575| (void) gs_note_error(rc);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: warning[-Wanalyzer-malloc-leak]: leak of ‘rd.workspace[0]’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1470:12: enter_function: entry to ‘pcl3_print_page’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1510:6: branch_false: following ‘false’ branch (when ‘lengths’ is non-NULL)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1514:3: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1517:6: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1543:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1552:28: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1553:15: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1560:20: acquire_memory: allocated here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1561:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:72: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: following ‘true’ branch (when ‘j != 2’)...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_true: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1557:7: branch_false: following ‘false’ branch...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1568:8: call_function: inlined call to ‘convert’ from ‘pcl3_print_page’
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: branch_false: ...to here
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: throw: if ‘pcl3_begin_raster’ throws an exception...
ghostscript-10.06.0/contrib/pcl3/src/gdevpcl3.c:1573:8: danger: ‘rd.workspace[0]’ leaks here; was allocated at [(14)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/13)
# 1571| goto end;
# 1572| }
# 1573|-> rc = convert(pcl3_begin_raster(out, &rd));
# 1574| if (rc) {
# 1575| (void) gs_note_error(rc);
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/cups/gdevcups.c:2994:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.06.0/cups/gdevcups.c:2889:1: enter_function: entry to ‘cups_print_pages’
ghostscript-10.06.0/cups/gdevcups.c:2952:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/cups/gdevcups.c:2955:3: branch_false: ...to here
ghostscript-10.06.0/cups/gdevcups.c:2964:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/cups/gdevcups.c:2967:22: branch_false: ...to here
ghostscript-10.06.0/cups/gdevcups.c:2973:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/cups/gdevcups.c:2975:21: branch_true: ...to here
ghostscript-10.06.0/cups/gdevcups.c:2994:25: call_function: inlined call to ‘gp_get_file’ from ‘cups_print_pages’
ghostscript-10.06.0/cups/gdevcups.c:2994:25: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdev4693.c:124:35: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/devices/gdev4693.c:124:35: danger: infinite loop here
ghostscript-10.06.0/devices/gdev4693.c:124:35: branch_true: if it ever follows ‘true’ branch, it will always do so...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevdjtc.c:133:20: warning[-Wanalyzer-malloc-leak]: leak of ‘bitData’
ghostscript-10.06.0/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.06.0/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:125:24: acquire_memory: allocated here
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:129:22: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevdjtc.c:133:20: branch_true: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:133:20: throw: if ‘gdev_prn_copy_scan_lines’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevdjtc.c:267:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
ghostscript-10.06.0/devices/gdevdjtc.c:77:1: enter_function: entry to ‘djet500c_print_page’
ghostscript-10.06.0/devices/gdevdjtc.c:121:12: branch_false: following ‘false’ branch (when ‘lineSize > 0’)...
ghostscript-10.06.0/devices/gdevdjtc.c:125:31: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: following ‘false’ branch (when ‘bitData’ is non-NULL)...
ghostscript-10.06.0/devices/gdevdjtc.c:126:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:129:22: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevdjtc.c:133:20: branch_true: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:134:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevdjtc.c:138:23: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:153:20: branch_false: following ‘false’ branch (when ‘planeSize >= lineLen’)...
ghostscript-10.06.0/devices/gdevdjtc.c:168:17: branch_false: ...to here
ghostscript-10.06.0/devices/gdevdjtc.c:168:29: branch_false: following ‘false’ branch (when ‘k >= lineLen’)...
ghostscript-10.06.0/devices/gdevdjtc.c:186:20: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:822:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:822:19: throw: if ‘ijs_invoke_server’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:824:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:824:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:824:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:827:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:824:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:826:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.06.0/devices/gdevijs.c:827:13: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:827:13: throw: if ‘close’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:831:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:831:27: throw: if ‘ijs_client_get_version’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:833:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:9: throw: if ‘ijs_client_open’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:834:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:834:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:834:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:836:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:834:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:835:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.06.0/devices/gdevijs.c:836:13: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:836:13: throw: if ‘close’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:839:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:839:9: throw: if ‘ijs_client_begin_job’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:840:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:840:9: throw: if ‘gs_revision_number’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:841:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:841:9: throw: if ‘ijs_client_close’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:843:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:839:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevijs.c:840:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:842:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
ghostscript-10.06.0/devices/gdevijs.c:843:13: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:843:13: throw: if ‘close’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevijs.c:851:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ghostscript-10.06.0/devices/gdevijs.c:767:1: enter_function: entry to ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:775:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:780:5: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:796:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:803:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:807:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:807:22: call_function: inlined call to ‘gp_get_file’ from ‘gsijs_open’
ghostscript-10.06.0/devices/gdevijs.c:809:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:812:18: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:812:18: acquire_resource: opened here
ghostscript-10.06.0/devices/gdevijs.c:813:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
ghostscript-10.06.0/devices/gdevijs.c:822:37: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:823:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:831:27: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:833:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:839:9: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:839:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevijs.c:847:8: branch_false: ...to here
ghostscript-10.06.0/devices/gdevijs.c:847:8: branch_true: following ‘true’ branch (when ‘use_outputfd != 0’)...
ghostscript-10.06.0/devices/gdevijs.c:851:9: branch_true: ...to here
ghostscript-10.06.0/devices/gdevijs.c:851:9: throw: if ‘gs_snprintf’ throws an exception...
ghostscript-10.06.0/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: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevjpeg.c: scope_hint: In function ‘jpeg_put_params’
ghostscript-10.06.0/devices/gdevjpeg.c:237:10: warning[-Wunused-variable]: unused variable ‘embed_profile’
# 237 | bool embed_profile = jdev->EmbedProfile, bparam;
# | ^~~~~~~~~~~~~
# 235| float qf = jdev->QFactor;
# 236| float fparam;
# 237|-> bool embed_profile = jdev->EmbedProfile, bparam;
# 238|
# 239| ecode = gx_downscaler_read_params(plist, &jdev->downscale, 0);
Error: CPPCHECK_WARNING (CWE-758):
ghostscript-10.06.0/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:
ghostscript-10.06.0/devices/gdevlxm.c: scope_hint: In function ‘lxm5700m_print_page’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevpdfimg.c:620: error[uninitvar]: Uninitialized variable: buf
# 618| stream_cursor_write_init(&w, buf, sizeof(buf));
# 619| status = (*templat->process) (st, &r, &w, true);
# 620|-> stream_write(s, buf, (uint) (w.ptr + 1 - buf));
# 621| }
# 622| while (status == 1);
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/devices/gdevpng.c:433:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ecode’
ghostscript-10.06.0/devices/gdevpng.c:423:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:426:17: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:426:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:429:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:430:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevpng.c:433:12: branch_false: ...to here
ghostscript-10.06.0/devices/gdevpng.c:433:12: danger: use of uninitialized value ‘ecode’ here
# 431| ecode = code;
# 432|
# 433|-> return ecode;
# 434| }
# 435|
Error: COMPILER_WARNING (CWE-457):
ghostscript-10.06.0/devices/gdevpng.c: scope_hint: In function ‘png_get_params_mfs’
ghostscript-10.06.0/devices/gdevpng.c:433:12: warning[-Wmaybe-uninitialized]: ‘ecode’ may be used uninitialized
# 433 | return ecode;
# | ^~~~~
ghostscript-10.06.0/devices/gdevpng.c:421:15: note: ‘ecode’ was declared here
# 421 | int code, ecode;
# | ^~~~~
# 431| ecode = code;
# 432|
# 433|-> return ecode;
# 434| }
# 435|
Error: COMPILER_WARNING:
ghostscript-10.06.0/devices/gdevpng.c: scope_hint: In function ‘do_png_print_page’
ghostscript-10.06.0/devices/gdevpng.c:546:17: warning[-Wunused-but-set-variable=]: variable ‘valid’ set but not used
# 546 | png_uint_32 valid = 0;
# | ^~~~~
# 544| png_color *palettep;
# 545| png_uint_16 num_palette;
# 546|-> png_uint_32 valid = 0;
# 547| int upfactor, downfactor;
# 548|
Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevpsd.c:162:21: warning[-Wunused-variable]: unused variable ‘dsep’
# 162 | gs_separations *dsep, *ssep;
# | ^~~~
# 160| gs_devn_params *dst_params = &dev->devn_params;
# 161| gs_devn_params *src_params = si->params;
# 162|-> gs_separations *dsep, *ssep;
# 163| equivalent_cmyk_color_params *dequiv = &dev->equiv_cmyk_colors;
# 164| equivalent_cmyk_color_params *sequiv = si->equiv;
Error: COMPILER_WARNING (CWE-563):
ghostscript-10.06.0/devices/gdevpsd.c: scope_hint: In function ‘update_spots’
ghostscript-10.06.0/devices/gdevpsd.c:162:28: warning[-Wunused-variable]: unused variable ‘ssep’
# 162 | gs_separations *dsep, *ssep;
# | ^~~~
# 160| gs_devn_params *dst_params = &dev->devn_params;
# 161| gs_devn_params *src_params = si->params;
# 162|-> gs_separations *dsep, *ssep;
# 163| equivalent_cmyk_color_params *dequiv = &dev->equiv_cmyk_colors;
# 164| equivalent_cmyk_color_params *sequiv = si->equiv;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/gdevtknk.c:162:16: warning[-Wanalyzer-malloc-leak]: leak of ‘indata1’
ghostscript-10.06.0/devices/gdevtknk.c:144:21: acquire_memory: allocated here
ghostscript-10.06.0/devices/gdevtknk.c:145:8: branch_false: following ‘false’ branch (when ‘indata1’ is non-NULL)...
ghostscript-10.06.0/devices/gdevtknk.c:148:15: branch_false: ...to here
ghostscript-10.06.0/devices/gdevtknk.c:160:22: branch_true: following ‘true’ branch (when ‘scan_line < scan_lines’)...
ghostscript-10.06.0/devices/gdevtknk.c:162:16: branch_true: ...to here
ghostscript-10.06.0/devices/gdevtknk.c:162:16: throw: if ‘gdev_prn_copy_scan_lines’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/gdevupd.c:3523: error[integerOverflow]: Signed integer underflow for expression 'hv-lv'.
# 3521| upd->valbuf[i] = v;
# 3522| }
# 3523|-> scale = (float) comp->threshold / (float) (hv - lv);
# 3524| lv += (int32_t)(comp->threshold / (2*scale));
# 3525| for(i = icomp; i < upd->nvalbuf; i += upd->ncomp)
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:4222:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.06.0/devices/gdevupd.c:4202:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.06.0/devices/gdevupd.c:4205:15: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4214:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4216:10: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4217:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4218:10: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4222:25: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4222:58: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4222:57: danger: dereference of NULL ‘ip’
# 4220|
# 4221| for(iy = 1; iy < upd->ints[I_NYPASS]; ++iy) {
# 4222|-> for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4223| *ip++ = 1;
# 4224| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:4223:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.06.0/devices/gdevupd.c:4202:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.06.0/devices/gdevupd.c:4205:15: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4214:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4216:10: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4217:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4218:10: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4222:25: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4223:14: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4223:13: danger: dereference of NULL ‘ip’
# 4221| for(iy = 1; iy < upd->ints[I_NYPASS]; ++iy) {
# 4222| for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4223|-> *ip++ = 1;
# 4224| }
# 4225| for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:4225:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.06.0/devices/gdevupd.c:4202:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.06.0/devices/gdevupd.c:4205:15: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4214:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4216:10: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4217:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4218:10: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4225:22: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4225:55: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4225:54: danger: dereference of NULL ‘ip’
# 4223| *ip++ = 1;
# 4224| }
# 4225|-> for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4226| *ip = upd->ints[I_NYPASS] * upd->ints[I_PINS2WRITE]
# 4227| - upd->ints[I_NYPASS] + 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:4226:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.06.0/devices/gdevupd.c:4202:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.06.0/devices/gdevupd.c:4205:15: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4214:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4216:10: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4217:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4218:10: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4221:22: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4225:22: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4226:16: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4226:10: danger: dereference of NULL ‘ip’
# 4224| }
# 4225| for(ix = 1; ix < upd->ints[I_NXPASS]; ++ix) *ip++ = 0;
# 4226|-> *ip = upd->ints[I_NYPASS] * upd->ints[I_PINS2WRITE]
# 4227| - upd->ints[I_NYPASS] + 1;
# 4228|
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:4268:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ip’
ghostscript-10.06.0/devices/gdevupd.c:4202:6: branch_true: following ‘true’ branch (when ‘success != 0’)...
ghostscript-10.06.0/devices/gdevupd.c:4205:15: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4260:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4263:10: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4263:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4264:10: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4267:29: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:4268:21: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:4268:13: danger: dereference of NULL ‘ip’
# 4266|
# 4267| for(i = 0, ix = 0; i < upd->int_a[IA_STD_IX].size; ++i) {
# 4268|-> *ip++ = ix++;
# 4269| if(ix == upd->ints[I_NXPASS]) ix = 0;
# 4270| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:5448:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
ghostscript-10.06.0/devices/gdevupd.c:5430:4: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5431:7: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5441:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5443:13: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5444:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5445:43: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5447:26: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5448:17: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5448:16: danger: dereference of NULL ‘bp’
# 5446| upd->int_a[IA_ROWMASK].data = bp;
# 5447| for (i = 0 ; i < upd->ints[I_PATRPT] ; i++){
# 5448|-> *bp++ = 1; /* black */
# 5449| }
# 5450| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/gdevupd.c:5459:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
ghostscript-10.06.0/devices/gdevupd.c:5430:4: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5431:7: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5452:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5454:13: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5455:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5456:42: branch_false: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5458:26: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/gdevupd.c:5459:17: branch_true: ...to here
ghostscript-10.06.0/devices/gdevupd.c:5459:16: danger: dereference of NULL ‘bp’
# 5457| upd->int_a[IA_SCNOFS].data = bp;
# 5458| for (i = 0 ; i < upd->ints[I_PATRPT] ; i++){
# 5459|-> *bp++ = i;
# 5460| }
# 5461| }
Error: CPPCHECK_WARNING (CWE-401):
ghostscript-10.06.0/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-401):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1401:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1502:1: enter_function: entry to ‘even_better_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1518:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1520:42: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1521:14: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1523:52: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1518:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1520:42: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1520:34: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1521:14: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1523:52: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1523:11: call_function: calling ‘even_better_compress_rll’ from ‘even_better_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1523:11: return_function: returning to ‘even_better_line’ from ‘even_better_compress_rll’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1518:19: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1525:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1525:7: call_function: calling ‘even_better_line_rll’ from ‘even_better_line’
# 1399| codes here. As it is, it will just waste storage a bit. */
# 1400| for (i = 0; i < ebc->n_planes; i++)
# 1401|-> fwrite (src[i], sizeof(ET_Rll), ebc->source_width,
# 1402| ebc->dump_file);
# 1403| }
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1542:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.rb_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1540| even_better_plane_free (EBPlaneCtx *ctx)
# 1541| {
# 1542|-> free (ctx->rb_line);
# 1543| free (ctx->iir_line);
# 1544| free (ctx->r_line);
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1542:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1731:1: enter_function: entry to ‘even_better_new’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1739:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1778:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1781:30: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1790:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1793:3: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1847:10: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1847:10: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1849:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1850:9: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1850:32: call_function: calling ‘even_better_plane_new’ from ‘even_better_new’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1850:32: return_function: returning to ‘even_better_new’ from ‘even_better_plane_new’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1849:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1851:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1851:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1852:11: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1857:3: call_function: calling ‘even_better_free’ from ‘even_better_new’
# 1540| even_better_plane_free (EBPlaneCtx *ctx)
# 1541| {
# 1542|-> free (ctx->rb_line);
# 1543| free (ctx->iir_line);
# 1544| free (ctx->r_line);
Error: GCC_ANALYZER_WARNING (CWE-416):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1542:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘ctx’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1540| even_better_plane_free (EBPlaneCtx *ctx)
# 1541| {
# 1542|-> free (ctx->rb_line);
# 1543| free (ctx->iir_line);
# 1544| free (ctx->r_line);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1543:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.iir_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1541| {
# 1542| free (ctx->rb_line);
# 1543|-> free (ctx->iir_line);
# 1544| free (ctx->r_line);
# 1545| free (ctx->a_line);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1544:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.r_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1542| free (ctx->rb_line);
# 1543| free (ctx->iir_line);
# 1544|-> free (ctx->r_line);
# 1545| free (ctx->a_line);
# 1546| free (ctx->b_line);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1545:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.a_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1543| free (ctx->iir_line);
# 1544| free (ctx->r_line);
# 1545|-> free (ctx->a_line);
# 1546| free (ctx->b_line);
# 1547| free (ctx->lut);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1546:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.b_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1544| free (ctx->r_line);
# 1545| free (ctx->a_line);
# 1546|-> free (ctx->b_line);
# 1547| free (ctx->lut);
# 1548| free (ctx->rb_lut);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1547:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.lut’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1545| free (ctx->a_line);
# 1546| free (ctx->b_line);
# 1547|-> free (ctx->lut);
# 1548| free (ctx->rb_lut);
# 1549| free (ctx->rs_lut);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1548:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.rb_lut’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1546| free (ctx->b_line);
# 1547| free (ctx->lut);
# 1548|-> free (ctx->rb_lut);
# 1549| free (ctx->rs_lut);
# 1550| free (ctx->white_count_line);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1549:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.rs_lut’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1547| free (ctx->lut);
# 1548| free (ctx->rb_lut);
# 1549|-> free (ctx->rs_lut);
# 1550| free (ctx->white_count_line);
# 1551| free (ctx);
Error: GCC_ANALYZER_WARNING (CWE-415):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1550:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*ctx.white_count_line’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1868:1: enter_function: entry to ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1873:6: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:33: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: return_function: returning to ‘even_better_free’ from ‘even_better_plane_free’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1903:19: branch_false: following ‘false’ branch (when ‘i >= n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:11: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1905:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1906:21: branch_true: following ‘true’ branch (when ‘i < n_planes’)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:15: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1907:14: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1908:13: call_function: calling ‘even_better_plane_free’ from ‘even_better_free’
# 1548| free (ctx->rb_lut);
# 1549| free (ctx->rs_lut);
# 1550|-> free (ctx->white_count_line);
# 1551| free (ctx);
# 1552| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1751:7: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1733:44: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1739:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1746:7: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1751:7: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1751:7: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1749| header[3] = ET_SRC_MAX;
# 1750| header[4] = sizeof(ET_SrcPixel);
# 1751|-> fwrite (header, sizeof(int), sizeof(header) / sizeof(header[0]),
# 1752| params->dump_file);
# 1753| if (params->dump_level >= EB_DUMP_PARAMS)
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1756:11: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1733:44: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1739:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1746:7: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1753:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1756:56: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1756:11: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1756:11: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1754| {
# 1755|
# 1756|-> fwrite (params, 1, sizeof(EvenBetterParams), params->dump_file);
# 1757| }
# 1758| if (params->dump_level >= EB_DUMP_LUTS)
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1762:13: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1733:44: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1739:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1746:7: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1758:10: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1758:10: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1761:23: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1763:21: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1762:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1762:13: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1760| int i;
# 1761| for (i = 0; i < params->n_planes; i++)
# 1762|-> fwrite (params->luts[i], sizeof(int), ET_SRC_MAX + 1,
# 1763| params->dump_file);
# 1764| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1904:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1731:1: enter_function: entry to ‘even_better_new’
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1739:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1742:7: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1778:6: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1779:7: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/evenbetter-rll.c:1857:3: call_function: calling ‘even_better_free’ from ‘even_better_new’
# 1902| {
# 1903| for (i = 0; i < n_planes; i++)
# 1904|-> even_better_plane_free (ctx->plane_ctx[i]);
# 1905| if (ctx->plane_ctx != NULL) {
# 1906| for (i = 0; i < n_planes; i++)
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-byte-stream.c:109:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/rinkj-byte-stream.c:102:35: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/rinkj-byte-stream.c:103:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-byte-stream.c:106:3: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-byte-stream.c:109:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 107| result->f = f;
# 108|
# 109|-> return &result->super;
# 110| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:30:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:35:1: enter_function: entry to ‘rinkj_device_set_param’
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:40:15: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:43:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:48:3: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-device.c:52: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: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:893:14: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 891| ysc = ytop;
# 892| if (z->vertpos == -1)
# 893|-> status = rinkj_byte_stream_printf (z->out, "\033(V%c%c%c%c",
# 894| 2, 0, ysc & 0xff, (ysc >> 8) & 0xff);
# 895| else
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:893:14: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 891| ysc = ytop;
# 892| if (z->vertpos == -1)
# 893|-> status = rinkj_byte_stream_printf (z->out, "\033(V%c%c%c%c",
# 894| 2, 0, ysc & 0xff, (ysc >> 8) & 0xff);
# 895| else
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:898:16: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 896| {
# 897| int yrel = ysc - z->vertpos;
# 898|-> status = rinkj_byte_stream_printf (z->out, "\033(v%c%c%c%c%c%c",
# 899| 4, 0, yrel & 0xff, (yrel >> 8) & 0xff, (yrel >> 16) & 0xff, (yrel >> 24) & 0xff);
# 900| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:898:16: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 896| {
# 897| int yrel = ysc - z->vertpos;
# 898|-> status = rinkj_byte_stream_printf (z->out, "\033(v%c%c%c%c%c%c",
# 899| 4, 0, yrel & 0xff, (yrel >> 8) & 0xff, (yrel >> 16) & 0xff, (yrel >> 24) & 0xff);
# 900| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:927:20: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 925| /* todo: make this calculation fully agile */
# 926| int x = (x_pass & 3);
# 927|-> status = rinkj_byte_stream_printf (z->out, "\033($\4%c%c%c%c%c",
# 928| 0, x & 0xff,
# 929| (x >> 8) & 0xff,
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:927:20: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 925| /* todo: make this calculation fully agile */
# 926| int x = (x_pass & 3);
# 927|-> status = rinkj_byte_stream_printf (z->out, "\033($\4%c%c%c%c%c",
# 928| 0, x & 0xff,
# 929| (x >> 8) & 0xff,
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:942:16: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 940| }
# 941|
# 942|-> status = rinkj_byte_stream_printf (z->out, "\033i%c%c%c%c%c%c%c",
# 943| color[i],
# 944| rle,
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:942:16: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 940| }
# 941|
# 942|-> status = rinkj_byte_stream_printf (z->out, "\033i%c%c%c%c%c%c%c",
# 943| color[i],
# 944| rle,
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:980:24: warning[-Wanalyzer-malloc-leak]: leak of ‘compress_buf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 978|
# 979| nbytes = rinkj_escp_compress_rle (compress_buf, thisbuf, xsb_out);
# 980|-> status = rinkj_byte_stream_write (z->out, compress_buf, nbytes);
# 981| }
# 982| else
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:980:24: warning[-Wanalyzer-malloc-leak]: leak of ‘thisbuf’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1035:1: enter_function: entry to ‘rinkj_escp_write’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1045:6: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: branch_true: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1047:16: call_function: calling ‘rinkj_escp_flush_bottom’ from ‘rinkj_escp_write’
# 978|
# 979| nbytes = rinkj_escp_compress_rle (compress_buf, thisbuf, xsb_out);
# 980|-> status = rinkj_byte_stream_write (z->out, compress_buf, nbytes);
# 981| }
# 982| else
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1101:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1079:25: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1080:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1083:3: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-epson870.c:1101:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1099| result->printer_weave = -1;
# 1100|
# 1101|-> return &result->super;
# 1102| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/devices/rinkj/rinkj-screen-eb.c:295:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
ghostscript-10.06.0/devices/rinkj/rinkj-screen-eb.c:280:29: acquire_memory: allocated here
ghostscript-10.06.0/devices/rinkj/rinkj-screen-eb.c:281:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
ghostscript-10.06.0/devices/rinkj/rinkj-screen-eb.c:284:3: branch_false: ...to here
ghostscript-10.06.0/devices/rinkj/rinkj-screen-eb.c:295:10: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 293| result->bps = 1;
# 294|
# 295|-> return &result->super;
# 296| }
# 297|
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/devices/vector/gdevpdf.c:569: warning[uninitvar]: Uninitialized variable: key_buf
# 567| for (j = 0; j < key_size; j++)
# 568| key_buf[j] = key[j] ^ (byte)i;
# 569|-> s_arcfour_set_key(&sarc4, key_buf, key_size);
# 570| s_arcfour_process_buffer(&sarc4, data, data_size);
# 571| }
Error: CPPCHECK_WARNING (CWE-758):
ghostscript-10.06.0/devices/vector/gdevpdf.c:1943: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1941|
# 1942| while(size_bits) {
# 1943|-> input_mask = 1 << (size_bits - 1);
# 1944| output_mask = 0x80 >> linear_params->HintBits;
# 1945| if (input_mask & val)
Error: GCC_ANALYZER_WARNING (CWE-126):
ghostscript-10.06.0/devices/vector/gdevpdfe.c:232:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ghostscript-10.06.0/devices/vector/gdevpdfe.c:977:1: enter_function: entry to ‘pdf_document_metadata’
ghostscript-10.06.0/devices/vector/gdevpdfe.c:979:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfe.c:981:29: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfe.c:981:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfe.c:984:9: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfe.c:996:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfe.c:998:60: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfe.c:999:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfe.c:1003:60: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfe.c:1004:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfe.c:1008:16: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/vector/gdevpdfg.c:345:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pcc.paint.values[i]’
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2077:1: enter_function: entry to ‘pdf_set_drawing_color’
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2108:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2111: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):
ghostscript-10.06.0/devices/vector/gdevpdfg.c:417:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pcc.paint.values[i]’
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2077:1: enter_function: entry to ‘pdf_set_drawing_color’
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2108:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfg.c:2111: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: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/devices/vector/gdevpdfk.c:81:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ghostscript-10.06.0/devices/vector/gdevpdfk.c:820:1: enter_function: entry to ‘write_a2b0’
ghostscript-10.06.0/devices/vector/gdevpdfk.c:837:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfk.c:843:12: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfk.c:844:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfk.c:844:8: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfk.c:846:17: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdfk.c:852:21: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdfk.c:852:37: branch_false: following ‘false’ branch (when ‘j == -1’)...
ghostscript-10.06.0/devices/vector/gdevpdfk.c:855:9: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/vector/gdevpdfu.c:1027: error[uninitvar]: Uninitialized variable: key
# 1025| byte key[16];
# 1026|
# 1027|-> return s_arcfour_set_key(psarc4, key, pdf_object_key(pdev, object_id, key));
# 1028| }
# 1029|
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/vector/gdevpdte.c:1068:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gdata’
ghostscript-10.06.0/devices/vector/gdevpdte.c:1797:1: enter_function: entry to ‘process_plain_text’
ghostscript-10.06.0/devices/vector/gdevpdte.c:1810:12: branch_false: following ‘false’ branch (when ‘bsize >= count’)...
ghostscript-10.06.0/devices/vector/gdevpdte.c:1812:9: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdte.c:1926:16: call_function: calling ‘pdf_process_string_aux’ from ‘process_plain_text’
# 1066| gs_glyph gdata_i, *gdata_p = (gs_glyph *)gdata;
# 1067| if (penum->text.operation & TEXT_FROM_SINGLE_GLYPH) {
# 1068|-> gdata_i = *gdata;
# 1069| gdata_p = &gdata_i;
# 1070| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/vector/gdevpdtf.c:240:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘psf’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:775:1: enter_function: entry to ‘embed_as_standard’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:778:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:781:9: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/vector/gdevpdtf.c:400:13: warning[-Wanalyzer-null-argument]: use of NULL ‘widths’ where non-null expected
ghostscript-10.06.0/devices/vector/gdevpdtf.c:813:1: enter_function: entry to ‘pdf_font_embed_status’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:819:17: call_function: calling ‘pdf_find_standard_font_name’ from ‘pdf_font_embed_status’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:819:17: return_function: returning to ‘pdf_font_embed_status’ from ‘pdf_find_standard_font_name’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:861:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:877:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:888:13: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:888:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:891:33: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:891:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:893:13: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:894:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:902:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:902:20: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:902:20: branch_false: following ‘false’ branch (when ‘embed_as_standard_called == 0’)...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:904:10: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/vector/gdevpdtf.c:1003:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:917:1: enter_function: entry to ‘pdf_compute_BaseFont’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:924:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:933:14: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:933:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:937:18: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:941:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:943:18: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:984:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:984:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:987:39: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:984:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:990:32: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:990:32: call_function: calling ‘pdf_font_resource_font’ from ‘pdf_compute_BaseFont’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:990:32: return_function: returning to ‘pdf_compute_BaseFont’ from ‘pdf_font_resource_font’
ghostscript-10.06.0/devices/vector/gdevpdtf.c:997:12: branch_false: following ‘false’ branch (when ‘code >= 0’)...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:999:9: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtf.c:1002:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtf.c:1003:13: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/devices/vector/gdevpdtf.h:129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gnstr’
ghostscript-10.06.0/devices/vector/gdevpdti.c:1044:1: enter_function: entry to ‘complete_adding_char’
ghostscript-10.06.0/devices/vector/gdevpdti.c:1057:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdti.c:1059:12: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdti.c:1059:12: call_function: calling ‘pdf_attach_charproc’ from ‘complete_adding_char’
ghostscript-10.06.0/devices/vector/gdevpdti.c:1059:12: return_function: returning to ‘complete_adding_char’ from ‘pdf_attach_charproc’
ghostscript-10.06.0/devices/vector/gdevpdti.c:1060:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdti.c:1062:9: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdti.c:1062:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdti.c:1080: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):
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2382: warning[uninitvar]: Uninitialized variable: s2->size
# 2380| strings_equal(const gs_const_string *s1, const gs_const_string *s2)
# 2381| {
# 2382|-> return s1->size == s2->size &&
# 2383| !memcmp(s1->data, s2->data, s1->size);
# 2384| }
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2431:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdfont’
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2932:1: enter_function: entry to ‘pdf_choose_output_char_code’
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2937:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2952:16: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2952:15: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2954:18: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2956:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2958:24: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2958:24: call_function: calling ‘pdf_attached_font_resource’ from ‘pdf_choose_output_char_code’
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2958:24: return_function: returning to ‘pdf_choose_output_char_code’ from ‘pdf_attached_font_resource’
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2960:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2962:18: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2962:18: release_memory: ‘pdfont’ is NULL
ghostscript-10.06.0/devices/vector/gdevpdtt.c:2962:18: call_function: calling ‘pdf_find_glyph’ from ‘pdf_choose_output_char_code’
# 2429| pdf_find_glyph(pdf_font_resource_t *pdfont, gs_glyph glyph)
# 2430| {
# 2431|-> if (pdfont->FontType != ft_user_defined &&
# 2432| pdfont->FontType != ft_PDF_user_defined &&
# 2433| pdfont->FontType != ft_PCL_user_defined &&
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/devices/vector/gdevpsds.c:1096:12: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.06.0/devices/vector/gdevpsds.c:1096:12: danger: infinite loop here
ghostscript-10.06.0/devices/vector/gdevpsds.c:1096:12: branch_true: when ‘l != 0’: always following ‘true’ branch...
ghostscript-10.06.0/devices/vector/gdevpsds.c:1097:13: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpsds.c:1097:12: branch_true: if it ever follows ‘true’ branch, it will always do so...
ghostscript-10.06.0/devices/vector/gdevpsds.c:1098:53: branch_true: ...to here
ghostscript-10.06.0/devices/vector/gdevpsds.c:1101:20: branch_false: when ‘k == 0’: always following ‘false’ branch...
ghostscript-10.06.0/devices/vector/gdevpsds.c:1101:20: branch_false: ...to here
ghostscript-10.06.0/devices/vector/gdevpsds.c:1104:16: branch_false: if it ever follows ‘false’ branch, it will always do so...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/astring.c:55:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.06.0/extract/src/astring.c:54:9: acquire_resource: ‘va_start’ called here
ghostscript-10.06.0/extract/src/astring.c:55:13: throw: if ‘extract_vasprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/boxer.c:149:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
ghostscript-10.06.0/extract/src/boxer.c:561:5: enter_function: entry to ‘extract_page_analyse’
ghostscript-10.06.0/extract/src/boxer.c:571:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/boxer.c:574:9: branch_false: ...to here
ghostscript-10.06.0/extract/src/boxer.c:581:17: call_function: calling ‘boxer_create’ from ‘extract_page_analyse’
ghostscript-10.06.0/extract/src/boxer.c:581:17: return_function: returning to ‘extract_page_analyse’ from ‘boxer_create’
ghostscript-10.06.0/extract/src/boxer.c:583:21: call_function: inlined call to ‘content_span_iterator_init’ from ‘extract_page_analyse’
ghostscript-10.06.0/extract/src/boxer.c:583:74: branch_true: following ‘true’ branch (when ‘span’ is non-NULL)...
ghostscript-10.06.0/extract/src/boxer.c:585:31: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/boxer.c:241:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
ghostscript-10.06.0/extract/src/boxer.c:561:5: enter_function: entry to ‘extract_page_analyse’
ghostscript-10.06.0/extract/src/boxer.c:571:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/boxer.c:574:9: branch_false: ...to here
ghostscript-10.06.0/extract/src/boxer.c:581:17: call_function: calling ‘boxer_create’ from ‘extract_page_analyse’
ghostscript-10.06.0/extract/src/boxer.c:581:17: return_function: returning to ‘extract_page_analyse’ from ‘boxer_create’
ghostscript-10.06.0/extract/src/boxer.c:583:74: branch_false: following ‘false’ branch (when ‘span’ is NULL)...
ghostscript-10.06.0/extract/src/boxer.c:590:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/boxer.c:538:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub’
ghostscript-10.06.0/extract/src/boxer.c:516:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/boxer.c:518:21: branch_false: ...to here
ghostscript-10.06.0/extract/src/boxer.c:525:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/boxer.c:528:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/boxer.c:528:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/boxer.c:531:17: branch_false: ...to here
ghostscript-10.06.0/extract/src/boxer.c:535:21: branch_true: following ‘true’ branch...
ghostscript-10.06.0/extract/src/boxer.c:537:26: branch_true: ...to here
ghostscript-10.06.0/extract/src/boxer.c:551:25: release_memory: using NULL here
ghostscript-10.06.0/extract/src/boxer.c:535:21: branch_true: following ‘true’ branch...
ghostscript-10.06.0/extract/src/boxer.c:537:26: branch_true: ...to here
ghostscript-10.06.0/extract/src/boxer.c:537:26: release_memory: ‘sub’ is NULL
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/buffer.c:45:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, <unknown>)’
ghostscript-10.06.0/extract/src/buffer.c:242:5: enter_function: entry to ‘extract_buffer_open_file’
ghostscript-10.06.0/extract/src/buffer.c:245:22: acquire_resource: opened here
ghostscript-10.06.0/extract/src/buffer.c:247:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: following ‘false’ branch (when ‘writable == 0’)...
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/buffer.c:45:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, <unknown>)’
ghostscript-10.06.0/extract/src/buffer.c:242:5: enter_function: entry to ‘extract_buffer_open_file’
ghostscript-10.06.0/extract/src/buffer.c:245:22: acquire_memory: allocated here
ghostscript-10.06.0/extract/src/buffer.c:247:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: following ‘false’ branch (when ‘writable == 0’)...
ghostscript-10.06.0/extract/src/buffer.c:253:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/extract.c:2189:45: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
ghostscript-10.06.0/extract/src/extract.c:2163:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2165:9: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2167:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/extract/src/extract.c:2170:40: branch_true: ...to here
ghostscript-10.06.0/extract/src/extract.c:2182:36: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2183:33: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2187:37: acquire_resource: opened here
ghostscript-10.06.0/extract/src/extract.c:2188:36: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2188:36: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2193:51: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2212:41: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2212:41: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/extract.c:2189:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
ghostscript-10.06.0/extract/src/extract.c:2163:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2165:9: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2167:19: branch_true: following ‘true’ branch...
ghostscript-10.06.0/extract/src/extract.c:2170:40: branch_true: ...to here
ghostscript-10.06.0/extract/src/extract.c:2182:36: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2183:33: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2187:37: acquire_memory: allocated here
ghostscript-10.06.0/extract/src/extract.c:2188:36: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2188:36: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2193:51: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/extract.c:2212:41: branch_false: ...to here
ghostscript-10.06.0/extract/src/extract.c:2212:41: throw: if ‘fprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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.06.0/extract/src/join.c: scope_hint: In function ‘join_content’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/mem.c:30:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.06.0/extract/src/mem.c:23:9: acquire_resource: ‘va_copy’ called here
ghostscript-10.06.0/extract/src/mem.c:25:12: branch_false: following ‘false’ branch (when ‘n >= 0’)...
ghostscript-10.06.0/extract/src/mem.c:30:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/mem.c:30:13: throw: if ‘extract_malloc’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/outf.c:34:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.06.0/extract/src/outf.c:26:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/outf.c:30:12: branch_false: ...to here
ghostscript-10.06.0/extract/src/outf.c:33:9: acquire_resource: ‘va_start’ called here
ghostscript-10.06.0/extract/src/outf.c:34:9: throw: if ‘vfprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/sys.c:37:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
ghostscript-10.06.0/extract/src/sys.c:36:9: acquire_resource: ‘va_start’ called here
ghostscript-10.06.0/extract/src/sys.c:37:13: throw: if ‘extract_vasprintf’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/sys.c:57:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
ghostscript-10.06.0/extract/src/sys.c:76:6: enter_function: entry to ‘extract_read_all_path’
ghostscript-10.06.0/extract/src/sys.c:80:13: acquire_resource: opened here
ghostscript-10.06.0/extract/src/sys.c:81:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/sys.c:82:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/sys.c:57:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
ghostscript-10.06.0/extract/src/sys.c:76:6: enter_function: entry to ‘extract_read_all_path’
ghostscript-10.06.0/extract/src/sys.c:80:13: acquire_memory: allocated here
ghostscript-10.06.0/extract/src/sys.c:81:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/sys.c:82:13: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/sys.c:95:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
ghostscript-10.06.0/extract/src/sys.c:93:19: acquire_resource: opened here
ghostscript-10.06.0/extract/src/sys.c:94:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/sys.c:95:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/sys.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/sys.c:95:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
ghostscript-10.06.0/extract/src/sys.c:93:19: acquire_memory: allocated here
ghostscript-10.06.0/extract/src/sys.c:94:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/extract/src/sys.c:95:13: branch_false: ...to here
ghostscript-10.06.0/extract/src/sys.c:95:13: throw: if ‘fwrite’ throws an exception...
ghostscript-10.06.0/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):
ghostscript-10.06.0/extract/src/xml.c:30:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
ghostscript-10.06.0/extract/src/xml.c:428:5: enter_function: entry to ‘extract_xml_pparse_next’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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: COMPILER_WARNING (CWE-9001):
ghostscript-10.06.0/pdf/pdf_annot.c:4555:53: warning[-Wcomment]: ‘/*’ within comment
# 4555 | /* {"Screen", pdfi_annot_preserve_default}, /* TODO: fts_07_0709.pdf */
# 4553| {"PolyLine", pdfi_annot_preserve_default},
# 4554| {"Popup", pdfi_annot_preserve_default},
# 4555|-> /* {"Screen", pdfi_annot_preserve_default}, /* TODO: fts_07_0709.pdf */
# 4556| {"Sound", pdfi_annot_preserve_default},
# 4557| {"Square", pdfi_annot_preserve_default},
Error: GCC_ANALYZER_WARNING (CWE-688):
ghostscript-10.06.0/pdf/pdf_cmap.c:931:13: warning[-Wanalyzer-null-argument]: use of NULL ‘ndlookups’ where non-null expected
ghostscript-10.06.0/pdf/pdf_cmap.c:883:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/pdf/pdf_cmap.c:888:9: branch_true: ...to here
ghostscript-10.06.0/pdf/pdf_cmap.c:894:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_cmap.c:899:13: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_cmap.c:899:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_cmap.c:911:16: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_cmap.c:913:9: release_memory: ‘ndlookups’ is NULL
ghostscript-10.06.0/pdf/pdf_cmap.c:930:21: branch_true: following ‘true’ branch...
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/pdf/pdf_dict.c:303: error[ctunullpointer]: Null pointer dereference: Key
# 301| int index = 0;
# 302|
# 303|-> Test = (char *)gs_alloc_bytes(ctx->memory, (size_t)Key->length + 1, "pdfi_dict_find_key");
# 304| if (Test == NULL)
# 305| return_error(gs_error_VMerror);
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/pdf/pdf_doc.c:1663:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘code’
ghostscript-10.06.0/pdf/pdf_doc.c:1626:12: enter_function: entry to ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.06.0/pdf/pdf_doc.c:1635:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_doc.c:1635:8: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_doc.c:1643:21: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_doc.c:1660:2: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_doc.c:1661:5: call_function: inlined call to ‘pdfi_countdown_impl’ from ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.06.0/pdf/pdf_doc.c:1662:5: branch_true: ...to here
ghostscript-10.06.0/pdf/pdf_doc.c:1662:5: call_function: inlined call to ‘pdfi_countdown_impl’ from ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.06.0/pdf/pdf_doc.c:1663:12: branch_true: ...to here
ghostscript-10.06.0/pdf/pdf_doc.c:1663:12: danger: use of uninitialized value ‘code’ here
# 1661| pdfi_countdown(name);
# 1662| pdfi_countdown(filespec);
# 1663|-> return code;
# 1664| }
# 1665|
Error: CPPCHECK_WARNING (CWE-909):
ghostscript-10.06.0/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):
ghostscript-10.06.0/pdf/pdf_fmap.c:282: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 280|
# 281| if (ctx->main_stream == NULL) {
# 282|-> ctx->main_stream = &fakemainstream;
# 283| }
# 284|
Error: COMPILER_WARNING:
ghostscript-10.06.0/pdf/pdf_fontTT.c: scope_hint: In function ‘pdfi_type42_get_glyph_index’
ghostscript-10.06.0/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):
ghostscript-10.06.0/pdf/pdf_gstate.c:2367: warning[uninitvar]: Uninitialized variable: code
# 2365| }
# 2366| }
# 2367|-> return code;
# 2368| }
# 2369|
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/pdf/pdf_mark.c:705:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/pdf/pdf_mark.c:893:5: enter_function: entry to ‘pdfi_pdfmark_modA’
ghostscript-10.06.0/pdf/pdf_mark.c:904:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:906:9: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:906:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:915:12: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:916:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:917:9: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:917:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:926:12: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:927:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:929:9: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:929:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:930:16: branch_true: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:931:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:933:13: branch_false: ...to here
ghostscript-10.06.0/pdf/pdf_mark.c:933:13: branch_true: following ‘true’ branch...
ghostscript-10.06.0/pdf/pdf_mark.c:935:22: branch_true: ...to here
ghostscript-10.06.0/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 (CWE-9001):
ghostscript-10.06.0/pdf/pdf_pattern.c: scope_hint: In function ‘pdfi_setpattern_type1’
ghostscript-10.06.0/pdf/pdf_pattern.c:506:43: warning[-Wcomment]: ‘/*’ within comment
# 506 | /* templat.uses_transparency = false; /* disable */
# 504| templat.uses_transparency = transparency;
# 505| templat.BM_Not_Normal = BM_Not_Normal;
# 506|-> /* templat.uses_transparency = false; /* disable */
# 507|
# 508| code = pdfi_gsave(ctx);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1172:5: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1183:5: enter_function: entry to ‘main’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1243: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):
ghostscript-10.06.0/psi/dxmain.c:1174:12: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1183:5: enter_function: entry to ‘main’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1243: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-401):
ghostscript-10.06.0/psi/dxmain.c:1216:17: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:17: throw: if ‘gsapi_new_instance’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1216:17: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1214|
# 1215| /* run Ghostscript */
# 1216|-> if ((code = gsapi_new_instance(&instance, NULL)) == 0) {
# 1217| gsapi_set_stdio(instance, gsdll_stdin, gsdll_stdout, gsdll_stderr);
# 1218|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1217:9: throw: if ‘gsapi_set_stdio’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1217:9: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1215| /* run Ghostscript */
# 1216| if ((code = gsapi_new_instance(&instance, NULL)) == 0) {
# 1217|-> gsapi_set_stdio(instance, gsdll_stdin, gsdll_stdout, gsdll_stderr);
# 1218|
# 1219| if (curlocale == NULL || strstr(curlocale, "UTF-8") != NULL || strstr(curlocale, "utf8") != NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1220:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1220:20: throw: if ‘gsapi_set_arg_encoding’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1220:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1218|
# 1219| if (curlocale == NULL || strstr(curlocale, "UTF-8") != NULL || strstr(curlocale, "utf8") != NULL)
# 1220|-> code = gsapi_set_arg_encoding(instance, 1); /* PS_ARG_ENCODING_UTF8 = 1 */
# 1221| else {
# 1222| code = gsapi_set_arg_encoding(instance, 0); /* PS_ARG_ENCODING_LOCAL = 0 */
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1222:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1219:12: branch_false: following ‘false’ branch (when ‘curlocale’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1219:34: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1219:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/dxmain.c:1219:72: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1219:13: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/dxmain.c:1222:20: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1222:20: throw: if ‘gsapi_set_arg_encoding’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1222:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1220| code = gsapi_set_arg_encoding(instance, 1); /* PS_ARG_ENCODING_UTF8 = 1 */
# 1221| else {
# 1222|-> code = gsapi_set_arg_encoding(instance, 0); /* PS_ARG_ENCODING_LOCAL = 0 */
# 1223| }
# 1224|
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1226:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1226:13: throw: if ‘gsapi_set_display_callback’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1226:13: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1224|
# 1225| if (use_gui) {
# 1226|-> gsapi_set_display_callback(instance, &display);
# 1227|
# 1228| code = gsapi_get_default_device_list(instance, &default_devs, &len);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1228:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1228:20: throw: if ‘gsapi_get_default_device_list’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1228:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1226| gsapi_set_display_callback(instance, &display);
# 1227|
# 1228|-> code = gsapi_get_default_device_list(instance, &default_devs, &len);
# 1229| if (code >= 0) {
# 1230| our_default_devs = malloc((size_t)len + strlen(OUR_DEFAULT_DEV_STR) + 1);
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1235:28: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1229:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1230:43: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1231:20: branch_true: following ‘true’ branch (when ‘our_default_devs’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1232:21: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1235:28: throw: if ‘gsapi_set_default_device_list’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1235:28: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1233| memcpy(our_default_devs + strlen(OUR_DEFAULT_DEV_STR), default_devs, len);
# 1234| our_default_devs[len + strlen(OUR_DEFAULT_DEV_STR)] = '\0';
# 1235|-> code = gsapi_set_default_device_list(instance, our_default_devs, strlen(default_devs));
# 1236| free(our_default_devs);
# 1237| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1235:28: warning[-Wanalyzer-malloc-leak]: leak of ‘our_default_devs’
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1225:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1226:13: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1229:16: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1230:43: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1230:36: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1231:20: branch_true: following ‘true’ branch (when ‘our_default_devs’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1232:21: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1235:28: throw: if ‘gsapi_set_default_device_list’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1235:28: danger: ‘our_default_devs’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
# 1233| memcpy(our_default_devs + strlen(OUR_DEFAULT_DEV_STR), default_devs, len);
# 1234| our_default_devs[len + strlen(OUR_DEFAULT_DEV_STR)] = '\0';
# 1235|-> code = gsapi_set_default_device_list(instance, our_default_devs, strlen(default_devs));
# 1236| free(our_default_devs);
# 1237| }
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1249:20: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1248:12: branch_true: following ‘true’ branch (when ‘code == 0’)...
ghostscript-10.06.0/psi/dxmain.c:1249:20: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1249:20: throw: if ‘gsapi_init_with_args’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1249:20: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1247|
# 1248| if (code == 0)
# 1249|-> code = gsapi_init_with_args(instance, nargc, nargv);
# 1250|
# 1251| if (code == 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1253:17: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1248:12: branch_false: following ‘false’ branch (when ‘code != 0’)...
ghostscript-10.06.0/psi/dxmain.c:1253:17: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1253:17: throw: if ‘gsapi_exit’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1253:17: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1251| if (code == 0)
# 1252| code = gsapi_run_string(instance, start_string, 0, &exit_code);
# 1253|-> code1 = gsapi_exit(instance);
# 1254| if (code == 0 || code == gs_error_Quit)
# 1255| code = code1;
Error: GCC_ANALYZER_WARNING (CWE-401):
ghostscript-10.06.0/psi/dxmain.c:1259:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nargv’
ghostscript-10.06.0/psi/dxmain.c:1207:22: acquire_memory: allocated here
ghostscript-10.06.0/psi/dxmain.c:1208:8: branch_false: following ‘false’ branch (when ‘nargv’ is non-NULL)...
ghostscript-10.06.0/psi/dxmain.c:1211:16: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1216:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/dxmain.c:1217:9: branch_true: ...to here
ghostscript-10.06.0/psi/dxmain.c:1248:12: branch_false: following ‘false’ branch (when ‘code != 0’)...
ghostscript-10.06.0/psi/dxmain.c:1253:17: branch_false: ...to here
ghostscript-10.06.0/psi/dxmain.c:1259:9: throw: if ‘gsapi_delete_instance’ throws an exception...
ghostscript-10.06.0/psi/dxmain.c:1259:9: danger: ‘nargv’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1257| code = 0; /* user executed 'quit' */
# 1258|
# 1259|-> gsapi_delete_instance(instance);
# 1260| }
# 1261|
Error: CPPCHECK_WARNING (CWE-758):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/imain.c:1203:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.06.0/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/imain.c:1205:29: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.06.0/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/imain.c:1206:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tempnames’
ghostscript-10.06.0/psi/imain.c:1234:1: enter_function: entry to ‘gs_main_finit’
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/iparam.c:668: error[invalidLifetime]: Using object that points to local variable 'elt' that is out of scope.
# 666| if (code < 0) {
# 667| gs_free_object(plist->memory, psv, "ref_param_read_string_array");
# 668|-> return (*loc.presult = code);
# 669| }
# 670| pvalue->data = psv;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.06.0/psi/isave.c:727:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.06.0/psi/isave.c:868:1: enter_function: entry to ‘alloc_restore_all’
ghostscript-10.06.0/psi/isave.c:882:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/isave.c:883:71: branch_true: ...to here
ghostscript-10.06.0/psi/isave.c:883:52: call_function: calling ‘alloc_save_current’ from ‘alloc_restore_all’
ghostscript-10.06.0/psi/isave.c:883:52: return_function: returning to ‘alloc_restore_all’ from ‘alloc_save_current’
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/iscan.c:738:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘arr’
ghostscript-10.06.0/psi/iscan.c:495:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/iscan.c:496:9: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:512:17: branch_true: following ‘true’ branch (when ‘sptr’ is non-NULL)...
ghostscript-10.06.0/psi/iscan.c:512:17: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:513:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:515:17: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:1214:11: branch_false: following ‘false’ branch (when ‘retcode >= 0’)...
ghostscript-10.06.0/psi/iscan.c:1227:9: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:1227:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:1231:3: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:1231:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/iscan.c:1231:9: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:549:11: branch_false: following ‘false’ branch (when ‘sptr < endptr’)...
ghostscript-10.06.0/psi/iscan.c:549:7: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:685:16: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:687:13: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:697:20: branch_false: following ‘false’ branch (when ‘size <= 16777216’)...
ghostscript-10.06.0/psi/iscan.c:699:45: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:699:25: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/iscan.c:700:20: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:700:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:703:28: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:703:27: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/iscan.c:704:31: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:706:24: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:712:21: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:731:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:735:25: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:735:24: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:737:39: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/iscan.c:817:21: warning[-Wanalyzer-null-argument]: use of NULL ‘sptr’ where non-null expected
ghostscript-10.06.0/psi/iscan.c:495:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/iscan.c:533:28: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:544:5: branch_false: following ‘false’ branch (when ‘sptr’ is NULL)...
ghostscript-10.06.0/psi/iscan.c:549:3: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:549:11: branch_true: following ‘true’ branch (when ‘sptr >= endptr’)...
ghostscript-10.06.0/psi/iscan.c:549:11: branch_true: ...to here
ghostscript-10.06.0/psi/iscan.c:549:11: release_memory: ‘sptr’ is NULL
ghostscript-10.06.0/psi/iscan.c:549:11: branch_false: following ‘false’ branch (when ‘sptr’ is NULL)...
ghostscript-10.06.0/psi/iscan.c:551:5: branch_false: ...to here
ghostscript-10.06.0/psi/iscan.c:786:24: branch_false: following ‘false’ branch (when ‘endptr <= sptr’)...
ghostscript-10.06.0/psi/iscan.c:810:17: branch_false: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/psi/zcolor.c:6930:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘obj’
ghostscript-10.06.0/psi/zcolor.c:6911:18: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zcolor.c:6930:16: branch_false: ...to here
ghostscript-10.06.0/psi/zcolor.c:6930:16: danger: use of uninitialized value ‘obj’ here
# 6928| }
# 6929| }
# 6930|-> if (obj->runtransformproc) {
# 6931| code = obj->runtransformproc(i_ctx_p, &istate->colorspace[0].orig_array_copy, &usealternate, &stage);
# 6932| make_int(&ep[-1], stage);
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/psi/zcolor.c:6959: warning[uninitvar]: Uninitialized variable: obj
# 6957|
# 6958| /* Remove our next continuation and our data */
# 6959|-> obj->numcomponents(i_ctx_p, parr, &i);
# 6960| /* This would be better done sooner, but we need the color space object first */
# 6961| check_op(i);
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/psi/zcolor.c:7027:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘obj’
ghostscript-10.06.0/psi/zcolor.c:7005:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/zcolor.c:7006:9: branch_true: ...to here
ghostscript-10.06.0/psi/zcolor.c:7010:20: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zcolor.c:7027:19: branch_false: ...to here
ghostscript-10.06.0/psi/zcolor.c:7027:19: danger: use of uninitialized value ‘obj’ here
# 7025| }
# 7026|
# 7027|-> code = obj->setproc(i_ctx_p, parr, &stage, &cont, CIESubst);
# 7028| make_int(pstage, stage);
# 7029| if (code != 0) {
Error: GCC_ANALYZER_WARNING (CWE-835):
ghostscript-10.06.0/psi/zcolor.c:7093:9: warning[-Wanalyzer-infinite-loop]: infinite loop
# 7091|
# 7092| do {
# 7093|-> switch(stage) {
# 7094| case 0:
# 7095| make_int(pstage, ++stage);
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.06.0/psi/zfile.c:489:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pname1.iodev’
ghostscript-10.06.0/psi/zfile.c:474:1: enter_function: entry to ‘zrenamefile’
ghostscript-10.06.0/psi/zfile.c:480:5: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zfile.c:481:46: branch_false: ...to here
ghostscript-10.06.0/psi/zfile.c:482:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zfile.c:485:5: branch_false: ...to here
ghostscript-10.06.0/psi/zfile.c:486:12: call_function: calling ‘parse_real_file_name’ from ‘zrenamefile’
ghostscript-10.06.0/psi/zfile.c:486:12: return_function: returning to ‘zrenamefile’ from ‘parse_real_file_name’
ghostscript-10.06.0/psi/zfile.c:487:8: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/zfile.c:488:36: branch_true: ...to here
ghostscript-10.06.0/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):
ghostscript-10.06.0/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):
ghostscript-10.06.0/psi/zicc.c:229:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘picc_profile’
ghostscript-10.06.0/psi/zicc.c:77:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:79:5: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:79:5: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:79:5: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:83:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:94:9: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:109:12: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:116:62: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:118:9: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:125:71: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:126:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:131:5: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:153:8: branch_false: following ‘false’ branch...
ghostscript-10.06.0/psi/zicc.c:161:5: branch_false: ...to here
ghostscript-10.06.0/psi/zicc.c:222:8: branch_true: following ‘true’ branch (when ‘picc_profile’ is non-NULL)...
ghostscript-10.06.0/psi/zicc.c:226:9: branch_true: ...to here
ghostscript-10.06.0/psi/zicc.c:226:9: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/zicc.c:226:9: branch_true: ...to here
ghostscript-10.06.0/psi/zicc.c:227:12: branch_true: following ‘true’ branch...
ghostscript-10.06.0/psi/zicc.c:229:43: branch_true: ...to here
ghostscript-10.06.0/psi/zicc.c:229:43: danger: dereference of NULL ‘picc_profile’
# 227| if (code >= 0) {
# 228| /* Save this colorspace in the iccprofile_cache */
# 229|-> code = gsicc_add_cs(igs, pcs, picc_profile->hashcode);
# 230| if (code >= 0) {
# 231| /* should be an integer, but if for some reason it isn't, don't update */
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevpdfimg.c:1168:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1168 | const gx_device_pdf_image gs_PCLm_device = {
# | ^
ghostscript-10.06.0/devices/gdevpdfimg.c:1168: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):
ghostscript-10.06.0/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.06.0/devices/gdevpdfimg.c:1186:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1186 | const gx_device_pdf_image gs_PCLm8_device = {
# | ^
ghostscript-10.06.0/devices/gdevpdfimg.c:1186: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevjpeg.c:78:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 78 | const gx_device_jpeg gs_jpeg_device =
# | ^
ghostscript-10.06.0/devices/gdevjpeg.c:78: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):
ghostscript-10.06.0/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.06.0/devices/gdevjpeg.c:135:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 135 | const gx_device_jpeg gs_jpegcmyk_device =
# | ^
ghostscript-10.06.0/devices/gdevjpeg.c:135: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):
ghostscript-10.06.0/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.06.0/devices/gdevjpeg.c:104:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 104 | const gx_device_jpeg gs_jpeggray_device =
# | ^
ghostscript-10.06.0/devices/gdevjpeg.c:104: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevpdfimg.c:108:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 108 | const gx_device_pdf_image gs_pdfimage24_device = {
# | ^
ghostscript-10.06.0/devices/gdevpdfimg.c:108: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):
ghostscript-10.06.0/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.06.0/devices/gdevpdfimg.c:139:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 139 | const gx_device_pdf_image gs_pdfimage32_device = {
# | ^
ghostscript-10.06.0/devices/gdevpdfimg.c:139: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):
ghostscript-10.06.0/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.06.0/devices/gdevpdfimg.c:77:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 77 | const gx_device_pdf_image gs_pdfimage8_device = {
# | ^
ghostscript-10.06.0/devices/gdevpdfimg.c:77: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:611:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 611 | const psd_device gs_psdcmyk_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:611: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:662:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 662 | const psd_device gs_psdcmyk16_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:662: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):
ghostscript-10.06.0/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.06.0/devices/gdevcmykog.c:773:24: note: type ‘const struct gx_device_cmykog’ should match type ‘struct gx_device’
# 773 | const gx_device_cmykog gs_psdcmykog_device =
# | ^
ghostscript-10.06.0/devices/gdevcmykog.c:773: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:636:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 636 | const psd_device gs_psdcmyktags_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:636: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:687:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 687 | const psd_device gs_psdcmyktags16_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:687: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:481:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 481 | const psd_device gs_psdrgb_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:481: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:505:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 505 | const psd_device gs_psdrgb16_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:505: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):
ghostscript-10.06.0/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.06.0/devices/gdevpsd.c:532:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 532 | const psd_device gs_psdrgbtags_device =
# | ^
ghostscript-10.06.0/devices/gdevpsd.c:532: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevtfnx.c:83:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 83 | const gx_device_tiff gs_tiff24nc_device = {
# | ^
ghostscript-10.06.0/devices/gdevtfnx.c:83: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:569:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 569 | const gx_device_tiff gs_tiff32nc_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:569: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):
ghostscript-10.06.0/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.06.0/devices/gdevtfnx.c:100:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 100 | const gx_device_tiff gs_tiff48nc_device = {
# | ^
ghostscript-10.06.0/devices/gdevtfnx.c:100: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:600:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 600 | const gx_device_tiff gs_tiff64nc_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:600: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:134:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 134 | const gx_device_tiff gs_tiffscaled_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:134: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:216:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 216 | const gx_device_tiff gs_tiffscaled24_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:216: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:257:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 257 | const gx_device_tiff gs_tiffscaled32_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:257: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:295:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 295 | const gx_device_tiff gs_tiffscaled4_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:295: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:175:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 175 | const gx_device_tiff gs_tiffscaled8_device = {
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:175: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:811:22: note: type ‘const struct tiffsep_device’ should match type ‘const struct gx_device’
# 811 | const tiffsep_device gs_tiffsep_device =
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:811: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):
ghostscript-10.06.0/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.06.0/devices/gdevtsep.c:828:23: note: type ‘const struct tiffsep1_device’ should match type ‘const struct gx_device’
# 828 | const tiffsep1_device gs_tiffsep1_device =
# | ^
ghostscript-10.06.0/devices/gdevtsep.c:828: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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/contrib/gdevadmp.c:318:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 318 | const gx_device_admp far_data gs_appledmp_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:318:31: 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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/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.06.0/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):
ghostscript-10.06.0/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.06.0/contrib/gdevadmp.c:351:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 351 | const gx_device_admp far_data gs_iwhi_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:351:31: note: ‘gs_iwhi_device’ was previously declared here
# 288| #endif
# 289| #ifdef device_
# 290|-> device_(gs_iwhi_device)
# 291| device_(gs_iwhic_device)
# 292| device_(gs_iwlo_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:291:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwhic_device’ does not match original declaration
# 291 | device_(gs_iwhic_device)
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:362:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 362 | const gx_device_admp far_data gs_iwhic_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:362:31: note: ‘gs_iwhic_device’ was previously declared here
# 289| #ifdef device_
# 290| device_(gs_iwhi_device)
# 291|-> device_(gs_iwhic_device)
# 292| device_(gs_iwlo_device)
# 293| device_(gs_iwlow_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:292:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlo_device’ does not match original declaration
# 292 | device_(gs_iwlo_device)
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:329:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 329 | const gx_device_admp far_data gs_iwlo_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:329:31: note: ‘gs_iwlo_device’ was previously declared here
# 290| device_(gs_iwhi_device)
# 291| device_(gs_iwhic_device)
# 292|-> device_(gs_iwlo_device)
# 293| device_(gs_iwlow_device)
# 294| device_(gs_iwlq_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:293:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlow_device’ does not match original declaration
# 293 | device_(gs_iwlow_device)
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:340:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 340 | const gx_device_admp far_data gs_iwlow_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:340:31: note: ‘gs_iwlow_device’ was previously declared here
# 291| device_(gs_iwhic_device)
# 292| device_(gs_iwlo_device)
# 293|-> device_(gs_iwlow_device)
# 294| device_(gs_iwlq_device)
# 295| device_(gs_iwlqc_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:294:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlq_device’ does not match original declaration
# 294 | device_(gs_iwlq_device)
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:373:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 373 | const gx_device_admp far_data gs_iwlq_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:373:31: note: ‘gs_iwlq_device’ was previously declared here
# 292| device_(gs_iwlo_device)
# 293| device_(gs_iwlow_device)
# 294|-> device_(gs_iwlq_device)
# 295| device_(gs_iwlqc_device)
# 296| device_(gs_jetp3852_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:295:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlqc_device’ does not match original declaration
# 295 | device_(gs_iwlqc_device)
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:384:31: note: type ‘const struct gx_device_admp’ should match type ‘struct gx_device’
# 384 | const gx_device_admp far_data gs_iwlqc_device = {
# | ^
ghostscript-10.06.0/contrib/gdevadmp.c:384:31: note: ‘gs_iwlqc_device’ was previously declared here
# 293| device_(gs_iwlow_device)
# 294| device_(gs_iwlq_device)
# 295|-> device_(gs_iwlqc_device)
# 296| device_(gs_jetp3852_device)
# 297| device_(gs_jj100_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:296:1: warning[-Wlto-type-mismatch]: type of ‘gs_jetp3852_device’ does not match original declaration
# 296 | device_(gs_jetp3852_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev3852.c:57:34: note: ‘gs_jetp3852_device’ was previously declared here
# 294| device_(gs_iwlq_device)
# 295| device_(gs_iwlqc_device)
# 296|-> device_(gs_jetp3852_device)
# 297| device_(gs_jj100_device)
# 298| device_(gs_la50_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:297:1: warning[-Wlto-type-mismatch]: type of ‘gs_jj100_device’ does not match original declaration
# 297 | device_(gs_jj100_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevj100.c:31:19: note: ‘gs_jj100_device’ was previously declared here
# 295| device_(gs_iwlqc_device)
# 296| device_(gs_jetp3852_device)
# 297|-> device_(gs_jj100_device)
# 298| device_(gs_la50_device)
# 299| device_(gs_la70_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:298:1: warning[-Wlto-type-mismatch]: type of ‘gs_la50_device’ does not match original declaration
# 298 | device_(gs_la50_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevln03.c:129:19: note: ‘gs_la50_device’ was previously declared here
# 296| device_(gs_jetp3852_device)
# 297| device_(gs_jj100_device)
# 298|-> device_(gs_la50_device)
# 299| device_(gs_la70_device)
# 300| device_(gs_la75_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:299:1: warning[-Wlto-type-mismatch]: type of ‘gs_la70_device’ does not match original declaration
# 299 | device_(gs_la70_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevln03.c:156:19: note: ‘gs_la70_device’ was previously declared here
# 297| device_(gs_jj100_device)
# 298| device_(gs_la50_device)
# 299|-> device_(gs_la70_device)
# 300| device_(gs_la75_device)
# 301| device_(gs_la75plus_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:300:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75_device’ does not match original declaration
# 300 | device_(gs_la75_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevln03.c:182:19: note: ‘gs_la75_device’ was previously declared here
# 298| device_(gs_la50_device)
# 299| device_(gs_la70_device)
# 300|-> device_(gs_la75_device)
# 301| device_(gs_la75plus_device)
# 302| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:301:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75plus_device’ does not match original declaration
# 301 | device_(gs_la75plus_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevln03.c:209:19: note: ‘gs_la75plus_device’ was previously declared here
# 299| device_(gs_la70_device)
# 300| device_(gs_la75_device)
# 301|-> device_(gs_la75plus_device)
# 302| #endif
# 303| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:304:1: warning[-Wlto-type-mismatch]: type of ‘gs_laserjet_device’ does not match original declaration
# 304 | device2_(gs_laserjet_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:178:23: note: ‘gs_laserjet_device’ was previously declared here
# 302| #endif
# 303| #ifdef device2_
# 304|-> device2_(gs_laserjet_device)
# 305| #endif
# 306| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:307:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp310_device’ does not match original declaration
# 307 | device_(gs_lbp310_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevlbp3.c:17:28: note: ‘gs_lbp310_device’ was previously declared here
# 305| #endif
# 306| #ifdef device_
# 307|-> device_(gs_lbp310_device)
# 308| device_(gs_lbp320_device)
# 309| device_(gs_lbp8_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:308:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp320_device’ does not match original declaration
# 308 | device_(gs_lbp320_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevlbp3.c:29:28: note: ‘gs_lbp320_device’ was previously declared here
# 306| #ifdef device_
# 307| device_(gs_lbp310_device)
# 308|-> device_(gs_lbp320_device)
# 309| device_(gs_lbp8_device)
# 310| device_(gs_lex2050_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:309:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp8_device’ does not match original declaration
# 309 | device_(gs_lbp8_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevlbp8.c:50:34: note: ‘gs_lbp8_device’ was previously declared here
# 307| device_(gs_lbp310_device)
# 308| device_(gs_lbp320_device)
# 309|-> device_(gs_lbp8_device)
# 310| device_(gs_lex2050_device)
# 311| device_(gs_lex3200_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:310:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex2050_device’ does not match original declaration
# 310 | device_(gs_lex2050_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevlx7.c:216:21: note: ‘gs_lex2050_device’ was previously declared here
# 308| device_(gs_lbp320_device)
# 309| device_(gs_lbp8_device)
# 310|-> device_(gs_lex2050_device)
# 311| device_(gs_lex3200_device)
# 312| device_(gs_lex5700_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:311:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex3200_device’ does not match original declaration
# 311 | device_(gs_lex3200_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevlx7.c:193:21: note: ‘gs_lex3200_device’ was previously declared here
# 309| device_(gs_lbp8_device)
# 310| device_(gs_lex2050_device)
# 311|-> device_(gs_lex3200_device)
# 312| device_(gs_lex5700_device)
# 313| device_(gs_lex7000_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:312:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex5700_device’ does not match original declaration
# 312 | device_(gs_lex5700_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevlx7.c:170:21: note: ‘gs_lex5700_device’ was previously declared here
# 310| device_(gs_lex2050_device)
# 311| device_(gs_lex3200_device)
# 312|-> device_(gs_lex5700_device)
# 313| device_(gs_lex7000_device)
# 314| device_(gs_lips2p_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:313:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex7000_device’ does not match original declaration
# 313 | device_(gs_lex7000_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevlx7.c:147:21: note: ‘gs_lex7000_device’ was previously declared here
# 311| device_(gs_lex3200_device)
# 312| device_(gs_lex5700_device)
# 313|-> device_(gs_lex7000_device)
# 314| device_(gs_lips2p_device)
# 315| device_(gs_lips3_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:314:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips2p_device’ does not match original declaration
# 314 | device_(gs_lips2p_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/lips4/gdevl4r.c:146:25: note: ‘gs_lips2p_device’ was previously declared here
# 312| device_(gs_lex5700_device)
# 313| device_(gs_lex7000_device)
# 314|-> device_(gs_lips2p_device)
# 315| device_(gs_lips3_device)
# 316| device_(gs_lips4_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:315:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips3_device’ does not match original declaration
# 315 | device_(gs_lips3_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/lips4/gdevl4r.c:158:25: note: ‘gs_lips3_device’ was previously declared here
# 313| device_(gs_lex7000_device)
# 314| device_(gs_lips2p_device)
# 315|-> device_(gs_lips3_device)
# 316| device_(gs_lips4_device)
# 317| device_(gs_lips4v_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:316:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4_device’ does not match original declaration
# 316 | device_(gs_lips4_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/lips4/gdevl4r.c:182:26: note: ‘gs_lips4_device’ was previously declared here
# 314| device_(gs_lips2p_device)
# 315| device_(gs_lips3_device)
# 316|-> device_(gs_lips4_device)
# 317| device_(gs_lips4v_device)
# 318| device_(gs_lj250_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:317:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4v_device’ does not match original declaration
# 317 | device_(gs_lips4v_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/lips4/gdevl4v.c:185:27: note: ‘gs_lips4v_device’ was previously declared here
# 315| device_(gs_lips3_device)
# 316| device_(gs_lips4_device)
# 317|-> device_(gs_lips4v_device)
# 318| device_(gs_lj250_device)
# 319| device_(gs_lj3100sw_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:318:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj250_device’ does not match original declaration
# 318 | device_(gs_lj250_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevpjet.c:48:34: note: ‘gs_lj250_device’ was previously declared here
# 316| device_(gs_lips4_device)
# 317| device_(gs_lips4v_device)
# 318|-> device_(gs_lj250_device)
# 319| device_(gs_lj3100sw_device)
# 320| device_(gs_lj4dith_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:319:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj3100sw_device’ does not match original declaration
# 319 | device_(gs_lj3100sw_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevl31s.c:92:28: note: ‘gs_lj3100sw_device’ was previously declared here
# 317| device_(gs_lips4v_device)
# 318| device_(gs_lj250_device)
# 319|-> device_(gs_lj3100sw_device)
# 320| device_(gs_lj4dith_device)
# 321| device_(gs_lj4dithp_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:320:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dith_device’ does not match original declaration
# 320 | device_(gs_lj4dith_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:629:24: note: ‘gs_lj4dith_device’ was previously declared here
# 318| device_(gs_lj250_device)
# 319| device_(gs_lj3100sw_device)
# 320|-> device_(gs_lj4dith_device)
# 321| device_(gs_lj4dithp_device)
# 322| device_(gs_lj5gray_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:321:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dithp_device’ does not match original declaration
# 321 | device_(gs_lj4dithp_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:633:24: note: ‘gs_lj4dithp_device’ was previously declared here
# 319| device_(gs_lj3100sw_device)
# 320| device_(gs_lj4dith_device)
# 321|-> device_(gs_lj4dithp_device)
# 322| device_(gs_lj5gray_device)
# 323| device_(gs_lj5mono_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:322:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5gray_device’ does not match original declaration
# 322 | device_(gs_lj5gray_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevlj56.c:73:25: note: ‘gs_lj5gray_device’ was previously declared here
# 320| device_(gs_lj4dith_device)
# 321| device_(gs_lj4dithp_device)
# 322|-> device_(gs_lj5gray_device)
# 323| device_(gs_lj5mono_device)
# 324| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:323:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5mono_device’ does not match original declaration
# 323 | device_(gs_lj5mono_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevlj56.c:54:25: note: ‘gs_lj5mono_device’ was previously declared here
# 321| device_(gs_lj4dithp_device)
# 322| device_(gs_lj5gray_device)
# 323|-> device_(gs_lj5mono_device)
# 324| #endif
# 325| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:326:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet2p_device’ does not match original declaration
# 326 | device2_(gs_ljet2p_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:192:23: note: ‘gs_ljet2p_device’ was previously declared here
# 324| #endif
# 325| #ifdef device2_
# 326|-> device2_(gs_ljet2p_device)
# 327| device2_(gs_ljet3_device)
# 328| device2_(gs_ljet3d_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:327:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3_device’ does not match original declaration
# 327 | device2_(gs_ljet3_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:199:23: note: ‘gs_ljet3_device’ was previously declared here
# 325| #ifdef device2_
# 326| device2_(gs_ljet2p_device)
# 327|-> device2_(gs_ljet3_device)
# 328| device2_(gs_ljet3d_device)
# 329| device2_(gs_ljet4_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:328:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3d_device’ does not match original declaration
# 328 | device2_(gs_ljet3d_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:206:23: note: ‘gs_ljet3d_device’ was previously declared here
# 326| device2_(gs_ljet2p_device)
# 327| device2_(gs_ljet3_device)
# 328|-> device2_(gs_ljet3d_device)
# 329| device2_(gs_ljet4_device)
# 330| device2_(gs_ljet4d_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:329:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4_device’ does not match original declaration
# 329 | device2_(gs_ljet4_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:213:23: note: ‘gs_ljet4_device’ was previously declared here
# 327| device2_(gs_ljet3_device)
# 328| device2_(gs_ljet3d_device)
# 329|-> device2_(gs_ljet4_device)
# 330| device2_(gs_ljet4d_device)
# 331| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:330:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4d_device’ does not match original declaration
# 330 | device2_(gs_ljet4d_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:220:23: note: ‘gs_ljet4d_device’ was previously declared here
# 328| device2_(gs_ljet3d_device)
# 329| device2_(gs_ljet4_device)
# 330|-> device2_(gs_ljet4d_device)
# 331| #endif
# 332| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:333:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4pjl_device’ does not match original declaration
# 333 | device_(gs_ljet4pjl_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:241:25: note: ‘gs_ljet4pjl_device’ was previously declared here
# 331| #endif
# 332| #ifdef device_
# 333|-> device_(gs_ljet4pjl_device)
# 334| #endif
# 335| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:336:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljetplus_device’ does not match original declaration
# 336 | device2_(gs_ljetplus_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:185:23: note: ‘gs_ljetplus_device’ was previously declared here
# 334| #endif
# 335| #ifdef device2_
# 336|-> device2_(gs_ljetplus_device)
# 337| #endif
# 338| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:339:1: warning[-Wlto-type-mismatch]: type of ‘gs_ln03_device’ does not match original declaration
# 339 | device_(gs_ln03_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevln03.c:67:19: note: ‘gs_ln03_device’ was previously declared here
# 337| #endif
# 338| #ifdef device_
# 339|-> device_(gs_ln03_device)
# 340| device_(gs_lp1800_device)
# 341| device_(gs_lp1900_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:340:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1800_device’ does not match original declaration
# 340 | device_(gs_lp1800_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:254:25: note: ‘gs_lp1800_device’ was previously declared here
# 338| #ifdef device_
# 339| device_(gs_ln03_device)
# 340|-> device_(gs_lp1800_device)
# 341| device_(gs_lp1900_device)
# 342| device_(gs_lp2000_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:341:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1900_device’ does not match original declaration
# 341 | device_(gs_lp1900_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:255:25: note: ‘gs_lp1900_device’ was previously declared here
# 339| device_(gs_ln03_device)
# 340| device_(gs_lp1800_device)
# 341|-> device_(gs_lp1900_device)
# 342| device_(gs_lp2000_device)
# 343| device_(gs_lp2200_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:342:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2000_device’ does not match original declaration
# 342 | device_(gs_lp2000_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevespg.c:66:25: note: ‘gs_lp2000_device’ was previously declared here
# 340| device_(gs_lp1800_device)
# 341| device_(gs_lp1900_device)
# 342|-> device_(gs_lp2000_device)
# 343| device_(gs_lp2200_device)
# 344| device_(gs_lp2400_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:343:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2200_device’ does not match original declaration
# 343 | device_(gs_lp2200_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:256:25: note: ‘gs_lp2200_device’ was previously declared here
# 341| device_(gs_lp1900_device)
# 342| device_(gs_lp2000_device)
# 343|-> device_(gs_lp2200_device)
# 344| device_(gs_lp2400_device)
# 345| device_(gs_lp2500_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:344:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2400_device’ does not match original declaration
# 344 | device_(gs_lp2400_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:257:25: note: ‘gs_lp2400_device’ was previously declared here
# 342| device_(gs_lp2000_device)
# 343| device_(gs_lp2200_device)
# 344|-> device_(gs_lp2400_device)
# 345| device_(gs_lp2500_device)
# 346| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:345:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2500_device’ does not match original declaration
# 345 | device_(gs_lp2500_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:258:25: note: ‘gs_lp2500_device’ was previously declared here
# 343| device_(gs_lp2200_device)
# 344| device_(gs_lp2400_device)
# 345|-> device_(gs_lp2500_device)
# 346| #endif
# 347| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:348:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2563_device’ does not match original declaration
# 348 | device2_(gs_lp2563_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:227:23: note: ‘gs_lp2563_device’ was previously declared here
# 346| #endif
# 347| #ifdef device2_
# 348|-> device2_(gs_lp2563_device)
# 349| #endif
# 350| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:351:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp3000c_device’ does not match original declaration
# 351 | device_(gs_lp3000c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:287:25: note: ‘gs_lp3000c_device’ was previously declared here
# 349| #endif
# 350| #ifdef device_
# 351|-> device_(gs_lp3000c_device)
# 352| device_(gs_lp7500_device)
# 353| device_(gs_lp7700_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:352:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7500_device’ does not match original declaration
# 352 | device_(gs_lp7500_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:259:25: note: ‘gs_lp7500_device’ was previously declared here
# 350| #ifdef device_
# 351| device_(gs_lp3000c_device)
# 352|-> device_(gs_lp7500_device)
# 353| device_(gs_lp7700_device)
# 354| device_(gs_lp7900_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:353:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7700_device’ does not match original declaration
# 353 | device_(gs_lp7700_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:260:25: note: ‘gs_lp7700_device’ was previously declared here
# 351| device_(gs_lp3000c_device)
# 352| device_(gs_lp7500_device)
# 353|-> device_(gs_lp7700_device)
# 354| device_(gs_lp7900_device)
# 355| device_(gs_lp8000_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:354:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7900_device’ does not match original declaration
# 354 | device_(gs_lp7900_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:261:25: note: ‘gs_lp7900_device’ was previously declared here
# 352| device_(gs_lp7500_device)
# 353| device_(gs_lp7700_device)
# 354|-> device_(gs_lp7900_device)
# 355| device_(gs_lp8000_device)
# 356| device_(gs_lp8000c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:355:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000_device’ does not match original declaration
# 355 | device_(gs_lp8000_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevlp8k.c:172:28: note: ‘gs_lp8000_device’ was previously declared here
# 353| device_(gs_lp7700_device)
# 354| device_(gs_lp7900_device)
# 355|-> device_(gs_lp8000_device)
# 356| device_(gs_lp8000c_device)
# 357| device_(gs_lp8100_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:356:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000c_device’ does not match original declaration
# 356 | device_(gs_lp8000c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:288:25: note: ‘gs_lp8000c_device’ was previously declared here
# 354| device_(gs_lp7900_device)
# 355| device_(gs_lp8000_device)
# 356|-> device_(gs_lp8000c_device)
# 357| device_(gs_lp8100_device)
# 358| device_(gs_lp8200c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:357:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8100_device’ does not match original declaration
# 357 | device_(gs_lp8100_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:262:25: note: ‘gs_lp8100_device’ was previously declared here
# 355| device_(gs_lp8000_device)
# 356| device_(gs_lp8000c_device)
# 357|-> device_(gs_lp8100_device)
# 358| device_(gs_lp8200c_device)
# 359| device_(gs_lp8300c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:358:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8200c_device’ does not match original declaration
# 358 | device_(gs_lp8200c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:289:25: note: ‘gs_lp8200c_device’ was previously declared here
# 356| device_(gs_lp8000c_device)
# 357| device_(gs_lp8100_device)
# 358|-> device_(gs_lp8200c_device)
# 359| device_(gs_lp8300c_device)
# 360| device_(gs_lp8300f_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:359:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300c_device’ does not match original declaration
# 359 | device_(gs_lp8300c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:290:25: note: ‘gs_lp8300c_device’ was previously declared here
# 357| device_(gs_lp8100_device)
# 358| device_(gs_lp8200c_device)
# 359|-> device_(gs_lp8300c_device)
# 360| device_(gs_lp8300f_device)
# 361| device_(gs_lp8400f_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:360:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300f_device’ does not match original declaration
# 360 | device_(gs_lp8300f_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:263:25: note: ‘gs_lp8300f_device’ was previously declared here
# 358| device_(gs_lp8200c_device)
# 359| device_(gs_lp8300c_device)
# 360|-> device_(gs_lp8300f_device)
# 361| device_(gs_lp8400f_device)
# 362| device_(gs_lp8500c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:361:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8400f_device’ does not match original declaration
# 361 | device_(gs_lp8400f_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:264:25: note: ‘gs_lp8400f_device’ was previously declared here
# 359| device_(gs_lp8300c_device)
# 360| device_(gs_lp8300f_device)
# 361|-> device_(gs_lp8400f_device)
# 362| device_(gs_lp8500c_device)
# 363| device_(gs_lp8600_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:362:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8500c_device’ does not match original declaration
# 362 | device_(gs_lp8500c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:291:25: note: ‘gs_lp8500c_device’ was previously declared here
# 360| device_(gs_lp8300f_device)
# 361| device_(gs_lp8400f_device)
# 362|-> device_(gs_lp8500c_device)
# 363| device_(gs_lp8600_device)
# 364| device_(gs_lp8600f_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:363:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600_device’ does not match original declaration
# 363 | device_(gs_lp8600_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:265:25: note: ‘gs_lp8600_device’ was previously declared here
# 361| device_(gs_lp8400f_device)
# 362| device_(gs_lp8500c_device)
# 363|-> device_(gs_lp8600_device)
# 364| device_(gs_lp8600f_device)
# 365| device_(gs_lp8700_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:364:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600f_device’ does not match original declaration
# 364 | device_(gs_lp8600f_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:266:25: note: ‘gs_lp8600f_device’ was previously declared here
# 362| device_(gs_lp8500c_device)
# 363| device_(gs_lp8600_device)
# 364|-> device_(gs_lp8600f_device)
# 365| device_(gs_lp8700_device)
# 366| device_(gs_lp8800c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:365:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8700_device’ does not match original declaration
# 365 | device_(gs_lp8700_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:267:25: note: ‘gs_lp8700_device’ was previously declared here
# 363| device_(gs_lp8600_device)
# 364| device_(gs_lp8600f_device)
# 365|-> device_(gs_lp8700_device)
# 366| device_(gs_lp8800c_device)
# 367| device_(gs_lp8900_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:366:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8800c_device’ does not match original declaration
# 366 | device_(gs_lp8800c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:292:25: note: ‘gs_lp8800c_device’ was previously declared here
# 364| device_(gs_lp8600f_device)
# 365| device_(gs_lp8700_device)
# 366|-> device_(gs_lp8800c_device)
# 367| device_(gs_lp8900_device)
# 368| device_(gs_lp9000b_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:367:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8900_device’ does not match original declaration
# 367 | device_(gs_lp8900_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:268:25: note: ‘gs_lp8900_device’ was previously declared here
# 365| device_(gs_lp8700_device)
# 366| device_(gs_lp8800c_device)
# 367|-> device_(gs_lp8900_device)
# 368| device_(gs_lp9000b_device)
# 369| device_(gs_lp9000c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:368:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000b_device’ does not match original declaration
# 368 | device_(gs_lp9000b_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:269:25: note: ‘gs_lp9000b_device’ was previously declared here
# 366| device_(gs_lp8800c_device)
# 367| device_(gs_lp8900_device)
# 368|-> device_(gs_lp9000b_device)
# 369| device_(gs_lp9000c_device)
# 370| device_(gs_lp9100_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:369:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000c_device’ does not match original declaration
# 369 | device_(gs_lp9000c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:293:25: note: ‘gs_lp9000c_device’ was previously declared here
# 367| device_(gs_lp8900_device)
# 368| device_(gs_lp9000b_device)
# 369|-> device_(gs_lp9000c_device)
# 370| device_(gs_lp9100_device)
# 371| device_(gs_lp9200b_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:370:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9100_device’ does not match original declaration
# 370 | device_(gs_lp9100_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:270:25: note: ‘gs_lp9100_device’ was previously declared here
# 368| device_(gs_lp9000b_device)
# 369| device_(gs_lp9000c_device)
# 370|-> device_(gs_lp9100_device)
# 371| device_(gs_lp9200b_device)
# 372| device_(gs_lp9200c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:371:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200b_device’ does not match original declaration
# 371 | device_(gs_lp9200b_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:271:25: note: ‘gs_lp9200b_device’ was previously declared here
# 369| device_(gs_lp9000c_device)
# 370| device_(gs_lp9100_device)
# 371|-> device_(gs_lp9200b_device)
# 372| device_(gs_lp9200c_device)
# 373| device_(gs_lp9300_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:372:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200c_device’ does not match original declaration
# 372 | device_(gs_lp9200c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:294:25: note: ‘gs_lp9200c_device’ was previously declared here
# 370| device_(gs_lp9100_device)
# 371| device_(gs_lp9200b_device)
# 372|-> device_(gs_lp9200c_device)
# 373| device_(gs_lp9300_device)
# 374| device_(gs_lp9400_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:373:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9300_device’ does not match original declaration
# 373 | device_(gs_lp9300_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:272:25: note: ‘gs_lp9300_device’ was previously declared here
# 371| device_(gs_lp9200b_device)
# 372| device_(gs_lp9200c_device)
# 373|-> device_(gs_lp9300_device)
# 374| device_(gs_lp9400_device)
# 375| device_(gs_lp9500c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:374:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9400_device’ does not match original declaration
# 374 | device_(gs_lp9400_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:273:25: note: ‘gs_lp9400_device’ was previously declared here
# 372| device_(gs_lp9200c_device)
# 373| device_(gs_lp9300_device)
# 374|-> device_(gs_lp9400_device)
# 375| device_(gs_lp9500c_device)
# 376| device_(gs_lp9600_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:375:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9500c_device’ does not match original declaration
# 375 | device_(gs_lp9500c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:295:25: note: ‘gs_lp9500c_device’ was previously declared here
# 373| device_(gs_lp9300_device)
# 374| device_(gs_lp9400_device)
# 375|-> device_(gs_lp9500c_device)
# 376| device_(gs_lp9600_device)
# 377| device_(gs_lp9600s_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:376:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600_device’ does not match original declaration
# 376 | device_(gs_lp9600_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:274:25: note: ‘gs_lp9600_device’ was previously declared here
# 374| device_(gs_lp9400_device)
# 375| device_(gs_lp9500c_device)
# 376|-> device_(gs_lp9600_device)
# 377| device_(gs_lp9600s_device)
# 378| device_(gs_lp9800c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:377:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600s_device’ does not match original declaration
# 377 | device_(gs_lp9600s_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:275:25: note: ‘gs_lp9600s_device’ was previously declared here
# 375| device_(gs_lp9500c_device)
# 376| device_(gs_lp9600_device)
# 377|-> device_(gs_lp9600s_device)
# 378| device_(gs_lp9800c_device)
# 379| device_(gs_lps4500_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:378:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9800c_device’ does not match original declaration
# 378 | device_(gs_lp9800c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:296:25: note: ‘gs_lp9800c_device’ was previously declared here
# 376| device_(gs_lp9600_device)
# 377| device_(gs_lp9600s_device)
# 378|-> device_(gs_lp9800c_device)
# 379| device_(gs_lps4500_device)
# 380| device_(gs_lps6500_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:379:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps4500_device’ does not match original declaration
# 379 | device_(gs_lps4500_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:276:25: note: ‘gs_lps4500_device’ was previously declared here
# 377| device_(gs_lp9600s_device)
# 378| device_(gs_lp9800c_device)
# 379|-> device_(gs_lps4500_device)
# 380| device_(gs_lps6500_device)
# 381| device_(gs_lq850_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:380:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps6500_device’ does not match original declaration
# 380 | device_(gs_lps6500_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/eplaser/gdevescv.c:297:25: note: ‘gs_lps6500_device’ was previously declared here
# 378| device_(gs_lp9800c_device)
# 379| device_(gs_lps4500_device)
# 380|-> device_(gs_lps6500_device)
# 381| device_(gs_lq850_device)
# 382| device_(gs_lxm3200_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:381:1: warning[-Wlto-type-mismatch]: type of ‘gs_lq850_device’ does not match original declaration
# 381 | device_(gs_lq850_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdm24.c:38:25: note: ‘gs_lq850_device’ was previously declared here
# 379| device_(gs_lps4500_device)
# 380| device_(gs_lps6500_device)
# 381|-> device_(gs_lq850_device)
# 382| device_(gs_lxm3200_device)
# 383| device_(gs_lxm5700m_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:382:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm3200_device’ does not match original declaration
# 382 | device_(gs_lxm3200_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevlx32.c:318:21: note: ‘gs_lxm3200_device’ was previously declared here
# 380| device_(gs_lps6500_device)
# 381| device_(gs_lq850_device)
# 382|-> device_(gs_lxm3200_device)
# 383| device_(gs_lxm5700m_device)
# 384| device_(gs_m8510_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:383:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm5700m_device’ does not match original declaration
# 383 | device_(gs_lxm5700m_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevlxm.c:62:21: note: ‘gs_lxm5700m_device’ was previously declared here
# 381| device_(gs_lq850_device)
# 382| device_(gs_lxm3200_device)
# 383|-> device_(gs_lxm5700m_device)
# 384| device_(gs_m8510_device)
# 385| device_(gs_md1xMono_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:384:1: warning[-Wlto-type-mismatch]: type of ‘gs_m8510_device’ does not match original declaration
# 384 | device_(gs_m8510_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev8510.c:26:34: note: ‘gs_m8510_device’ was previously declared here
# 382| device_(gs_lxm3200_device)
# 383| device_(gs_lxm5700m_device)
# 384|-> device_(gs_m8510_device)
# 385| device_(gs_md1xMono_device)
# 386| device_(gs_md2k_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:385:1: warning[-Wlto-type-mismatch]: type of ‘gs_md1xMono_device’ does not match original declaration
# 385 | device_(gs_md1xMono_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevalps.c:86:28: note: ‘gs_md1xMono_device’ was previously declared here
# 383| device_(gs_lxm5700m_device)
# 384| device_(gs_m8510_device)
# 385|-> device_(gs_md1xMono_device)
# 386| device_(gs_md2k_device)
# 387| device_(gs_md50Eco_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:386:1: warning[-Wlto-type-mismatch]: type of ‘gs_md2k_device’ does not match original declaration
# 386 | device_(gs_md2k_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevmd2k.c:95:25: note: ‘gs_md2k_device’ was previously declared here
# 384| device_(gs_m8510_device)
# 385| device_(gs_md1xMono_device)
# 386|-> device_(gs_md2k_device)
# 387| device_(gs_md50Eco_device)
# 388| device_(gs_md50Mono_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:387:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Eco_device’ does not match original declaration
# 387 | device_(gs_md50Eco_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevalps.c:77:28: note: ‘gs_md50Eco_device’ was previously declared here
# 385| device_(gs_md1xMono_device)
# 386| device_(gs_md2k_device)
# 387|-> device_(gs_md50Eco_device)
# 388| device_(gs_md50Mono_device)
# 389| device_(gs_md5k_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:388:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Mono_device’ does not match original declaration
# 388 | device_(gs_md50Mono_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevalps.c:68:28: note: ‘gs_md50Mono_device’ was previously declared here
# 386| device_(gs_md2k_device)
# 387| device_(gs_md50Eco_device)
# 388|-> device_(gs_md50Mono_device)
# 389| device_(gs_md5k_device)
# 390| device_(gs_mj500c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:389:1: warning[-Wlto-type-mismatch]: type of ‘gs_md5k_device’ does not match original declaration
# 389 | device_(gs_md5k_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevmd2k.c:96:25: note: ‘gs_md5k_device’ was previously declared here
# 387| device_(gs_md50Eco_device)
# 388| device_(gs_md50Mono_device)
# 389|-> device_(gs_md5k_device)
# 390| device_(gs_mj500c_device)
# 391| device_(gs_mj6000c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:390:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj500c_device’ does not match original declaration
# 390 | device_(gs_mj500c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevmjc.c:265:23: note: ‘gs_mj500c_device’ was previously declared here
# 388| device_(gs_md50Mono_device)
# 389| device_(gs_md5k_device)
# 390|-> device_(gs_mj500c_device)
# 391| device_(gs_mj6000c_device)
# 392| device_(gs_mj700v2c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:391:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj6000c_device’ does not match original declaration
# 391 | device_(gs_mj6000c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevmjc.c:270:23: note: ‘gs_mj6000c_device’ was previously declared here
# 389| device_(gs_md5k_device)
# 390| device_(gs_mj500c_device)
# 391|-> device_(gs_mj6000c_device)
# 392| device_(gs_mj700v2c_device)
# 393| device_(gs_mj8000c_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:392:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj700v2c_device’ does not match original declaration
# 392 | device_(gs_mj700v2c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevmjc.c:259:23: note: ‘gs_mj700v2c_device’ was previously declared here
# 390| device_(gs_mj500c_device)
# 391| device_(gs_mj6000c_device)
# 392|-> device_(gs_mj700v2c_device)
# 393| device_(gs_mj8000c_device)
# 394| device_(gs_ml600_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:393:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj8000c_device’ does not match original declaration
# 393 | device_(gs_mj8000c_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevmjc.c:275:23: note: ‘gs_mj8000c_device’ was previously declared here
# 391| device_(gs_mj6000c_device)
# 392| device_(gs_mj700v2c_device)
# 393|-> device_(gs_mj8000c_device)
# 394| device_(gs_ml600_device)
# 395| device_(gs_necp6_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:394:1: warning[-Wlto-type-mismatch]: type of ‘gs_ml600_device’ does not match original declaration
# 394 | device_(gs_ml600_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevml6.c:44:19: note: ‘gs_ml600_device’ was previously declared here
# 392| device_(gs_mj700v2c_device)
# 393| device_(gs_mj8000c_device)
# 394|-> device_(gs_ml600_device)
# 395| device_(gs_necp6_device)
# 396| device_(gs_npdl_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:395:1: warning[-Wlto-type-mismatch]: type of ‘gs_necp6_device’ does not match original declaration
# 395 | device_(gs_necp6_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdm24.c:27:34: note: ‘gs_necp6_device’ was previously declared here
# 393| device_(gs_mj8000c_device)
# 394| device_(gs_ml600_device)
# 395|-> device_(gs_necp6_device)
# 396| device_(gs_npdl_device)
# 397| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:396:1: warning[-Wlto-type-mismatch]: type of ‘gs_npdl_device’ does not match original declaration
# 396 | device_(gs_npdl_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevnpdl.c:132:25: note: ‘gs_npdl_device’ was previously declared here
# 394| device_(gs_ml600_device)
# 395| device_(gs_necp6_device)
# 396|-> device_(gs_npdl_device)
# 397| #endif
# 398| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:399:1: warning[-Wlto-type-mismatch]: type of ‘gs_oce9050_device’ does not match original declaration
# 399 | device2_(gs_oce9050_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevdjet.c:234:23: note: ‘gs_oce9050_device’ was previously declared here
# 397| #endif
# 398| #ifdef device2_
# 399|-> device2_(gs_oce9050_device)
# 400| #endif
# 401| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:402:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki182_device’ does not match original declaration
# 402 | device_(gs_oki182_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevo182.c:67:34: note: ‘gs_oki182_device’ was previously declared here
# 400| #endif
# 401| #ifdef device_
# 402|-> device_(gs_oki182_device)
# 403| device_(gs_oki4w_device)
# 404| device_(gs_okiibm_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:403:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki4w_device’ does not match original declaration
# 403 | device_(gs_oki4w_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevop4w.c:106:28: note: ‘gs_oki4w_device’ was previously declared here
# 401| #ifdef device_
# 402| device_(gs_oki182_device)
# 403|-> device_(gs_oki4w_device)
# 404| device_(gs_okiibm_device)
# 405| device_(gs_oprp_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:404:1: warning[-Wlto-type-mismatch]: type of ‘gs_okiibm_device’ does not match original declaration
# 404 | device_(gs_okiibm_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevokii.c:77:34: note: ‘gs_okiibm_device’ was previously declared here
# 402| device_(gs_oki182_device)
# 403| device_(gs_oki4w_device)
# 404|-> device_(gs_okiibm_device)
# 405| device_(gs_oprp_device)
# 406| device_(gs_opvp_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:405:1: warning[-Wlto-type-mismatch]: type of ‘gs_oprp_device’ does not match original declaration
# 405 | device_(gs_oprp_device)
# | ^
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:504:22: note: type ‘const struct gx_device_oprp’ should match type ‘struct gx_device’
# 504 | const gx_device_oprp gs_oprp_device =
# | ^
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:504:22: note: ‘gs_oprp_device’ was previously declared here
# 403| device_(gs_oki4w_device)
# 404| device_(gs_okiibm_device)
# 405|-> device_(gs_oprp_device)
# 406| device_(gs_opvp_device)
# 407| device_(gs_paintjet_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:406:1: warning[-Wlto-type-mismatch]: type of ‘gs_opvp_device’ does not match original declaration
# 406 | device_(gs_opvp_device)
# | ^
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:459:33: note: type ‘const struct gx_device_opvp’ should match type ‘struct gx_device’
# 459 | const gx_device_opvp gs_opvp_device =
# | ^
ghostscript-10.06.0/contrib/opvp/gdevopvp.c:459:33: note: ‘gs_opvp_device’ was previously declared here
# 404| device_(gs_okiibm_device)
# 405| device_(gs_oprp_device)
# 406|-> device_(gs_opvp_device)
# 407| device_(gs_paintjet_device)
# 408| device_(gs_pcl3_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:407:1: warning[-Wlto-type-mismatch]: type of ‘gs_paintjet_device’ does not match original declaration
# 407 | device_(gs_paintjet_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevpjet.c:55:34: note: ‘gs_paintjet_device’ was previously declared here
# 405| device_(gs_oprp_device)
# 406| device_(gs_opvp_device)
# 407|-> device_(gs_paintjet_device)
# 408| device_(gs_pcl3_device)
# 409| device_(gs_photoex_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:408:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcl3_device’ does not match original declaration
# 408 | device_(gs_pcl3_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/pcl3/src/gdevpcl3.c:162:1: note: ‘gs_pcl3_device’ was previously declared here
# 406| device_(gs_opvp_device)
# 407| device_(gs_paintjet_device)
# 408|-> device_(gs_pcl3_device)
# 409| device_(gs_photoex_device)
# 410| device_(gs_picty180_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:409:1: warning[-Wlto-type-mismatch]: type of ‘gs_photoex_device’ does not match original declaration
# 409 | device_(gs_photoex_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevphex.c:1030:28: note: ‘gs_photoex_device’ was previously declared here
# 407| device_(gs_paintjet_device)
# 408| device_(gs_pcl3_device)
# 409|-> device_(gs_photoex_device)
# 410| device_(gs_picty180_device)
# 411| device_(gs_pj_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:410:1: warning[-Wlto-type-mismatch]: type of ‘gs_picty180_device’ does not match original declaration
# 410 | device_(gs_picty180_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:613:24: note: ‘gs_picty180_device’ was previously declared here
# 408| device_(gs_pcl3_device)
# 409| device_(gs_photoex_device)
# 410|-> device_(gs_picty180_device)
# 411| device_(gs_pj_device)
# 412| device_(gs_pjetxl_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:411:1: warning[-Wlto-type-mismatch]: type of ‘gs_pj_device’ does not match original declaration
# 411 | device_(gs_pj_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:637:23: note: ‘gs_pj_device’ was previously declared here
# 409| device_(gs_photoex_device)
# 410| device_(gs_picty180_device)
# 411|-> device_(gs_pj_device)
# 412| device_(gs_pjetxl_device)
# 413| device_(gs_pjxl_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:412:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjetxl_device’ does not match original declaration
# 412 | device_(gs_pjetxl_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevpjet.c:63:34: note: ‘gs_pjetxl_device’ was previously declared here
# 410| device_(gs_picty180_device)
# 411| device_(gs_pj_device)
# 412|-> device_(gs_pjetxl_device)
# 413| device_(gs_pjxl_device)
# 414| device_(gs_pjxl300_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:413:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl_device’ does not match original declaration
# 413 | device_(gs_pjxl_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:641:25: note: ‘gs_pjxl_device’ was previously declared here
# 411| device_(gs_pj_device)
# 412| device_(gs_pjetxl_device)
# 413|-> device_(gs_pjxl_device)
# 414| device_(gs_pjxl300_device)
# 415| device_(gs_pr1000_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:414:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl300_device’ does not match original declaration
# 414 | device_(gs_pjxl300_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevcdj.c:645:25: note: ‘gs_pjxl300_device’ was previously declared here
# 412| device_(gs_pjetxl_device)
# 413| device_(gs_pjxl_device)
# 414|-> device_(gs_pjxl300_device)
# 415| device_(gs_pr1000_device)
# 416| device_(gs_pr1000_4_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:415:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_device’ does not match original declaration
# 415 | device_(gs_pr1000_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevp201.c:52:19: note: ‘gs_pr1000_device’ was previously declared here
# 413| device_(gs_pjxl_device)
# 414| device_(gs_pjxl300_device)
# 415|-> device_(gs_pr1000_device)
# 416| device_(gs_pr1000_4_device)
# 417| device_(gs_pr150_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:416:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_4_device’ does not match original declaration
# 416 | device_(gs_pr1000_4_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevp201.c:70:19: note: ‘gs_pr1000_4_device’ was previously declared here
# 414| device_(gs_pjxl300_device)
# 415| device_(gs_pr1000_device)
# 416|-> device_(gs_pr1000_4_device)
# 417| device_(gs_pr150_device)
# 418| device_(gs_pr201_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:417:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr150_device’ does not match original declaration
# 417 | device_(gs_pr150_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevp201.c:61:19: note: ‘gs_pr150_device’ was previously declared here
# 415| device_(gs_pr1000_device)
# 416| device_(gs_pr1000_4_device)
# 417|-> device_(gs_pr150_device)
# 418| device_(gs_pr201_device)
# 419| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:418:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr201_device’ does not match original declaration
# 418 | device_(gs_pr201_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevp201.c:43:19: note: ‘gs_pr201_device’ was previously declared here
# 416| device_(gs_pr1000_4_device)
# 417| device_(gs_pr150_device)
# 418|-> device_(gs_pr201_device)
# 419| #endif
# 420| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:421:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlcolor_device’ does not match original declaration
# 421 | device2_(gs_pxlcolor_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/vector/gdevpx.c:200:23: note: ‘gs_pxlcolor_device’ was previously declared here
# 419| #endif
# 420| #ifdef device2_
# 421|-> device2_(gs_pxlcolor_device)
# 422| device2_(gs_pxlmono_device)
# 423| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:422:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlmono_device’ does not match original declaration
# 422 | device2_(gs_pxlmono_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/vector/gdevpx.c:196:23: note: ‘gs_pxlmono_device’ was previously declared here
# 420| #ifdef device2_
# 421| device2_(gs_pxlcolor_device)
# 422|-> device2_(gs_pxlmono_device)
# 423| #endif
# 424| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:425:1: warning[-Wlto-type-mismatch]: type of ‘gs_r4081_device’ does not match original declaration
# 425 | device_(gs_r4081_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev4081.c:24:34: note: ‘gs_r4081_device’ was previously declared here
# 423| #endif
# 424| #ifdef device_
# 425|-> device_(gs_r4081_device)
# 426| device_(gs_rinkj_device)
# 427| device_(gs_rpdl_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:426:1: warning[-Wlto-type-mismatch]: type of ‘gs_rinkj_device’ does not match original declaration
# 426 | device_(gs_rinkj_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevrinkj.c:145:20: note: ‘gs_rinkj_device’ was previously declared here
# 424| #ifdef device_
# 425| device_(gs_r4081_device)
# 426|-> device_(gs_rinkj_device)
# 427| device_(gs_rpdl_device)
# 428| device_(gs_samsunggdi_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:427:1: warning[-Wlto-type-mismatch]: type of ‘gs_rpdl_device’ does not match original declaration
# 427 | device_(gs_rpdl_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/japanese/gdevrpdl.c:48:25: note: ‘gs_rpdl_device’ was previously declared here
# 425| device_(gs_r4081_device)
# 426| device_(gs_rinkj_device)
# 427|-> device_(gs_rpdl_device)
# 428| device_(gs_samsunggdi_device)
# 429| device_(gs_sj48_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:428:1: warning[-Wlto-type-mismatch]: type of ‘gs_samsunggdi_device’ does not match original declaration
# 428 | device_(gs_samsunggdi_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevgdi.c:114:28: note: ‘gs_samsunggdi_device’ was previously declared here
# 426| device_(gs_rinkj_device)
# 427| device_(gs_rpdl_device)
# 428|-> device_(gs_samsunggdi_device)
# 429| device_(gs_sj48_device)
# 430| device_(gs_st800_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:429:1: warning[-Wlto-type-mismatch]: type of ‘gs_sj48_device’ does not match original declaration
# 429 | device_(gs_sj48_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevsj48.c:43:28: note: ‘gs_sj48_device’ was previously declared here
# 427| device_(gs_rpdl_device)
# 428| device_(gs_samsunggdi_device)
# 429|-> device_(gs_sj48_device)
# 430| device_(gs_st800_device)
# 431| device_(gs_stcolor_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:430:1: warning[-Wlto-type-mismatch]: type of ‘gs_st800_device’ does not match original declaration
# 430 | device_(gs_st800_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevescp.c:89:34: note: ‘gs_st800_device’ was previously declared here
# 428| device_(gs_samsunggdi_device)
# 429| device_(gs_sj48_device)
# 430|-> device_(gs_st800_device)
# 431| device_(gs_stcolor_device)
# 432| device_(gs_t4693d2_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:431:1: warning[-Wlto-type-mismatch]: type of ‘gs_stcolor_device’ does not match original declaration
# 431 | device_(gs_stcolor_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevstc.c:163:25: note: ‘gs_stcolor_device’ was previously declared here
# 429| device_(gs_sj48_device)
# 430| device_(gs_st800_device)
# 431|-> device_(gs_stcolor_device)
# 432| device_(gs_t4693d2_device)
# 433| device_(gs_t4693d4_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:432:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d2_device’ does not match original declaration
# 432 | device_(gs_t4693d2_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev4693.c:44:25: note: ‘gs_t4693d2_device’ was previously declared here
# 430| device_(gs_st800_device)
# 431| device_(gs_stcolor_device)
# 432|-> device_(gs_t4693d2_device)
# 433| device_(gs_t4693d4_device)
# 434| device_(gs_t4693d8_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:433:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d4_device’ does not match original declaration
# 433 | device_(gs_t4693d4_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev4693.c:45:25: note: ‘gs_t4693d4_device’ was previously declared here
# 431| device_(gs_stcolor_device)
# 432| device_(gs_t4693d2_device)
# 433|-> device_(gs_t4693d4_device)
# 434| device_(gs_t4693d8_device)
# 435| device_(gs_tek4696_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:434:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d8_device’ does not match original declaration
# 434 | device_(gs_t4693d8_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdev4693.c:46:25: note: ‘gs_t4693d8_device’ was previously declared here
# 432| device_(gs_t4693d2_device)
# 433| device_(gs_t4693d4_device)
# 434|-> device_(gs_t4693d8_device)
# 435| device_(gs_tek4696_device)
# 436| device_(gs_uniprint_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:435:1: warning[-Wlto-type-mismatch]: type of ‘gs_tek4696_device’ does not match original declaration
# 435 | device_(gs_tek4696_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevtknk.c:52:34: note: ‘gs_tek4696_device’ was previously declared here
# 433| device_(gs_t4693d4_device)
# 434| device_(gs_t4693d8_device)
# 435|-> device_(gs_tek4696_device)
# 436| device_(gs_uniprint_device)
# 437| device_(gs_xes_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:436:1: warning[-Wlto-type-mismatch]: type of ‘gs_uniprint_device’ does not match original declaration
# 436 | device_(gs_uniprint_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevupd.c:248:21: note: ‘gs_uniprint_device’ was previously declared here
# 434| device_(gs_t4693d8_device)
# 435| device_(gs_tek4696_device)
# 436|-> device_(gs_uniprint_device)
# 437| device_(gs_xes_device)
# 438| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:437:1: warning[-Wlto-type-mismatch]: type of ‘gs_xes_device’ does not match original declaration
# 437 | device_(gs_xes_device)
# | ^
ghostscript-10.06.0/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.06.0/contrib/gdevxes.c:69:19: note: ‘gs_xes_device’ was previously declared here
# 435| device_(gs_tek4696_device)
# 436| device_(gs_uniprint_device)
# 437|-> device_(gs_xes_device)
# 438| #endif
# 439| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:440:1: warning[-Wlto-type-mismatch]: type of ‘gs_appleraster_device’ does not match original declaration
# 440 | device2_(gs_appleraster_device)
# | ^
ghostscript-10.06.0/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.06.0/cups/gdevcups.c:486:17: note: ‘gs_appleraster_device’ was previously declared here
# 438| #endif
# 439| #ifdef device2_
# 440|-> device2_(gs_appleraster_device)
# 441| device2_(gs_cups_device)
# 442| device2_(gs_pwgraster_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:441:1: warning[-Wlto-type-mismatch]: type of ‘gs_cups_device’ does not match original declaration
# 441 | device2_(gs_cups_device)
# | ^
ghostscript-10.06.0/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.06.0/cups/gdevcups.c:482:17: note: ‘gs_cups_device’ was previously declared here
# 439| #ifdef device2_
# 440| device2_(gs_appleraster_device)
# 441|-> device2_(gs_cups_device)
# 442| device2_(gs_pwgraster_device)
# 443| device2_(gs_urf_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:442:1: warning[-Wlto-type-mismatch]: type of ‘gs_pwgraster_device’ does not match original declaration
# 442 | device2_(gs_pwgraster_device)
# | ^
ghostscript-10.06.0/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.06.0/cups/gdevcups.c:483:17: note: ‘gs_pwgraster_device’ was previously declared here
# 440| device2_(gs_appleraster_device)
# 441| device2_(gs_cups_device)
# 442|-> device2_(gs_pwgraster_device)
# 443| device2_(gs_urf_device)
# 444| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:443:1: warning[-Wlto-type-mismatch]: type of ‘gs_urf_device’ does not match original declaration
# 443 | device2_(gs_urf_device)
# | ^
ghostscript-10.06.0/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.06.0/cups/gdevcups.c:488:17: note: ‘gs_urf_device’ was previously declared here
# 441| device2_(gs_cups_device)
# 442| device2_(gs_pwgraster_device)
# 443|-> device2_(gs_urf_device)
# 444| #endif
# 445| #ifdef device_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:446:1: warning[-Wlto-type-mismatch]: type of ‘gs_ijs_device’ does not match original declaration
# 446 | device_(gs_ijs_device)
# | ^
ghostscript-10.06.0/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.06.0/devices/gdevijs.c:144:15: note: ‘gs_ijs_device’ was previously declared here
# 444| #endif
# 445| #ifdef device_
# 446|-> device_(gs_ijs_device)
# 447| #endif
# 448| #ifdef device2_
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:449:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16_device’ does not match original declaration
# 449 | device2_(gs_png16_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:123:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 123 | const gx_device_png gs_png16_device = {
# | ^
ghostscript-10.06.0/devices/gdevpng.c:123:21: note: ‘gs_png16_device’ was previously declared here
# 447| #endif
# 448| #ifdef device2_
# 449|-> device2_(gs_png16_device)
# 450| device2_(gs_png16m_device)
# 451| device2_(gs_png16malpha_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:450:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16m_device’ does not match original declaration
# 450 | device2_(gs_png16m_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:224:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 224 | const gx_device_png gs_png16m_device =
# | ^
ghostscript-10.06.0/devices/gdevpng.c:224:21: note: ‘gs_png16m_device’ was previously declared here
# 448| #ifdef device2_
# 449| device2_(gs_png16_device)
# 450|-> device2_(gs_png16m_device)
# 451| device2_(gs_png16malpha_device)
# 452| device2_(gs_png256_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:451:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16malpha_device’ does not match original declaration
# 451 | device2_(gs_png16malpha_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:332:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
# 332 | const gx_device_pngalpha gs_png16malpha_device = {
# | ^
ghostscript-10.06.0/devices/gdevpng.c:332:26: note: ‘gs_png16malpha_device’ was previously declared here
# 449| device2_(gs_png16_device)
# 450| device2_(gs_png16m_device)
# 451|-> device2_(gs_png16malpha_device)
# 452| device2_(gs_png256_device)
# 453| device2_(gs_png48_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:452:1: warning[-Wlto-type-mismatch]: type of ‘gs_png256_device’ does not match original declaration
# 452 | device2_(gs_png256_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:148:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 148 | const gx_device_png gs_png256_device = {
# | ^
ghostscript-10.06.0/devices/gdevpng.c:148:21: note: ‘gs_png256_device’ was previously declared here
# 450| device2_(gs_png16m_device)
# 451| device2_(gs_png16malpha_device)
# 452|-> device2_(gs_png256_device)
# 453| device2_(gs_png48_device)
# 454| device2_(gs_pngalpha_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:453:1: warning[-Wlto-type-mismatch]: type of ‘gs_png48_device’ does not match original declaration
# 453 | device2_(gs_png48_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:249:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 249 | const gx_device_png gs_png48_device =
# | ^
ghostscript-10.06.0/devices/gdevpng.c:249:21: note: ‘gs_png48_device’ was previously declared here
# 451| device2_(gs_png16malpha_device)
# 452| device2_(gs_png256_device)
# 453|-> device2_(gs_png48_device)
# 454| device2_(gs_pngalpha_device)
# 455| device2_(gs_pnggray_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:454:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngalpha_device’ does not match original declaration
# 454 | device2_(gs_pngalpha_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:296:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
# 296 | const gx_device_pngalpha gs_pngalpha_device = {
# | ^
ghostscript-10.06.0/devices/gdevpng.c:296:26: note: ‘gs_pngalpha_device’ was previously declared here
# 452| device2_(gs_png256_device)
# 453| device2_(gs_png48_device)
# 454|-> device2_(gs_pngalpha_device)
# 455| device2_(gs_pnggray_device)
# 456| device2_(gs_pngmono_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:455:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnggray_device’ does not match original declaration
# 455 | device2_(gs_pnggray_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:172:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 172 | const gx_device_png gs_pnggray_device =
# | ^
ghostscript-10.06.0/devices/gdevpng.c:172:21: note: ‘gs_pnggray_device’ was previously declared here
# 453| device2_(gs_png48_device)
# 454| device2_(gs_pngalpha_device)
# 455|-> device2_(gs_pnggray_device)
# 456| device2_(gs_pngmono_device)
# 457| device2_(gs_pngmonod_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:456:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmono_device’ does not match original declaration
# 456 | device2_(gs_pngmono_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:97:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 97 | const gx_device_png gs_pngmono_device =
# | ^
ghostscript-10.06.0/devices/gdevpng.c:97:21: note: ‘gs_pngmono_device’ was previously declared here
# 454| device2_(gs_pngalpha_device)
# 455| device2_(gs_pnggray_device)
# 456|-> device2_(gs_pngmono_device)
# 457| device2_(gs_pngmonod_device)
# 458| device2_(gs_nullpage_device)
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:457:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmonod_device’ does not match original declaration
# 457 | device2_(gs_pngmonod_device)
# | ^
ghostscript-10.06.0/devices/gdevpng.c:196:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 196 | const gx_device_png gs_pngmonod_device =
# | ^
ghostscript-10.06.0/devices/gdevpng.c:196:21: note: ‘gs_pngmonod_device’ was previously declared here
# 455| device2_(gs_pnggray_device)
# 456| device2_(gs_pngmono_device)
# 457|-> device2_(gs_pngmonod_device)
# 458| device2_(gs_nullpage_device)
# 459| #endif
Error: COMPILER_WARNING (CWE-704):
ghostscript-10.06.0/soobj/gconfig.h:458:1: warning[-Wlto-type-mismatch]: type of ‘gs_nullpage_device’ does not match original declaration
# 458 | device2_(gs_nullpage_device)
# | ^
ghostscript-10.06.0/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.06.0/base/gdevnfwd.c:1007:22: note: ‘gs_nullpage_device’ was previously declared here
# 456| device2_(gs_pngmono_device)
# 457| device2_(gs_pngmonod_device)
# 458|-> device2_(gs_nullpage_device)
# 459| #endif
# 460| #ifdef io_device_