ghostscript-10.03.1-2.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/claptrap-planar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/claptrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/echogs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def5]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ets.c:880:36: warning[core.NullDereference]: Array access (via field 'plane_ctx') results in a null pointer dereference
# 878| n_planes = ctx->n_planes;
# 879| for (i = 0; i < n_planes; i++)
# 880|-> ets_plane_free(malloc_arg, ctx->plane_ctx[i]);
# 881| ets_free(malloc_arg,ctx->plane_ctx);
# 882| ets_free(malloc_arg, ctx->c_line);
Error: CPPCHECK_WARNING: [#def6]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/fapi_ft.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-681): [#def7]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/fapi_ft.c: scope_hint: In function ‘gs_fapi_ft_get_scaled_font’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/fapi_ft.c:1283:86: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘a_font->retrieve_tt_font’ differ in signedness
# 1283 | code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
# | ^~~
# | |
# | unsigned int *
ghostscript-10.03.1-build/ghostscript-10.03.1/base/fapi_ft.c:1283:86: note: expected ‘int *’ but argument is of type ‘unsigned int *’
# 1281| if (a_font->retrieve_tt_font != NULL) {
# 1282| unsigned int ms;
# 1283|-> code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
# 1284| if (code == 0) {
# 1285| data_owned = false;
Error: CPPCHECK_WARNING: [#def8]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevabuf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def10]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c:119: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 117| * Define the device as 8-bit gray scale to avoid computing halftones.
# 118| */
# 119|-> std_device_dci_body(gx_device_bbox, bbox_initialize_device_procs, "bbox",
# 120| MAX_COORD, MAX_COORD,
# 121| MAX_RESOLUTION, MAX_RESOLUTION,
Error: CPPCHECK_WARNING (CWE-758): [#def11]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c:140: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 138| gs_fixed_rect *const pr = &bdev->bbox;
# 139|
# 140|-> pr->p.x = pr->p.y = max_fixed;
# 141| pr->q.x = pr->q.y = min_fixed;
# 142| return bdev->white != bdev->transparent;
Error: CPPCHECK_WARNING (CWE-758): [#def12]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c:141: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 139|
# 140| pr->p.x = pr->p.y = max_fixed;
# 141|-> pr->q.x = pr->q.y = min_fixed;
# 142| return bdev->white != bdev->transparent;
# 143| }
Error: CPPCHECK_WARNING: [#def13]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdbit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def15]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:144: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 142| fixed h = tl->h;
# 143|
# 144|-> if ( df < YMULT_LIMIT ) {
# 145| if ( df == 0 ) /* vertical edge, worth checking for */
# 146| tl->ldi = int2fixed(di), tl->ldf = 0, tl->xf = -h;
Error: CPPCHECK_WARNING (CWE-758): [#def16]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:428: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 426| {
# 427| /* Some devices init max->width to be int_max, which overflows when converted to fixed. */
# 428|-> int dw = dev->width > max_int_in_fixed ? max_int_in_fixed : dev->width;
# 429| if (ytop < 0)
# 430| return 0;
Error: CPPCHECK_WARNING (CWE-758): [#def17]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:448: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 446| {
# 447| /* Some devices init max->height to be int_max, which overflows when converted to fixed. */
# 448|-> int dh = dev->height > max_int_in_fixed ? max_int_in_fixed : dev->height;
# 449| if (ytop < 0)
# 450| return 0;
Error: CLANG_WARNING: [#def18]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:819:21: warning[deadcode.DeadStores]: Although the value stored to 'h' is used in the enclosing expression, the value is never actually read from 'h'
# 817| if (h < 0)
# 818| SWAP(fx0, fx1, tf), SWAP(fy0, fy1, tf),
# 819|-> h = -h;
# 820| /* So we are plotting a trapezoid with horizontal thin edges.
# 821| * If we are drawing a non-axis aligned trap, then we check
Error: CLANG_WARNING: [#def19]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:906:21: warning[deadcode.DeadStores]: Although the value stored to 'w' is used in the enclosing expression, the value is never actually read from 'w'
# 904| if (w < 0)
# 905| SWAP(fx0, fx1, tf), SWAP(fy0, fy1, tf),
# 906|-> w = -w;
# 907| /* So we are plotting a trapezoid with vertical thin edges
# 908| * Check for whether a triangular extension area on the end
Error: CPPCHECK_WARNING: [#def20]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def21]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:892: error[uninitStructMember]: Uninitialized struct member: saved_equiv_colors.all_color_info_valid
# 890| *pdevn_params = saved_devn_params;
# 891| if (pequiv_colors != NULL)
# 892|-> *pequiv_colors = saved_equiv_colors;
# 893| return code;
# 894| }
Error: CLANG_WARNING: [#def22]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:1490:16: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
# 1488| for(i = 0; i < nspot; i++) {
# 1489| gs_snprintf(spotname, gp_file_name_sizeof, "%ss%d", pdevn->fname, i);
# 1490|-> code = devn_write_pcx_file(pdev, spotname, 1, bpc, linelength[i]);
# 1491| if (code < 0)
# 1492| goto prn_done;
Error: CPPCHECK_WARNING: [#def23]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def24]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:858: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 856| gx_get_largest_clipping_box(gx_device * dev, gs_fixed_rect * pbox)
# 857| {
# 858|-> pbox->p.x = min_fixed;
# 859| pbox->p.y = min_fixed;
# 860| pbox->q.x = max_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def25]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:859: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 857| {
# 858| pbox->p.x = min_fixed;
# 859|-> pbox->p.y = min_fixed;
# 860| pbox->q.x = max_fixed;
# 861| pbox->q.y = max_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def26]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:860: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 858| pbox->p.x = min_fixed;
# 859| pbox->p.y = min_fixed;
# 860|-> pbox->q.x = max_fixed;
# 861| pbox->q.y = max_fixed;
# 862| }
Error: CPPCHECK_WARNING (CWE-758): [#def27]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:861: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 859| pbox->p.y = min_fixed;
# 860| pbox->q.x = max_fixed;
# 861|-> pbox->q.y = max_fixed;
# 862| }
# 863|
Error: COMPILER_WARNING (CWE-457): [#def28]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c: scope_hint: In function ‘transform_pixel_region_render_portrait’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:1937:15: warning[-Wmaybe-uninitialized]: ‘run’ may be used uninitialized
# 1937 | buffer[0] = run;
# | ~~~~~~~~~~^~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:1760:17: note: ‘run’ was declared here
# 1760 | const byte *run;
# | ^~~
# 1935| /* Save position if error, in case we resume. */
# 1936| err:
# 1937|-> buffer[0] = run;
# 1938| return code;
# 1939| }
Error: CLANG_WARNING: [#def29]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdflt.c:1981:13: warning[deadcode.DeadStores]: Value stored to 'to_rects' is never read
# 1979| if (to_rects == 0) {
# 1980| if (dev_proc(dev, dev_spec_op)(dev, gxdso_copy_color_is_fast, NULL, 0) <= 0)
# 1981|-> to_rects = 1;
# 1982| }
# 1983|
Error: CPPCHECK_WARNING: [#def30]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdgbr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def31]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdgbr.c:404:18: warning[deadcode.DeadStores]: Although the value stored to 'std_raster' is used in the enclosing expression, the value is never actually read from 'std_raster'
# 402| uint end_byte = (x_offset + w) * dest_bytes;
# 403|
# 404|-> raster = std_raster =
# 405| (options & GB_ALIGN_STANDARD ?
# 406| bitmap_raster(end_byte << 3) : end_byte);
Error: CPPCHECK_WARNING: [#def32]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdrop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def33]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdrop.c:157: warning[uninitvar]: Uninitialized variables: planes.depth, planes.shift, planes.index
# 155| /* RJW: This code, like most of ghostscripts planar support,
# 156| * will only work if every plane has the same depth. */
# 157|-> draster = bitmap_raster(width * planes[0].depth);
# 158| code = gdev_mem_set_planar(pmdev, num_comp, planes);
# 159| if (code < 0)
Error: CPPCHECK_WARNING: [#def34]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdsha.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevepo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def36]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevepo.c:106: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 104| gx_device_epo gs_epo_device =
# 105| {
# 106|-> std_device_dci_type_body_sc(gx_device_epo, epo_initialize_device_procs,
# 107| EPO_DEVICENAME, &st_epo_device,
# 108| MAX_COORD, MAX_COORD,
Error: CPPCHECK_WARNING: [#def37]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevflp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def38]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevflp.c:130: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 128| gx_device_flp gs_flp_device =
# 129| {
# 130|-> std_device_dci_type_body_sc(gx_device_flp, flp_initialize_device_procs,
# 131| "first_lastpage", &st_flp_device,
# 132| MAX_COORD, MAX_COORD,
Error: CPPCHECK_WARNING: [#def39]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevkrnlsclass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def41]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm1.c:268:17: warning[deadcode.DeadStores]: Value stored to 'left' is never read
# 266| left -= 8;
# 267| }
# 268|-> left += 8; /* left = bits to go < 8 */
# 269| {
# 270| byte dbyte = *dptr;
Error: CPPCHECK_WARNING: [#def42]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm16.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm24.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm40.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm48.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm56.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevm8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def53]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c:448: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 446| * dev->color_info.depth + ESTIMATED_PDF14_ROW_SPACE(width, dev->color_info.num_components, deep ? 16 : 8),
# 447| dev->pad, dev->log2_align_mod) + sizeof(byte *) * (dev->num_planar_planes ? dev->num_planar_planes : 1));
# 448|-> height = (int)min(max_height, max_int);
# 449| } else {
# 450| /* For non PDF 1.4 transparency, we can do an exact calculation */
Error: CPPCHECK_WARNING (CWE-758): [#def54]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c:454: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 452| (bitmap_raster_pad_align(width * dev->color_info.depth, dev->pad, dev->log2_align_mod) +
# 453| sizeof(byte *) * (dev->num_planar_planes ? dev->num_planar_planes : 1));
# 454|-> height = (int)min(max_height, max_int);
# 455| /*
# 456| * Because of alignment rounding, the just-computed height might
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c: scope_hint: In function ‘mem_dev_initialize_device_procs’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c:959:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:835:55: note: in definition of macro ‘set_dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c: scope_hint: In function ‘mem_dev_initialize_device_procs’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:835:55: note: in definition of macro ‘set_dev_proc’
# 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): [#def56]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c: scope_hint: In function ‘mem_word_dev_initialize_device_procs’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c:976:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:835:55: note: in definition of macro ‘set_dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmem.c: scope_hint: In function ‘mem_word_dev_initialize_device_procs’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:835:55: note: in definition of macro ‘set_dev_proc’
# 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: [#def57]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmpla.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def58]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmplt.c:120: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 118| * Define the device as 8-bit gray scale to avoid computing halftones.
# 119| */
# 120|-> std_device_dci_type_body_sc(gx_device_mplt, pcl_mono_palette_initialize,
# 121| "PCL_Mono_Palette", &st_pcl_mono_palette_device,
# 122| MAX_COORD, MAX_COORD,
Error: CPPCHECK_WARNING: [#def59]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmr2n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmr8n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmrun.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def62]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmrun.c:252:11: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 250| }
# 251| for (x = 0, n = 0; x < rdev->md.width; x += w, ++n) {
# 252|-> w = length[n];
# 253| rdev->save_procs.fill_rectangle((gx_device *)&rdev->md,
# 254| x, y, w, 1, value[n]);
Error: CPPCHECK_WARNING: [#def63]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnfwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def64]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def65]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnup.c:108: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 106| * Define the device as 8-bit gray scale to avoid computing halftones.
# 107| */
# 108|-> std_device_dci_type_body_sc(gx_device_nup, nup_initialize_device_procs,
# 109| "N-up", &st_nup_device,
# 110| MAX_COORD, MAX_COORD,
Error: CPPCHECK_WARNING (CWE-758): [#def66]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnup.c:290: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 288| #define max_coord (max_fixed / fixed_1)
# 289| #if max_coord < max_int
# 290|-> else if (width_new > (long)max_coord || height_new > (long)max_coord)
# 291| ecode = gs_note_error(gs_error_limitcheck);
# 292| #endif
Error: CPPCHECK_WARNING: [#def67]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevoflt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def68]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevoflt.c:124: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 122| * Define the device as 8-bit gray scale to avoid computing halftones.
# 123| */
# 124|-> std_device_dci_type_body_sc(gx_device_obj_filter,
# 125| obj_filter_initialize_device_procs,
# 126| "object_filter", &st_obj_filter_device,
Error: CPPCHECK_WARNING: [#def69]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def70]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4254: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4252| if (gx_stroke_path_expansion(pgs, ppath, &expansion) < 0) {
# 4253| /* The expansion is so large it caused a limitcheck. */
# 4254|-> path_box.p.x = path_box.p.y = min_fixed;
# 4255| path_box.q.x = path_box.q.y = max_fixed;
# 4256| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def71]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4255: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4253| /* The expansion is so large it caused a limitcheck. */
# 4254| path_box.p.x = path_box.p.y = min_fixed;
# 4255|-> path_box.q.x = path_box.q.y = max_fixed;
# 4256| } else {
# 4257| expansion.x += pgs->fill_adjust.x;
Error: CPPCHECK_WARNING (CWE-758): [#def72]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4263: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4261| * overflow, so we need to check for this.
# 4262| */
# 4263|-> path_box.p.x = (path_box.p.x < min_fixed + expansion.x ? min_fixed :
# 4264| path_box.p.x - expansion.x);
# 4265| path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def73]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4265: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4263| path_box.p.x = (path_box.p.x < min_fixed + expansion.x ? min_fixed :
# 4264| path_box.p.x - expansion.x);
# 4265|-> path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
# 4266| path_box.p.y - expansion.y);
# 4267| path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def74]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4267: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4265| path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
# 4266| path_box.p.y - expansion.y);
# 4267|-> path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
# 4268| path_box.q.x + expansion.x);
# 4269| path_box.q.y = (path_box.q.y > max_fixed - expansion.y ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def75]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:4269: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4267| path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
# 4268| path_box.q.x + expansion.x);
# 4269|-> path_box.q.y = (path_box.q.y > max_fixed - expansion.y ? max_fixed :
# 4270| path_box.q.y + expansion.y);
# 4271| }
Error: CPPCHECK_WARNING (CWE-457): [#def76]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:8660: warning[uninitvar]: Uninitialized variable: comp_value
# 8658| for (i = pgs->color_component_map.num_components - 1; i >= 0; i--)
# 8659| comp_value[i] = all;
# 8660|-> map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps);
# 8661| }
# 8662| /* apply the transfer function(s); convert to color values */
Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c: scope_hint: In function ‘c_pdf14trans_write’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:9550:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&buf’
# 9548|
# 9549| /* Copy our serialized data into the output buffer */
# 9550|-> memcpy(data, buf, need - mask_size);
# 9551| if (mask_size) /* Include the transfer mask data if present */
# 9552| memcpy(data + need - mask_size, pparams->transfer_fn, mask_size);
Error: CPPCHECK_WARNING (CWE-758): [#def78]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11504: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11502| if (gx_stroke_path_expansion(pgs, ppath, &expansion) < 0) {
#11503| /* The expansion is so large it caused a limitcheck. */
#11504|-> path_box.p.x = path_box.p.y = min_fixed;
#11505| path_box.q.x = path_box.q.y = max_fixed;
#11506| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def79]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11505: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11503| /* The expansion is so large it caused a limitcheck. */
#11504| path_box.p.x = path_box.p.y = min_fixed;
#11505|-> path_box.q.x = path_box.q.y = max_fixed;
#11506| } else {
#11507| expansion.x += pgs->fill_adjust.x;
Error: CPPCHECK_WARNING (CWE-758): [#def80]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11513: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11511| * overflow, so we need to check for this.
#11512| */
#11513|-> path_box.p.x = (path_box.p.x < min_fixed + expansion.x ? min_fixed :
#11514| path_box.p.x - expansion.x);
#11515| path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def81]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11515: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11513| path_box.p.x = (path_box.p.x < min_fixed + expansion.x ? min_fixed :
#11514| path_box.p.x - expansion.x);
#11515|-> path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
#11516| path_box.p.y - expansion.y);
#11517| path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def82]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11517: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11515| path_box.p.y = (path_box.p.y < min_fixed + expansion.y ? min_fixed :
#11516| path_box.p.y - expansion.y);
#11517|-> path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
#11518| path_box.q.x + expansion.x);
#11519| path_box.q.y = (path_box.q.y > max_fixed - expansion.y ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def83]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevp14.c:11519: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#11517| path_box.q.x = (path_box.q.x > max_fixed - expansion.x ? max_fixed :
#11518| path_box.q.x + expansion.x);
#11519|-> path_box.q.y = (path_box.q.y > max_fixed - expansion.y ? max_fixed :
#11520| path_box.q.y + expansion.y);
#11521| }
Error: CPPCHECK_WARNING: [#def84]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevpipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def85]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevpipe.c:74:19: warning[deadcode.DeadStores]: Value stored to 'fs' during its initialization is never read
# 72| #else
# 73| gs_lib_ctx_t *ctx = mem->gs_lib_ctx;
# 74|-> gs_fs_list_t *fs = ctx->core->fs;
# 75| /* The pipe device can be reached in two ways, explicltly with %pipe%
# 76| or implicitly with "|", so we have to check for both
Error: CPPCHECK_WARNING: [#def86]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevplnx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def87]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevplnx.c:329: error[integerOverflow]: Signed integer overflow for expression '-(1<<3)'.
# 327| pts->size.y = buffer_size / width_raster;
# 328| } else {
# 329|-> pts->buffer.raster = buffer_size & -align_bitmap_mod;
# 330| pts->size.x =
# 331| pts->buffer.raster * (8 / edev->plane_dev->color_info.depth);
Error: CPPCHECK_WARNING: [#def88]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def89]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.c:753:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 751|
# 752| if (ppdev->Duplex_set >= 0) /* i.e., Duplex is supported */
# 753|-> switch (code = param_read_bool(plist, (param_name = "Duplex"),
# 754| &duplex)) {
# 755| case 0:
Error: CLANG_WARNING: [#def90]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.c:987:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 985| gx_device_clist_reader *crdev = (gx_device_clist_reader *)ppdev;
# 986|
# 987|-> if ((code = clist_close_writer_and_init_reader((gx_device_clist *)ppdev)) < 0)
# 988| /* should not happen -- do foreground print */
# 989| break;
Error: CLANG_WARNING: [#def91]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.c:1035:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1033|
# 1034| /* Now start the thread to print the page */
# 1035|-> if ((code = gp_thread_start(prn_print_page_in_background,
# 1036| (void *)(ppdev->bg_print),
# 1037| &(ppdev->bg_print->thread_id))) < 0) {
Error: CPPCHECK_WARNING: [#def92]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-465): [#def93]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c: scope_hint: In function ‘default_subclass_composite_front’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c:397:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c:379:16: note: in expansion of macro ‘dev_proc’
# 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): [#def94]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c:438:32: warning[-Wanalyzer-deref-before-check]: check of ‘dev’ for NULL after already dereferencing it
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevsclass.c:379:16: note: in expansion of macro ‘dev_proc’
# 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: CPPCHECK_WARNING: [#def95]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def96]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:121:33: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
# 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): [#def97]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c: scope_hint: In function ‘gdev_vector_dopath’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:121:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘line_start.x’
# 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: CLANG_WARNING: [#def98]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:128:33: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
# 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: CLANG_WARNING: [#def99]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1025:36: warning[deadcode.DeadStores]: Although the value stored to 'param_name' is used in the enclosing expression, the value is never actually read from 'param_name'
# 1023| bool open = dev->is_open, HighLevelDevice, NoInterpolateImagemasks;
# 1024|
# 1025|-> code = param_read_bool(plist, (param_name = "HighLevelDevice"), &HighLevelDevice);
# 1026| if (code < 0)
# 1027| return code;
Error: CLANG_WARNING: [#def100]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1029:36: warning[deadcode.DeadStores]: Although the value stored to 'param_name' is used in the enclosing expression, the value is never actually read from 'param_name'
# 1027| return code;
# 1028|
# 1029|-> code = param_read_bool(plist, (param_name = "NoInterpolateImagemasks"), &NoInterpolateImagemasks);
# 1030| if (code < 0)
# 1031| return code;
Error: CLANG_WARNING: [#def101]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1179:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1177| int code;
# 1178|
# 1179|-> if ((code = gdev_vector_update_clip_path(vdev, pcpath)) < 0 ||
# 1180| (code = gdev_vector_prepare_fill(vdev, pgs, params, pdevc)) < 0 ||
# 1181| (vdev->bbox_device &&
Error: CLANG_WARNING: [#def102]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1180:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1178|
# 1179| if ((code = gdev_vector_update_clip_path(vdev, pcpath)) < 0 ||
# 1180|-> (code = gdev_vector_prepare_fill(vdev, pgs, params, pdevc)) < 0 ||
# 1181| (vdev->bbox_device &&
# 1182| (code = (*dev_proc(vdev->bbox_device, fill_path))
Error: CLANG_WARNING: [#def103]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1182:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1180| (code = gdev_vector_prepare_fill(vdev, pgs, params, pdevc)) < 0 ||
# 1181| (vdev->bbox_device &&
# 1182|-> (code = (*dev_proc(vdev->bbox_device, fill_path))
# 1183| ((gx_device *) vdev->bbox_device, pgs, ppath, params,
# 1184| pdevc, pcpath)) < 0) ||
Error: CLANG_WARNING: [#def104]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1206:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1204| gs_matrix mat;
# 1205|
# 1206|-> if ((code = gdev_vector_update_clip_path(vdev, pcpath)) < 0 ||
# 1207| (set_ctm = gdev_vector_stroke_scaling(vdev, pgs, &scale, &mat)) != 0 ||
# 1208| (code = gdev_vector_prepare_stroke(vdev, pgs, params, pdcolor, scale)) < 0 ||
Error: CLANG_WARNING: [#def105]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1207:10: warning[deadcode.DeadStores]: Although the value stored to 'set_ctm' is used in the enclosing expression, the value is never actually read from 'set_ctm'
# 1205|
# 1206| if ((code = gdev_vector_update_clip_path(vdev, pcpath)) < 0 ||
# 1207|-> (set_ctm = gdev_vector_stroke_scaling(vdev, pgs, &scale, &mat)) != 0 ||
# 1208| (code = gdev_vector_prepare_stroke(vdev, pgs, params, pdcolor, scale)) < 0 ||
# 1209| (vdev->bbox_device &&
Error: CLANG_WARNING: [#def106]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1208:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1206| if ((code = gdev_vector_update_clip_path(vdev, pcpath)) < 0 ||
# 1207| (set_ctm = gdev_vector_stroke_scaling(vdev, pgs, &scale, &mat)) != 0 ||
# 1208|-> (code = gdev_vector_prepare_stroke(vdev, pgs, params, pdcolor, scale)) < 0 ||
# 1209| (vdev->bbox_device &&
# 1210| (code = (*dev_proc(vdev->bbox_device, stroke_path))
Error: CLANG_WARNING: [#def107]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevvec.c:1210:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1208| (code = gdev_vector_prepare_stroke(vdev, pgs, params, pdcolor, scale)) < 0 ||
# 1209| (vdev->bbox_device &&
# 1210|-> (code = (*dev_proc(vdev->bbox_device, stroke_path))
# 1211| ((gx_device *) vdev->bbox_device, pgs, ppath, params,
# 1212| pdcolor, pcpath)) < 0) ||
Error: CPPCHECK_WARNING: [#def108]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gen_ordered.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def109]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gen_ordered.c:760:13: warning[deadcode.DeadStores]: Value stored to 'done' is never read
# 758| count++;
# 759| if (count == N) {
# 760|-> done = 1;
# 761| break;
# 762| }
Error: CLANG_WARNING: [#def110]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gen_ordered.c:812:13: warning[deadcode.DeadStores]: Value stored to 'done' is never read
# 810| count++;
# 811| if (count == N) {
# 812|-> done = 1;
# 813| break;
# 814| }
Error: CLANG_WARNING: [#def111]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gen_ordered.c:871:9: warning[deadcode.DeadStores]: Value stored to 'val_min' is never read
# 869| return -1;
# 870| memset(dot_grid->data, -1, (size_t)y * u * sizeof(int));
# 871|-> val_min = 0;
# 872| }
# 873| return 0;
Error: CLANG_WARNING: [#def112]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gen_ordered.c:1429:13: warning[deadcode.DeadStores]: Value stored to 'done' is never read
# 1427| /* There could be a danger here of cycles longer than 2 */
# 1428| if (white_pos == black_pos) {
# 1429|-> done = true;
# 1430| FREE(mem, screen_blur);
# 1431| FREE(mem, filter);
Error: CPPCHECK_WARNING: [#def113]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def114]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_dev’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:856:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(4097)’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_dev’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 854| category = mmalloc(MAX_TOKEN + 1, "read_dev(category)");
# 855| file_index = item - pconf->file_contents.items;
# 856|-> strcpy(category, "obj");
# 857| while ((len = read_token(token, MAX_TOKEN, &in)) > 0) {
# 858| int ind = add_entry(pconf, category, token, file_index);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_token’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:897:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘token’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_token’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_token’
# 895| continue;
# 896| }
# 897|-> token[len++] = ch;
# 898| }
# 899| token[len] = 0;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:899:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘token’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_token’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘read_token’
# 897| token[len++] = ch;
# 898| }
# 899|-> token[len] = 0;
# 900| *pin = in;
# 901| return (len >= max_len ? -1 /* token too long */ : len);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘write_list_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:1159:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(len + 1))’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘write_list_pattern’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 1157| char *alist;
# 1158|
# 1159|-> strcpy(str, lstr);
# 1160| if (pat->drop_extn) {
# 1161| char *dot = str + len;
Error: CLANG_WARNING: [#def118]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:1166:27: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 1164| dot--;
# 1165| if (dot > str)
# 1166|-> *dot = 0, len = dot - str;
# 1167| }
# 1168| if (pat->upper_case) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def119]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c:1177:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(xlen + 1))’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/genconf.c: scope_hint: In function ‘write_list_pattern’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
# 1175| /* We repeat str for the benefit of patterns that */
# 1176| /* need the argument substituted in more than one place. */
# 1177|-> sprintf(xstr, pat->pattern, str, str, str);
# 1178| /* Check to make sure the item is within the scope of */
# 1179| /* an appropriate #ifdef, if necessary. */
Error: CPPCHECK_WARNING: [#def120]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gp_psync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def121]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gp_unifs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gp_unix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gp_utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def125]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c:722:19: warning[deadcode.DeadStores]: Value stored to 'fs' during its initialization is never read
# 720| gp_file *file = NULL;
# 721| gs_lib_ctx_t *ctx = mem->gs_lib_ctx;
# 722|-> gs_fs_list_t *fs = ctx->core->fs;
# 723|
# 724| if (gp_validate_path(mem, fname, mode) != 0)
Error: CLANG_WARNING: [#def126]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c:748:19: warning[deadcode.DeadStores]: Value stored to 'fs' during its initialization is never read
# 746| gp_file *file = NULL;
# 747| gs_lib_ctx_t *ctx = mem->gs_lib_ctx;
# 748|-> gs_fs_list_t *fs = ctx->core->fs;
# 749|
# 750| if (gp_validate_path(mem, fname, binary_mode ? "wb" : "w") != 0)
Error: CLANG_WARNING: [#def127]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c:776:19: warning[deadcode.DeadStores]: Value stored to 'fs' during its initialization is never read
# 774| gp_file *file = NULL;
# 775| gs_lib_ctx_t *ctx = mem->gs_lib_ctx;
# 776|-> gs_fs_list_t *fs = ctx->core->fs;
# 777| int code = 0;
# 778|
Error: CLANG_WARNING: [#def128]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c:1172:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1170| newbuffer = (char *)gs_alloc_bytes(mem->thread_safe_memory, newlen + 1, "gp_validate_path");
# 1171| if (newbuffer == NULL) {
# 1172|-> code = gs_note_error(gs_error_VMerror);
# 1173| goto exit;
# 1174| }
Error: CLANG_WARNING: [#def129]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gpmisc.c:1182:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1180| gs_free_object(mem->thread_safe_memory, newbuffer, "gp_validate_path");
# 1181| if (code != gp_combine_success) {
# 1182|-> code = gs_note_error(gs_error_invalidfileaccess);
# 1183| goto exit;
# 1184| }
Error: CPPCHECK_WARNING: [#def130]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def131]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:763: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 761| iimem->large_size = 1;
# 762| #else
# 763|-> iimem->large_size = ((clump_size / 4) & -obj_align_mod) + 1;
# 764| #endif
# 765| iimem->is_controlled = false;
Error: CPPCHECK_WARNING (CWE-758): [#def132]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1068: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1066| if (val < MIN_VM_THRESHOLD)
# 1067| val = MIN_VM_THRESHOLD;
# 1068|-> else if (val > MAX_VM_THRESHOLD)
# 1069| val = MAX_VM_THRESHOLD;
# 1070| gs_memory_gc_status(mem, &stat);
Error: CPPCHECK_WARNING (CWE-758): [#def133]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1069: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1067| val = MIN_VM_THRESHOLD;
# 1068| else if (val > MAX_VM_THRESHOLD)
# 1069|-> val = MAX_VM_THRESHOLD;
# 1070| gs_memory_gc_status(mem, &stat);
# 1071| stat.vm_threshold = val;
Error: CLANG_WARNING: [#def134]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1505:13: warning[deadcode.DeadStores]: Value stored to 'pstype' is never read
# 1503|
# 1504| if (gs_debug['a'] || gs_debug['A'])
# 1505|-> pstype = &saved_stype;
# 1506| }
# 1507| if (imem->cc && (byte *) ptr + rounded_size == imem->cc->cbot) {
Error: CPPCHECK_WARNING (CWE-190): [#def135]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1834: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1832| pfree = *(const obj_header_t * const *)pfree
# 1833| )
# 1834|-> unused += obj_align_round(pfree[-1].o_size);
# 1835| }
# 1836| return unused;
Error: CPPCHECK_WARNING (CWE-190): [#def136]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1845: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1843| /* Scan large object freelist. We'll grab an object up to 1/8 bigger */
# 1844| /* right away, else use best fit of entire scan. */
# 1845|-> obj_size_t aligned_size = obj_align_round(size);
# 1846| size_t aligned_min_size = aligned_size + sizeof(obj_header_t);
# 1847| size_t aligned_max_size =
Error: CPPCHECK_WARNING (CWE-190): [#def137]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1860: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1858|
# 1859| while ((pfree = *ppfprev) != 0) {
# 1860|-> obj_size_t free_size = obj_align_round(pfree[-1].o_size);
# 1861|
# 1862| if (free_size == aligned_size ||
Error: CPPCHECK_WARNING (CWE-190): [#def138]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:1908: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1906| */
# 1907| obj_size_t asize =
# 1908|-> ((lsize + obj_align_mask) & -obj_align_mod) +
# 1909| sizeof(obj_header_t);
# 1910| clump_t *cp =
Error: CPPCHECK_WARNING (CWE-190): [#def139]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:2245: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2243| /* We're removing an object. */
# 2244| *ppfprev = *(obj_header_t **) pfree;
# 2245|-> removed += obj_align_round(pfree[-1].o_size);
# 2246| if (!--count)
# 2247| break;
Error: CPPCHECK_WARNING (CWE-190): [#def140]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:2261: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2259| /* trailing dummy obj_header */
# 2260| {
# 2261|-> obj_size_t rounded_size = obj_align_round(size);
# 2262| obj_header_t *pre_obj = obj - 1;
# 2263| obj_header_t *excess_pre = (obj_header_t*)((char*)obj + rounded_size);
Error: CPPCHECK_WARNING (CWE-190): [#def141]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:2264: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2262| obj_header_t *pre_obj = obj - 1;
# 2263| obj_header_t *excess_pre = (obj_header_t*)((char*)obj + rounded_size);
# 2264|-> obj_size_t old_rounded_size = obj_align_round(pre_obj->o_size);
# 2265| obj_size_t excess_size = old_rounded_size - rounded_size - sizeof(obj_header_t);
# 2266|
Error: CPPCHECK_WARNING (CWE-190): [#def142]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsalloc.c:2317: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 2315| log2_obj_align_mod];
# 2316| else {
# 2317|-> uint rounded_size = obj_align_round(excess_size);
# 2318|
# 2319| pfl = &mem->freelists[LARGE_FREELIST_INDEX];
Error: CPPCHECK_WARNING: [#def143]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsargs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def144]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsbitcom.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def145]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsbitcom.c:231:53: warning[core.BitwiseShift]: Right operand is negative in right shift
# 229| /* Coverity 94484 incorrectly thinks in_shift can be negative. */
# 230| /* coverity[negative_shift] */
# 231|-> count += half_byte_1s[(s[index] >> in_shift) & mask];
# 232| }
# 233| if (count != 0 && table[count] == 0) { /* Look at adjacent cells to help prevent */
Error: CPPCHECK_WARNING: [#def146]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsbitops.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def147]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevmpla.c:20: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsbitops.h:411:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 409| {
# 410| if (dbit != 0 )\
# 411|-> *dptr = dbbyte | (*dptr & (0xff >> dbit));
# 412| }
# 413|
Error: CPPCHECK_WARNING: [#def148]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscdevn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def149]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gschar0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def150]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscicach.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def151]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsciemap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def153]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsciemap.c:260:54: warning[core.NullDereference]: Access to field 'default_match' results in a dereference of a null pointer (loaded from field 'cmm_icc_profile_data')
# 258| if (code < 0)
# 259| return gs_rethrow(code, "Failed to create ICC profile from CIEDEFG");
# 260|-> (*ppcs_icc)->cmm_icc_profile_data->default_match = CIE_DEFG;
# 261| pcs->icc_equivalent = *ppcs_icc;
# 262| pcs->icc_equivalent->cmm_icc_profile_data->data_cs = gsCMYK;
Error: CLANG_WARNING: [#def154]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsciemap.c:543:54: warning[core.NullDereference]: Access to field 'default_match' results in a dereference of a null pointer (loaded from field 'cmm_icc_profile_data')
# 541| if (code < 0)
# 542| return gs_rethrow(code, "Failed to build ICC profile from CIEDEF");
# 543|-> (*ppcs_icc)->cmm_icc_profile_data->default_match = CIE_DEF;
# 544| /* Assign to the icc_equivalent member variable */
# 545| pcs->icc_equivalent = *ppcs_icc;
Error: CLANG_WARNING: [#def155]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsciemap.c:655:54: warning[core.NullDereference]: Access to field 'default_match' results in a dereference of a null pointer (loaded from field 'cmm_icc_profile_data')
# 653| if (code < 0)
# 654| return gs_rethrow(code, "Failed to build ICC profile from CIEDEF");
# 655|-> (*ppcs_icc)->cmm_icc_profile_data->default_match = CIE_ABC;
# 656| /* Assign to the icc_equivalent member variable */
# 657| pcs->icc_equivalent = *ppcs_icc;
Error: CLANG_WARNING: [#def156]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsciemap.c:769:54: warning[core.NullDereference]: Access to field 'default_match' results in a dereference of a null pointer (loaded from field 'cmm_icc_profile_data')
# 767| if (code < 0)
# 768| return gs_rethrow(code, "Failed to build ICC profile from CIEDEF");
# 769|-> (*ppcs_icc)->cmm_icc_profile_data->default_match = CIE_A;
# 770| /* Assign to the icc_equivalent member variable */
# 771| pcs->icc_equivalent = *ppcs_icc;
Error: CPPCHECK_WARNING: [#def157]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscolor2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscoord.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def160]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscoord.c:607:32: warning[core.BitwiseShift]: Left shift by '10046' overflows the capacity of 'fixed'
# 605| if (shift > 0) {
# 606| pfc->shift = shift;
# 607|-> pfc->round = (fixed) 1 << (shift - 1);
# 608| } else {
# 609| pfc->shift = 0;
Error: CLANG_WARNING: [#def161]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscparam.c:342:29: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 340| for (; curr_string < end_string; ++curr_string)
# 341| if (!curr_string->persistent) {
# 342|-> memcpy(second_level_memory,
# 343| curr_string->data, curr_string->size);
# 344| ((gs_param_string *) curr_string)->data
Error: CPPCHECK_WARNING: [#def162]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscrdp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def163]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscrdp.c:567: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 565| break;
# 566| }
# 567|-> pcrd->client_data = &data;
# 568| if (code_lmn > 0)
# 569| pcrd->EncodeLMN = Encode_default;
Error: CPPCHECK_WARNING: [#def164]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscscie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def165]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscspace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def166]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscspace.c:203:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 201|
# 202| pcspace->cmm_icc_profile_data = gsicc_profile_new(str, pmem, SCRGB, strlen(SCRGB));
# 203|-> code = sfclose(str);
# 204| if (pcspace->cmm_icc_profile_data == NULL) {
# 205| rc_decrement(pcspace, "gs_cspace_new_scrgb");
Error: CPPCHECK_WARNING: [#def167]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c: scope_hint: In function ‘gx_device_delete_output_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c:1236:30: warning[-Wanalyzer-null-argument]: use of NULL ‘fmt’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 1234| else
# 1235| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, (int)count1);
# 1236|-> } else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
# 1237| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname);
# 1238| else
Error: CLANG_WARNING: [#def169]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c:1236:30: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1234| else
# 1235| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, (int)count1);
# 1236|-> } else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
# 1237| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname);
# 1238| else
Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c: scope_hint: In function ‘gx_device_open_output_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c:1313:30: warning[-Wanalyzer-null-argument]: use of NULL ‘fmt’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 1311| else
# 1312| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, (int)count1);
# 1313|-> } else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
# 1314| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname);
# 1315| else
Error: CLANG_WARNING: [#def171]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevice.c:1313:30: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1311| else
# 1312| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, (int)count1);
# 1313|-> } else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
# 1314| gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname);
# 1315| else
Error: CPPCHECK_WARNING: [#def172]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def173]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdevmem.c:188: error[uninitvar]: Uninitialized variable: palette
# 186| new_dev->palette.size = pcount;
# 187| new_dev->palette.data = dev_palette;
# 188|-> memcpy(dev_palette, palette, pcount);
# 189| if (!has_color) {
# 190| new_dev->color_info.num_components = 1;
Error: CPPCHECK_WARNING: [#def174]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def175]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdparam.c:337:55: warning[core.BitwiseShift]: Left shift overflows the capacity of 'int'
# 335| gs_param_string hwcms;
# 336|
# 337|-> hwcms.data = palette, hwcms.size = colors << depth,
# 338| hwcms.persistent = false;
# 339| return param_write_string(plist, "HWColorMap", &hwcms);
Error: CLANG_WARNING: [#def176]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdparam.c:1562:5: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 1560| return_error(gs_error_VMerror);
# 1561| }
# 1562|-> len = gp_utf8_to_uint16(tempstr2, tempstr);
# 1563|
# 1564| /* Now convert down to 8 bits. Reuse tempstr here, because we know it will
Error: CLANG_WARNING: [#def177]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdparam.c:1864:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1862| (*dev_proc(dev, get_page_device))(dev) != 0
# 1863| ) {
# 1864|-> switch (code = param_read_int(plist, (param_name = "NumCopies"), &nci)) {
# 1865| case 0:
# 1866| if (nci < 0)
Error: CLANG_WARNING: [#def178]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdparam.c:2183:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 2181| IGNORE_INT_PARAM("%MediaSource")
# 2182| IGNORE_INT_PARAM("%MediaDestination")
# 2183|-> switch (code = param_read_float_array(plist, (param_name = "ImagingBBox"), &ibba)) {
# 2184| case 0:
# 2185| if (ibba.size != 4 ||
Error: CPPCHECK_WARNING: [#def179]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdps1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def180]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdps1.c:71: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 69| /* Because we can't predict the magnitude of the dbox values, */
# 70| /* we add/subtract the slop after fixing. */
# 71|-> if (dbox.p.x < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 72| dbox.p.y < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 73| dbox.q.x >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) ||
Error: CPPCHECK_WARNING (CWE-758): [#def181]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdps1.c:72: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 70| /* we add/subtract the slop after fixing. */
# 71| if (dbox.p.x < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 72|-> dbox.p.y < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 73| dbox.q.x >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) ||
# 74| dbox.q.y >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon)
Error: CPPCHECK_WARNING (CWE-758): [#def182]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdps1.c:73: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 71| if (dbox.p.x < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 72| dbox.p.y < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 73|-> dbox.q.x >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) ||
# 74| dbox.q.y >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon)
# 75| )
Error: CPPCHECK_WARNING (CWE-758): [#def183]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdps1.c:74: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 72| dbox.p.y < fixed2float(min_fixed + box_rounding_slop_fixed) ||
# 73| dbox.q.x >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon) ||
# 74|-> dbox.q.y >= fixed2float(max_fixed - box_rounding_slop_fixed + fixed_epsilon)
# 75| )
# 76| return_error(gs_error_limitcheck);
Error: CPPCHECK_WARNING: [#def184]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdsrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsequivc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:46: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘_put_params’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:140:41: warning[-Wanalyzer-malloc-leak]: leak of ‘buff’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:142:28: note: in expansion of macro ‘gs_log_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:143:34: note: in expansion of macro ‘gs_note_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3463:13: note: in expansion of macro ‘return_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:142:28: note: in expansion of macro ‘gs_log_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:143:34: note: in expansion of macro ‘gs_note_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3463:13: note: in expansion of macro ‘return_error’
# 138| int gs_log_error(int, const char *, int);
# 139| #if !defined(DEBUG)
# 140|-> # define gs_log_error(err, file, line) (err)
# 141| #endif
# 142| #define gs_note_error(err) gs_log_error(err, __FILE__, __LINE__)
Error: CPPCHECK_WARNING: [#def187]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfcid2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfcmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def189]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfcmap.c:299: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 297| pcmap->id = gs_next_ids(mem, num_fonts);
# 298| pcmap->num_fonts = num_fonts;
# 299|-> uid_set_invalid(&pcmap->uid);
# 300| }
# 301|
Error: CLANG_WARNING: [#def190]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfcmap.c:390:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 388| return false;
# 389| for (gs_cmap_lookups_enum_init(pcmap, which, &lenum);
# 390|-> (code = gs_cmap_enum_next_lookup(NULL, &lenum)) == 0; ) {
# 391| if (font_index_only >= 0 && lenum.entry.font_index != font_index_only)
# 392| continue;
Error: CPPCHECK_WARNING: [#def191]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfcmap1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def192]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def193]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont.c:390: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 388| pfont->FontBBox.p.x = pfont->FontBBox.p.y =
# 389| pfont->FontBBox.q.x = pfont->FontBBox.q.y = 0;
# 390|-> uid_set_invalid(&pfont->UID);
# 391| pfont->encoding_index = pfont->nearest_encoding_index = -1;
# 392| return pfont;
Error: CLANG_WARNING: [#def194]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont.c:901:15: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 899| for (index = 0;
# 900| fixed_width >= 0 &&
# 901|-> (code = font->procs.enumerate_glyph(font, &index, GLYPH_SPACE_NAME, &glyph)) >= 0 &&
# 902| index != 0;
# 903| ) {
Error: CPPCHECK_WARNING (CWE-758): [#def195]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont.c:920: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 918| }
# 919| if (glyph_info.width[wmode].y != 0)
# 920|-> fixed_width = min_int;
# 921| else if (fixed_width == 0)
# 922| fixed_width = (int)glyph_info.width[wmode].x;
Error: CPPCHECK_WARNING (CWE-758): [#def196]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont.c:924: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 922| fixed_width = (int)glyph_info.width[wmode].x;
# 923| else if (glyph_info.width[wmode].x != fixed_width)
# 924|-> fixed_width = min_int;
# 925| has_glyphs = true;
# 926| }
Error: CPPCHECK_WARNING: [#def197]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfont0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def200]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:313:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 311| samples[j] = (float)sdata[j];
# 312| } else {
# 313|-> float fpart = *fparts++;
# 314| float samples1[max_Sd_n];
# 315|
Error: CLANG_WARNING: [#def201]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:326:40: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
# 324| offset + *factors, m - 1);
# 325| for (j = pfn->params.n - 1; j >= 0; --j)
# 326|-> samples[j] += (samples1[j] - samples[j]) * fpart;
# 327| }
# 328| }
Error: CLANG_WARNING: [#def202]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:807:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 805| evaluate_from_tenzor(pfn, I, T, 0, pfn->params.m - 1, y);
# 806| for (k = 0; k < pfn->params.n; k++) {
# 807|-> double yk = y[k];
# 808|
# 809| if (yk < pfn->params.Range[k * 2 + 0])
Error: CPPCHECK_WARNING (CWE-457): [#def203]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:1069: warning[uninitvar]: Uninitialized variable: TT0
# 1067| TT1[i] = 0;
# 1068| }
# 1069|-> *mask = tensor_dimension_monotonity(TT0, TT1, ii, i0, pole, 0,
# 1070| count_of(pole) / 4, 1, pfn->params.Order);
# 1071| return 0;
Error: CPPCHECK_WARNING (CWE-457): [#def204]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:1069: warning[uninitvar]: Uninitialized variable: TT1
# 1067| TT1[i] = 0;
# 1068| }
# 1069|-> *mask = tensor_dimension_monotonity(TT0, TT1, ii, i0, pole, 0,
# 1070| count_of(pole) / 4, 1, pfn->params.Order);
# 1071| return 0;
Error: CLANG_WARNING: [#def205]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:1124:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1122|
# 1123| for (i = 0; i < pfn->params.m; i++) {
# 1124|-> if (T0[i] != T1[i]) {
# 1125| code = is_lattice_monotonic_by_dimension(pfn, T0, T1, I, S0, S1, pfn->params.m - 1, i, k, &m);
# 1126| if (code < 0)
Error: CLANG_WARNING: [#def206]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:1146:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 1144|
# 1145| for (i = 0; i < pfn->params.n; i++) {
# 1146|-> if (V0[i] < V1[i])
# 1147| code |= 1 << (i * 3);
# 1148| else if (V0[i] > V1[i])
Error: CLANG_WARNING: [#def207]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc0.c:1146:23: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<' is a garbage value
# 1144|
# 1145| for (i = 0; i < pfn->params.n; i++) {
# 1146|-> if (V0[i] < V1[i])
# 1147| code |= 1 << (i * 3);
# 1148| else if (V0[i] > V1[i])
Error: CPPCHECK_WARNING: [#def208]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def209]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc3.c:199:17: warning[core.NullDereference]: Array access (from variable 'c1') results in a null pointer dereference
# 197| double base = pranges[i].rmin, factor = pranges[i].rmax - base;
# 198|
# 199|-> c1[i] = c1[i] * factor + base;
# 200| c0[i] = c0[i] * factor + base;
# 201| }
Error: CLANG_WARNING: [#def210]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc3.c:200:17: warning[core.NullDereference]: Array access (from variable 'c0') results in a null pointer dereference
# 198|
# 199| c1[i] = c1[i] * factor + base;
# 200|-> c0[i] = c0[i] * factor + base;
# 201| }
# 202| *ppsfn = psfn;
Error: CPPCHECK_WARNING: [#def211]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def212]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:247:13: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 245|
# 246| case PtCr_int_to_float:
# 247|-> store_float(vsp, (double)vsp->value.i);
# 248| --p; continue;
# 249| case PtCr_int2_to_float:
Error: CLANG_WARNING: [#def213]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:250:13: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 248| --p; continue;
# 249| case PtCr_int2_to_float:
# 250|-> store_float(vsp, (double)vsp->value.i);
# 251| /* fall through */
# 252| case PtCr_2nd_int_to_float:
Error: CLANG_WARNING: [#def214]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:253:13: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 251| /* fall through */
# 252| case PtCr_2nd_int_to_float:
# 253|-> store_float(vsp - 1, (double)vsp[-1].value.i);
# 254| --p; continue;
# 255|
Error: CLANG_WARNING: [#def215]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:259:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 257|
# 258| case PtCr_abs:
# 259|-> vsp->value.f = fabs(vsp->value.f);
# 260| continue;
# 261| case PtCr_add_int: {
Error: CLANG_WARNING: [#def216]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:262:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 260| continue;
# 261| case PtCr_add_int: {
# 262|-> int int1 = vsp[-1].value.i, int2 = vsp->value.i;
# 263|
# 264| if ((int1 ^ int2) >= 0 && ((int1 + int2) ^ int1) < 0)
Error: CLANG_WARNING: [#def217]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:271:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 269| }
# 270| case PtCr_add:
# 271|-> vsp[-1].value.f += vsp->value.f;
# 272| --vsp; continue;
# 273| case PtCr_and:
Error: CLANG_WARNING: [#def218]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:274:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 272| --vsp; continue;
# 273| case PtCr_and:
# 274|-> vsp[-1].value.i &= vsp->value.i;
# 275| --vsp; continue;
# 276| case PtCr_atan: {
Error: CLANG_WARNING: [#def219]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:279:20: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 277| double result;
# 278|
# 279|-> code = gs_atan2_degrees(vsp[-1].value.f, vsp->value.f,
# 280| &result);
# 281| if (code < 0)
Error: CLANG_WARNING: [#def220]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:288:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 286| case PtCr_bitshift:
# 287| #define MAX_SHIFT (ARCH_SIZEOF_INT * 8 - 1)
# 288|-> if (vsp->value.i < -MAX_SHIFT || vsp->value.i > MAX_SHIFT)
# 289| vsp[-1].value.i = 0;
# 290| #undef MAX_SHIFT
Error: CLANG_WARNING: [#def221]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:297:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 295| --vsp; continue;
# 296| case PtCr_ceiling:
# 297|-> vsp->value.f = ceil(vsp->value.f);
# 298| continue;
# 299| case PtCr_cos:
Error: CLANG_WARNING: [#def222]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:300:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 298| continue;
# 299| case PtCr_cos:
# 300|-> vsp->value.f = gs_cos_degrees(vsp->value.f);
# 301| continue;
# 302| case PtCr_cvi:
Error: CLANG_WARNING: [#def223]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:308:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 306| * undefined behavior, hence assign to an intermediate variable
# 307| */
# 308|-> int int1 = (int)(vsp->value.f);
# 309| vsp->value.i = int1;
# 310| vsp->type = CVT_INT;
Error: CLANG_WARNING: [#def224]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:316:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 314| continue; /* prepare handled it */
# 315| case PtCr_div:
# 316|-> if (vsp->value.f == 0)
# 317| return_error(gs_error_undefinedresult);
# 318| vsp[-1].value.f /= vsp->value.f;
Error: CLANG_WARNING: [#def225]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:321:31: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 319| --vsp; continue;
# 320| case PtCr_exp:
# 321|-> vsp[-1].value.f = pow(vsp[-1].value.f, vsp->value.f);
# 322| --vsp; continue;
# 323| case PtCr_floor:
Error: CLANG_WARNING: [#def226]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:324:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 322| --vsp; continue;
# 323| case PtCr_floor:
# 324|-> vsp->value.f = floor(vsp->value.f);
# 325| continue;
# 326| case PtCr_idiv:
Error: CLANG_WARNING: [#def227]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:327:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 325| continue;
# 326| case PtCr_idiv:
# 327|-> if (vsp->value.i == 0)
# 328| return_error(gs_error_undefinedresult);
# 329| if (vsp[-1].value.i == min_int &&
Error: CPPCHECK_WARNING (CWE-758): [#def228]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:329: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 327| if (vsp->value.i == 0)
# 328| return_error(gs_error_undefinedresult);
# 329|-> if (vsp[-1].value.i == min_int &&
# 330| vsp->value.i == -1) /* anomalous boundary case, fail */
# 331| return_error(gs_error_rangecheck);
Error: CLANG_WARNING: [#def229]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:336:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 334| --vsp; continue;
# 335| case PtCr_ln:
# 336|-> vsp->value.f = log(vsp->value.f);
# 337| continue;
# 338| case PtCr_log:
Error: CLANG_WARNING: [#def230]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:339:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 337| continue;
# 338| case PtCr_log:
# 339|-> vsp->value.f = log10(vsp->value.f);
# 340| continue;
# 341| case PtCr_mod:
Error: CLANG_WARNING: [#def231]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:342:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 340| continue;
# 341| case PtCr_mod:
# 342|-> if (vsp->value.i == 0)
# 343| return_error(gs_error_undefinedresult);
# 344| vsp[-1].value.i %= vsp->value.i;
Error: CLANG_WARNING: [#def232]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:348:51: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value
# 346| case PtCr_mul_int: {
# 347| /* We don't bother to optimize this. */
# 348|-> double prod = (double)vsp[-1].value.i * vsp->value.i;
# 349|
# 350| if (prod < min_int || prod > max_int)
Error: CPPCHECK_WARNING (CWE-758): [#def233]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:350: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 348| double prod = (double)vsp[-1].value.i * vsp->value.i;
# 349|
# 350|-> if (prod < min_int || prod > max_int)
# 351| store_float(vsp - 1, prod);
# 352| else
Error: CLANG_WARNING: [#def234]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:357:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 355| }
# 356| case PtCr_mul:
# 357|-> vsp[-1].value.f *= vsp->value.f;
# 358| --vsp; continue;
# 359| case PtCr_abs_int:
Error: CLANG_WARNING: [#def235]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:360:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 358| --vsp; continue;
# 359| case PtCr_abs_int:
# 360|-> if (vsp->value.i >= 0)
# 361| continue;
# 362| /* fallthrough */
Error: CPPCHECK_WARNING (CWE-758): [#def236]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:364: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 362| /* fallthrough */
# 363| case PtCr_neg_int:
# 364|-> if (vsp->value.i == min_int)
# 365| store_float(vsp, (double)vsp->value.i); /* =self negated */
# 366| else
Error: CLANG_WARNING: [#def237]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:364:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 362| /* fallthrough */
# 363| case PtCr_neg_int:
# 364|-> if (vsp->value.i == min_int)
# 365| store_float(vsp, (double)vsp->value.i); /* =self negated */
# 366| else
Error: CLANG_WARNING: [#def238]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:370:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 368| continue;
# 369| case PtCr_neg:
# 370|-> vsp->value.f = -vsp->value.f;
# 371| continue;
# 372| case PtCr_not_bool:
Error: CLANG_WARNING: [#def239]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:373:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 371| continue;
# 372| case PtCr_not_bool:
# 373|-> vsp->value.i = !vsp->value.i;
# 374| continue;
# 375| case PtCr_not:
Error: CLANG_WARNING: [#def240]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:376:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 374| continue;
# 375| case PtCr_not:
# 376|-> vsp->value.i = ~vsp->value.i;
# 377| continue;
# 378| case PtCr_or:
Error: CLANG_WARNING: [#def241]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:379:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 377| continue;
# 378| case PtCr_or:
# 379|-> vsp[-1].value.i |= vsp->value.i;
# 380| --vsp; continue;
# 381| case PtCr_round:
Error: CLANG_WARNING: [#def242]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:382:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 380| --vsp; continue;
# 381| case PtCr_round:
# 382|-> vsp->value.f = floor(vsp->value.f + 0.5);
# 383| continue;
# 384| case PtCr_sin:
Error: CLANG_WARNING: [#def243]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:385:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 383| continue;
# 384| case PtCr_sin:
# 385|-> vsp->value.f = gs_sin_degrees(vsp->value.f);
# 386| continue;
# 387| case PtCr_sqrt:
Error: CLANG_WARNING: [#def244]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:388:28: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 386| continue;
# 387| case PtCr_sqrt:
# 388|-> vsp->value.f = sqrt(vsp->value.f);
# 389| continue;
# 390| case PtCr_sub_int: {
Error: CLANG_WARNING: [#def245]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:391:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 389| continue;
# 390| case PtCr_sub_int: {
# 391|-> int int1 = vsp[-1].value.i, int2 = vsp->value.i;
# 392|
# 393| if ((int1 ^ int2) < 0 && ((int1 - int2) ^ int1) >= 0)
Error: CLANG_WARNING: [#def246]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:400:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 398| }
# 399| case PtCr_sub:
# 400|-> vsp[-1].value.f -= vsp->value.f;
# 401| --vsp; continue;
# 402| case PtCr_truncate:
Error: CLANG_WARNING: [#def247]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:403:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 401| --vsp; continue;
# 402| case PtCr_truncate:
# 403|-> vsp->value.f = (vsp->value.f < 0 ? ceil(vsp->value.f) :
# 404| floor(vsp->value.f));
# 405| continue;
Error: CLANG_WARNING: [#def248]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:407:29: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 405| continue;
# 406| case PtCr_xor:
# 407|-> vsp[-1].value.i ^= vsp->value.i;
# 408| --vsp; continue;
# 409|
Error: CLANG_WARNING: [#def249]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:416:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 414|
# 415| case PtCr_eq_int:
# 416|-> DO_REL(==, i);
# 417| goto rel;
# 418| case PtCr_ge_int:
Error: CLANG_WARNING: [#def250]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:419:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 417| goto rel;
# 418| case PtCr_ge_int:
# 419|-> DO_REL(>=, i);
# 420| goto rel;
# 421| case PtCr_ge:
Error: CLANG_WARNING: [#def251]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:422:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value
# 420| goto rel;
# 421| case PtCr_ge:
# 422|-> DO_REL(>=, f);
# 423| goto rel;
# 424| case PtCr_gt_int:
Error: CLANG_WARNING: [#def252]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:425:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value
# 423| goto rel;
# 424| case PtCr_gt_int:
# 425|-> DO_REL(>, i);
# 426| goto rel;
# 427| case PtCr_gt:
Error: CLANG_WARNING: [#def253]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:428:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value
# 426| goto rel;
# 427| case PtCr_gt:
# 428|-> DO_REL(>, f);
# 429| goto rel;
# 430| case PtCr_le_int:
Error: CLANG_WARNING: [#def254]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:431:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value
# 429| goto rel;
# 430| case PtCr_le_int:
# 431|-> DO_REL(<=, i);
# 432| goto rel;
# 433| case PtCr_le:
Error: CLANG_WARNING: [#def255]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:434:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<=' is a garbage value
# 432| goto rel;
# 433| case PtCr_le:
# 434|-> DO_REL(<=, f);
# 435| goto rel;
# 436| case PtCr_lt_int:
Error: CLANG_WARNING: [#def256]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:437:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 435| goto rel;
# 436| case PtCr_lt_int:
# 437|-> DO_REL(<, i);
# 438| goto rel;
# 439| case PtCr_lt:
Error: CLANG_WARNING: [#def257]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:440:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 438| goto rel;
# 439| case PtCr_lt:
# 440|-> DO_REL(<, f);
# 441| goto rel;
# 442| case PtCr_ne_int:
Error: CLANG_WARNING: [#def258]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:443:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 441| goto rel;
# 442| case PtCr_ne_int:
# 443|-> DO_REL(!=, i);
# 444| goto rel;
# 445| case PtCr_ne:
Error: CLANG_WARNING: [#def259]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:446:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 444| goto rel;
# 445| case PtCr_ne:
# 446|-> DO_REL(!=, f);
# 447| goto rel;
# 448| case PtCr_eq:
Error: CLANG_WARNING: [#def260]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:449:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 447| goto rel;
# 448| case PtCr_eq:
# 449|-> DO_REL(==, f);
# 450| rel:
# 451| vsp[-1].type = CVT_BOOL;
Error: CLANG_WARNING: [#def261]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:459:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 457|
# 458| case PtCr_copy:
# 459|-> i = vsp->value.i;
# 460| n = vsp - vstack;
# 461| if (i < 0 || i >= n)
Error: CLANG_WARNING: [#def262]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:477:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 475| continue;
# 476| case PtCr_index:
# 477|-> i = vsp->value.i;
# 478| if (i < 0 || i >= vsp - vstack - 1)
# 479| return_error(gs_error_rangecheck);
Error: CLANG_WARNING: [#def263]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:486:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 484| continue;
# 485| case PtCr_roll:
# 486|-> n = vsp[-1].value.i;
# 487| i = vsp->value.i;
# 488| if (n < 0 || n > vsp - vstack - 2)
Error: CLANG_WARNING: [#def264]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:531:17: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 529|
# 530| case PtCr_if:
# 531|-> if ((vsp--)->value.i) { /* value is true, execute body */
# 532| p += 2;
# 533| continue;
Error: CLANG_WARNING: [#def265]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsfunc4.c:543:48: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 541| case PtCr_repeat:
# 542| repeat_nesting_level++;
# 543|-> repeat_count[repeat_nesting_level] = vsp->value.i;
# 544| repeat_proc_size[repeat_nesting_level] = 1 + (p[0] << 8) + p[1]; /* body size */
# 545| --vsp; /* pop the counter */
Error: CPPCHECK_WARNING: [#def266]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsgstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def267]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def268]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht.c:253:13: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 251| if (code < 0)
# 252| return code;
# 253|-> while ((code = gs_screen_currentpoint(penum, &pt)) == 0)
# 254| if ((code = gs_screen_next(penum, (*phsp->spot_function) (pt.x, pt.y))) < 0)
# 255| return code;
Error: CPPCHECK_WARNING (CWE-758): [#def269]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht.c:1056: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1054| lcm_width /= dw;
# 1055| lcm_height /= dh;
# 1056|-> lcm_width = (w > max_int / lcm_width ? max_int : lcm_width * w);
# 1057| lcm_height = (h > max_int / lcm_height ? max_int : lcm_height * h);
# 1058|
Error: CPPCHECK_WARNING (CWE-758): [#def270]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht.c:1057: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1055| lcm_height /= dh;
# 1056| lcm_width = (w > max_int / lcm_width ? max_int : lcm_width * w);
# 1057|-> lcm_height = (h > max_int / lcm_height ? max_int : lcm_height * h);
# 1058|
# 1059| if (porder->cache == 0) {
Error: CLANG_WARNING: [#def271]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht.c:1065:61: warning[core.DivideZero]: Division by zero
# 1063| tile_bytes = porder->raster
# 1064| * (porder->num_bits / porder->width);
# 1065|-> num_tiles = 1 + gx_ht_cache_default_bits_size() / tile_bytes;
# 1066| /*
# 1067| * Limit num_tiles to a reasonable number allowing for width repition.
Error: CPPCHECK_WARNING: [#def272]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsht1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def273]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtscr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def274]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtscr.c:356: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 354| * give up (silly values).
# 355| */
# 356|-> if ((fabs(u0) + fabs(v0)) < ((double)5.0 / max_int))
# 357| return_error(gs_error_rangecheck);
# 358|
Error: CPPCHECK_WARNING (CWE-758): [#def275]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtscr.c:400: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 398| /* against max_size. */
# 399| raster = bitmap_raster(wt);
# 400|-> if (raster > max_size / p.D || raster > max_long / wt)
# 401| continue;
# 402| #ifdef DEBUG
Error: CPPCHECK_WARNING: [#def276]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def277]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtx.c:422:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 420| /* build all of the order for each component */
# 421| for (i = 0; i < num_comps; i++) {
# 422|-> int j = comp2order[i];
# 423|
# 424| code = build_component(&(pht->params.ht_multiple.components[i]),
Error: GCC_ANALYZER_WARNING (CWE-457): [#def278]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtx.c: scope_hint: In function ‘gs_ht_install’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gshtx.c:422:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘comp2order[i]’
# 420| /* build all of the order for each component */
# 421| for (i = 0; i < num_comps; i++) {
# 422|-> int j = comp2order[i];
# 423|
# 424| code = build_component(&(pht->params.ht_multiple.components[i]),
Error: CPPCHECK_WARNING: [#def279]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def280]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc.c:431:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
# 429| would like to avoid this sort of stuff. That will come. */
# 430| for (k = 0; k < num_des_comps; k++){
# 431|-> conc[k] = ushort2frac(psrc_temp[k]);
# 432| }
# 433| /* In case there are extra components beyond the ICC ones */
Error: CLANG_WARNING: [#def281]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc.c:557:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
# 555| would like to avoid this sort of stuff. That will come. */
# 556| for (k = 0; k < num_des_comps; k++){
# 557|-> conc[k] = ushort2frac(psrc_temp[k]);
# 558| }
# 559| /* We have to worry about extra colorants in the device. */
Error: CLANG_WARNING: [#def282]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc.c:625:53: warning[core.UndefinedBinaryOperatorResult]: The left operand of '/' is a garbage value
# 623| /* This needs to be optimized */
# 624| for (k = 0; k < num_des_comps; k++) {
# 625|-> pconc[k] = float2frac(((float) psrc_temp[k])/65535.0);
# 626| }
# 627| /* We have to worry about extra colorants in the device. */
Error: CPPCHECK_WARNING: [#def283]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_blacktext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def284]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_blacktext.c:233:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 231| if ((state->is_fill && pgs->is_fill_color) || (!state->is_fill && !pgs->is_fill_color)) {
# 232| if (pgs->black_textvec_state->pcs != NULL) {
# 233|-> if ((code = gs_setcolorspace_only(pgs, pgs->black_textvec_state->pcs)) >= 0) {
# 234| /* current client color is gray. no need to decrement */
# 235| pgs->color[0].ccolor = pgs->black_textvec_state->pcc;
Error: CLANG_WARNING: [#def285]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_blacktext.c:242:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 240| if (pgs->black_textvec_state->pcs_alt != NULL) {
# 241| gs_swapcolors_quick(pgs);
# 242|-> if ((code = gs_setcolorspace_only(pgs, pgs->black_textvec_state->pcs_alt)) >= 0) {
# 243| pgs->color[0].ccolor = pgs->black_textvec_state->pcc_alt;
# 244| pgs->color[0].ccolor->paint.values[0] = pgs->black_textvec_state->value[1];
Error: CLANG_WARNING: [#def286]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_blacktext.c:251:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 249| } else {
# 250| if (pgs->black_textvec_state->pcs_alt != NULL) {
# 251|-> if ((code = gs_setcolorspace_only(pgs, pgs->black_textvec_state->pcs_alt)) >= 0) {
# 252| pgs->color[0].ccolor = pgs->black_textvec_state->pcc_alt;
# 253| pgs->color[0].ccolor->paint.values[0] = pgs->black_textvec_state->value[1];
Error: CLANG_WARNING: [#def287]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_blacktext.c:259:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 257| if (pgs->black_textvec_state->pcs != NULL) {
# 258| gs_swapcolors_quick(pgs);
# 259|-> if ((code = gs_setcolorspace_only(pgs, pgs->black_textvec_state->pcs)) >= 0) {
# 260| pgs->color[0].ccolor = pgs->black_textvec_state->pcc;
# 261| pgs->color[0].ccolor->paint.values[0] = pgs->black_textvec_state->value[0];
Error: CPPCHECK_WARNING: [#def288]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def289]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1081:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1079| /* Set the identity case if we are in that situation */
# 1080| if (link != NULL) {
# 1081|-> if (dev_profile != NULL && gs_input_profile->num_comps ==
# 1082| dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]->num_comps) {
# 1083| link->is_identity = true;
Error: CLANG_WARNING: [#def290]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1248:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1246| }
# 1247| if (icc_manager->smask_profiles == NULL) {
# 1248|-> code = gsicc_initialize_iccsmask(icc_manager);
# 1249| }
# 1250| cms_input_profile =
Error: CLANG_WARNING: [#def291]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1533:13: warning[deadcode.DeadStores]: Value stored to 'count' is never read
# 1531| for (j = 0; j < 3; j++) {
# 1532| pch = gs_strtok(NULL, ",;", &last);
# 1533|-> count = sscanf(pch, "%f", &(lab[j]));
# 1534| }
# 1535| lab[0] = lab[0] * 65535 / 100.0;
Error: CLANG_WARNING: [#def292]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1772:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1770| device, the default CMYK profile is used. Note that
# 1771| if we specified and NCLR profile it will be used here */
# 1772|-> code = dev_proc(dev, get_profile)(dev, &dev_profile);
# 1773| gsicc_extract_profile(dev->graphics_type_tag,
# 1774| dev_profile, &(curr_output_profile),
Error: GCC_ANALYZER_WARNING (CWE-476): [#def293]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c: scope_hint: In function ‘gsicc_transform_named_color’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1781:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:21: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:268:6: note: in definition of macro ‘gs_alloc_byte_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1485:30: note: in expansion of macro ‘gs_malloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstrans.h:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxgstate.h:33: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1007:16: note: in expansion of macro ‘dev_proc’
# 1779| curr_output_profile, rendering_params,
# 1780| pgs->memory, false);
# 1781|-> if (icc_link->is_identity) {
# 1782| psrc_temp = &(psrc[0]);
# 1783| } else {
Error: CLANG_WARNING: [#def294]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_cache.c:1801:34: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1799| order is correct */
# 1800| for (k = 0; k < curr_output_profile->num_comps; k++){
# 1801|-> device_values[k] = psrc_temp[k];
# 1802| }
# 1803| return 0;
Error: CPPCHECK_WARNING: [#def295]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def296]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1192:13: warning[deadcode.DeadStores]: Value stored to 'data_offset' is never read
# 1190| /* identity curve must be present */
# 1191| write_bigendian_4bytes(curr_ptr,data_offset);
# 1192|-> data_offset += (numin*(IDENT_CURVE_SIZE*2+12));
# 1193| } else {
# 1194| write_bigendian_4bytes(curr_ptr,data_offset);
Error: CLANG_WARNING: [#def297]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1195:13: warning[deadcode.DeadStores]: Value stored to 'data_offset' is never read
# 1193| } else {
# 1194| write_bigendian_4bytes(curr_ptr,data_offset);
# 1195|-> data_offset += (numin*(CURVE_SIZE*2+12));
# 1196| }
# 1197| }
Error: CLANG_WARNING: [#def298]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1241:13: warning[deadcode.DeadStores]: Value stored to 'curr_ptr' is never read
# 1239| } else {
# 1240| add_ident_curves(curr_ptr,numin);
# 1241|-> curr_ptr += numin*(12 + IDENT_CURVE_SIZE*2);
# 1242| }
# 1243|
Error: CPPCHECK_WARNING (CWE-562): [#def299]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1546: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1544| if (lutatobparts->matrix == NULL) {
# 1545| gsicc_create_copy_matrix3(cam, (float*) &temp_matrix);
# 1546|-> lutatobparts->matrix = &temp_matrix;
# 1547| } else {
# 1548| if (yonly) {
Error: CPPCHECK_WARNING (CWE-562): [#def300]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1577: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1575| matrixmult(cam, 3, 3, &(lutatobparts->matrix->cu.u), 3, 3,
# 1576| &(temp_matrix.cu.u));
# 1577|-> lutatobparts->matrix = &temp_matrix;
# 1578| }
# 1579| }
Error: CPPCHECK_WARNING (CWE-562): [#def301]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1655: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1653| ones_vec.w = 1;
# 1654| gsicc_make_diag_matrix(&ident_matrix,&ones_vec);
# 1655|-> icc_luta2bparts->matrix = &ident_matrix;
# 1656| /* Now create the profile */
# 1657| if (icc_luta2bparts->num_in == 1 ) {
Error: CLANG_WARNING: [#def302]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:1664:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'ident_matrix' is still referred to by the stack variable 'icc_luta2bparts' upon returning to the caller. This will be a dangling reference
# 1662| true, memory);
# 1663| }
# 1664|-> return code;
# 1665| }
# 1666|
Error: CPPCHECK_WARNING (CWE-562): [#def303]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:2152: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2150| /* Table can stay as is. Handle the ABC/LMN portions via the curves
# 2151| matrix curves operation */
# 2152|-> icc_luta2bparts->matrix = &matrix_input_trans;
# 2153| code = gsicc_create_abc_merge(icc_luta2bparts, &(pcie->common.MatrixLMN),
# 2154| &(pcie->MatrixABC), has_abc_procs,
Error: CLANG_WARNING: [#def304]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:2182:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2180| }
# 2181| gsicc_create_free_luta2bpart(memory, icc_luta2bparts);
# 2182|-> *profile_size_out = header->size;
# 2183| return 0;
# 2184| }
Error: CLANG_WARNING: [#def305]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:2605:5: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2603| unsigned char numout = lut->clut_num_output;
# 2604| unsigned char numin = lut->clut_num_input;
# 2605|-> unsigned char tablesize = lut->clut_dims[0];
# 2606| float ident[9] = { 1.0, 0, 0, 0, 1.0, 0, 0, 0, 1.0 };
# 2607| int clut_size = lut->clut_num_entries * numout, k, j;
Error: CLANG_WARNING: [#def306]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:2997:5: warning[deadcode.DeadStores]: Value stored to 'curr_ptr' is never read
# 2995| }
# 2996| add_curve(curr_ptr, trc, TRC_V2_SIZE);
# 2997|-> curr_ptr += tag_list[tag_location].size;
# 2998|
# 2999| /* Clean up */
Error: CPPCHECK_WARNING (CWE-457): [#def307]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:3266: warning[uninitvar]: Uninitialized variable: tag_signature
# 3264| buffer += 12;
# 3265| }
# 3266|-> if (tag_signature != icSigMediaWhitePointTag)
# 3267| return false;
# 3268| buffer += 4;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def308]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c: scope_hint: In function ‘get_mediawp’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:3266:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tag_signature’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c: scope_hint: In function ‘get_mediawp’
# 3264| buffer += 12;
# 3265| }
# 3266|-> if (tag_signature != icSigMediaWhitePointTag)
# 3267| return false;
# 3268| buffer += 4;
Error: COMPILER_WARNING (CWE-457): [#def309]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:3266:8: warning[-Wmaybe-uninitialized]: ‘tag_signature’ may be used uninitialized
# 3266 | if (tag_signature != icSigMediaWhitePointTag)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c: scope_hint: In function ‘gsicc_create_getv2buffer’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:3253:9: note: ‘tag_signature’ was declared here
# 3253 | int tag_signature;
# | ^~~~~~~~~~~~~
# 3264| buffer += 12;
# 3265| }
# 3266|-> if (tag_signature != icSigMediaWhitePointTag)
# 3267| return false;
# 3268| buffer += 4;
Error: CLANG_WARNING: [#def310]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_create.c:3266:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 3264| buffer += 12;
# 3265| }
# 3266|-> if (tag_signature != icSigMediaWhitePointTag)
# 3267| return false;
# 3268| buffer += 4;
Error: CPPCHECK_WARNING: [#def311]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_lcms2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def312]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def313]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:184:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 182| return NULL;
# 183| icc_profile = gsicc_profile_new(str, mem, pname, namelen);
# 184|-> code = sfclose(str);
# 185| if (icc_profile == NULL)
# 186| return NULL;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscms.h:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsdcolor.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxgstate.h:27: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:27: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c: scope_hint: In function ‘gsicc_adjust_profile_rc.part.0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:577:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘profile_data’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxsync.h:79:52: note: in definition of macro ‘gx_monitor_leave’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxgstate.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:175:3: note: in expansion of macro ‘rc_adjust_’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:576:13: note: in expansion of macro ‘rc_adjust’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:168:9: note: in expansion of macro ‘rc_free_struct’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:175:3: note: in expansion of macro ‘rc_adjust_’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:576:13: note: in expansion of macro ‘rc_adjust’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxsync.h:79:52: note: in definition of macro ‘gx_monitor_leave’
# 575| } else {
# 576| rc_adjust(profile_data, delta, name_str);
# 577|-> gx_monitor_leave(profile_data->lock);
# 578| }
# 579| }
Error: CLANG_WARNING: [#def315]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:905:5: warning[deadcode.DeadStores]: Value stored to 'default_space' is never read
# 903| only would occur if we are doing a vmreclaim while in the middle of
# 904| soft mask rendering */
# 905|-> default_space = gsUNDEFINED;
# 906| if (icc_manager->smask_profiles !=NULL &&
# 907| icc_manager->smask_profiles->swapped == true) {
Error: CLANG_WARNING: [#def316]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:1007:37: warning[core.NullDereference]: Access to field 'final' results in a dereference of a null pointer (loaded from field 'device_n')
# 1005| if (code < 0)
# 1006| return code;
# 1007|-> manager_default_profile = &(icc_manager->device_n->final->iccprofile);
# 1008| }
# 1009| code = gsicc_open_search(pname, namelen, mem_gc, mem_gc->gs_lib_ctx->profiledir,
Error: CLANG_WARNING: [#def317]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:1042:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1040| return 0; /* Done now, since this is not a standard ICC profile */
# 1041| }
# 1042|-> code = sfclose(str);
# 1043| if (icc_profile == NULL) {
# 1044| return gs_throw1(-1, "problems with profile %s",pname);
Error: CLANG_WARNING: [#def318]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:1173:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1171| }
# 1172| result = gsicc_profile_new(str, mem, pname, namelen);
# 1173|-> code = sfclose(str);
# 1174| if (result == NULL) {
# 1175| gs_throw(gs_error_VMerror, "Creation of ICC profile failed");
Error: CLANG_WARNING: [#def319]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:1377:21: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'curr_name')
# 1375| curr_name = spotnames->head;
# 1376| for (k = 0; k < spotnames->count; k++) {
# 1377|-> next_name = curr_name->next;
# 1378| /* Free the name */
# 1379| gs_free_object(mem, curr_name->name, "gsicc_free_spotnames");
Error: CLANG_WARNING: [#def320]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:1993:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1991| icc_profile =
# 1992| gsicc_profile_new(str, mem, file_name, strlen(file_name));
# 1993|-> code = sfclose(str);
# 1994| if (icc_profile == NULL)
# 1995| return gs_throw(gs_error_VMerror, "Creation of ICC profile failed");
Error: CLANG_WARNING: [#def321]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_manage.c:2746:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2744| return NULL;
# 2745| }
# 2746|-> code =
# 2747| gsicc_create_froma(gs_colorspace,
# 2748| &(gs_colorspace->cmm_icc_profile_data->buffer),
Error: CPPCHECK_WARNING: [#def322]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_monitorcm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def323]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_monitorcm.c:130:58: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 128| /* Stuff the output in the proper planar location */
# 129| for (m = 0; m < output_buff_desc->num_chan; m++) {
# 130|-> *(output_loc + m * plane_stride + j) = outputcolor[m];
# 131| }
# 132| inputcolor += pixel_in_step;
Error: CLANG_WARNING: [#def324]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_monitorcm.c:149:61: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 147| pos_out_short = (unsigned short*) (output_loc);
# 148| for (m = 0; m < output_buff_desc->num_chan; m++) {
# 149|-> *(pos_out_short + m * plane_stride + j) = pos_in_short[m];
# 150| }
# 151| inputcolor += pixel_in_step;
Error: CPPCHECK_WARNING: [#def325]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_nocm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def326]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsicc_replacecm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def327]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsimage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def328]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsimage.c:342:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 340| if (code < 0)
# 341| return code;
# 342|-> return gs_image_enum_init(penum, pie, (const gs_data_image_t *)&image,
# 343| pgs);
# 344| }
Error: CPPCHECK_WARNING (CWE-758): [#def329]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsimage.c:572: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 570| for (;;) {
# 571| /* If wanted can vary, only transfer 1 row at a time. */
# 572|-> int h = (penum->wanted_varies ? 1 : max_int);
# 573|
# 574| /* Move partial rows from source[] to row[]. */
Error: CPPCHECK_WARNING: [#def330]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsimpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def331]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiodev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def332]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsioram.c:292: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 290| int count;
# 291|
# 292|-> if (s->file_limit < S_FILE_LIMIT_MAX) {
# 293| long limit_count = s->file_offset + s->file_limit -
# 294| ramfile_tell(file);
Error: CPPCHECK_WARNING (CWE-758): [#def333]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsioram.c:322: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 320| s->file_modes = s->modes;
# 321| s->file_offset = 0; /* in case we switch to reading later */
# 322|-> s->file_limit = S_FILE_LIMIT_MAX;
# 323| }
# 324|
Error: CPPCHECK_WARNING: [#def334]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def335]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c:122: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 120| s->file_modes = s->modes;
# 121| s->file_offset = 0;
# 122|-> s->file_limit = S_FILE_LIMIT_MAX;
# 123| }
# 124|
Error: CPPCHECK_WARNING (CWE-758): [#def336]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c:201: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 199| if (s->position + (s->cursor.r.limit - s->cbuf + 1) >= filelen || block_data == NULL)
# 200| return EOFC; /* at EOF */
# 201|-> if (s->file_limit < S_FILE_LIMIT_MAX) {
# 202| /* Adjust count for subfile limit */
# 203| uint32_t limit_count = s->file_offset + s->file_limit - s->position;
Error: GCC_ANALYZER_WARNING: [#def337]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c: scope_hint: In function ‘s_block_read_process’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c:235:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/string_.h:32: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsiorom.c:30: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
# 233| return ERRC;
# 234| if (need_copy) {
# 235|-> memcpy(pw->ptr+1, dest, max_count);
# 236| count = max_count;
# 237| }
Error: CPPCHECK_WARNING: [#def338]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gslibctx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def339]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gslibctx.c:1238:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1236|
# 1237| /* Sanitize arg */
# 1238|-> p = arg;
# 1239| word = NULL;
# 1240| for (p = arg; *p; p++) {
Error: CPPCHECK_WARNING: [#def340]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def341]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-590): [#def342]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmalloc.c:366: error[autovarInvalidDeallocation]: Deallocation of an auto-variable ([) results in undefined behaviour.
# 364| gs_alloc_fill(bp, gs_alloc_fill_free,
# 365| bp->size + sizeof(gs_malloc_block_t));
# 366|-> free(bp);
# 367| #else
# 368| bp = mmem->allocated; /* If 'finalize' releases a memory,
Error: CPPCHECK_WARNING (CWE-758): [#def343]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:502: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 500| return code;
# 501| FINISH_DFMUL2FIXED_VARS(t, xtemp);
# 502|-> if ((code = CHECK_SET_FIXED_SUM(px, px, t)) < 0)
# 503| return code;
# 504| }
Error: CPPCHECK_WARNING (CWE-758): [#def344]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:509: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 507| return code;
# 508| FINISH_DFMUL2FIXED_VARS(t, ytemp);
# 509|-> if ((code = CHECK_SET_FIXED_SUM(py, py, t)) < 0)
# 510| return code;
# 511| }
Error: CPPCHECK_WARNING (CWE-758): [#def345]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:523: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 521| return code;
# 522| FINISH_DFMUL2FIXED_VARS(t, ytemp);
# 523|-> if ((code = CHECK_SET_FIXED_SUM(px, px, t)) < 0)
# 524| return code;
# 525| }
Error: CPPCHECK_WARNING (CWE-758): [#def346]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:527: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 525| }
# 526| }
# 527|-> if (((code = CHECK_SET_FIXED_SUM(ppt->x, px, pmat->tx_fixed)) < 0) ||
# 528| ((code = CHECK_SET_FIXED_SUM(ppt->y, py, pmat->ty_fixed)) < 0) )
# 529| return code;
Error: CPPCHECK_WARNING (CWE-758): [#def347]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:528: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 526| }
# 527| if (((code = CHECK_SET_FIXED_SUM(ppt->x, px, pmat->tx_fixed)) < 0) ||
# 528|-> ((code = CHECK_SET_FIXED_SUM(ppt->y, py, pmat->ty_fixed)) < 0) )
# 529| return code;
# 530| return 0;
Error: CPPCHECK_WARNING (CWE-758): [#def348]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:571: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 569| return code;
# 570| FINISH_DFMUL2FIXED_VARS(t, ytemp);
# 571|-> if ((code = CHECK_SET_FIXED_SUM(px, px, t)) < 0)
# 572| return code;
# 573| }
Error: CPPCHECK_WARNING (CWE-758): [#def349]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:578: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 576| return code;
# 577| FINISH_DFMUL2FIXED_VARS(t, xtemp);
# 578|-> if ((code = CHECK_SET_FIXED_SUM(py, py, t)) < 0)
# 579| return code;
# 580| }
Error: CLANG_WARNING: [#def350]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:696:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 694| coeff[i] = 0.0;
# 695| pmat->xx = coeff[0];
# 696|-> pmat->xy = coeff[1];
# 697| pmat->yx = coeff[2];
# 698| pmat->yy = coeff[3];
Error: CLANG_WARNING: [#def351]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmatrix.c:698:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 696| pmat->xy = coeff[1];
# 697| pmat->yx = coeff[2];
# 698|-> pmat->yy = coeff[3];
# 699| pmat->tx = coeff[4];
# 700| pmat->ty = coeff[5];
Error: CPPCHECK_WARNING: [#def352]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmchunk.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def353]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmd5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def354]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmd5.c:145:26: warning[deadcode.DeadStores]: Value stored to 'X' during its initialization is never read
# 143| /* Define storage for little-endian or both types of CPUs. */
# 144| gs_md5_word_t xbuf[16];
# 145|-> const gs_md5_word_t *X = xbuf;
# 146| #endif
# 147|
Error: CPPCHECK_WARNING (CWE-758): [#def355]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.c:93: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 91|
# 92| for (; msize; msize -= isize, p += isize) {
# 93|-> isize = min(msize, max_int);
# 94| memset(p, fill, isize);
# 95| }
Error: CPPCHECK_WARNING: [#def356]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmisc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def357]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsovrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def358]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsovrc.c:937:30: warning[deadcode.DeadStores]: Value stored to 'curr_data' during its initialization is never read
# 935| gs_memory_t * mem = dev->memory;
# 936| gx_color_index comps_orig = opdev->op_state == OP_STATE_FILL ? opdev->drawn_comps_fill : opdev->drawn_comps_stroke;
# 937|-> byte *curr_data = (byte *) data + data_x;
# 938| int row, offset;
# 939|
Error: CPPCHECK_WARNING: [#def359]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspaint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def360]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def361]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsparaml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def362]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsparaml.c: scope_hint: In function ‘out_string’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsparaml.c:760:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsparaml.c: scope_hint: In function ‘out_string’
# 758| out->last = str[slen-1];
# 759| if (out->value != NULL) {
# 760|-> memcpy(out->value, str, slen);
# 761| out->value += slen;
# 762| *out->value = 0;
Error: CPPCHECK_WARNING: [#def363]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def364]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath.c:88: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 86| clamp_point(gs_fixed_point * ppt, double x, double y)
# 87| {
# 88|-> ppt->x = clamp_coord(x);
# 89| ppt->y = clamp_coord(y);
# 90| }
Error: CPPCHECK_WARNING (CWE-758): [#def365]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath.c:89: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 87| {
# 88| ppt->x = clamp_coord(x);
# 89|-> ppt->y = clamp_coord(y);
# 90| }
# 91|
Error: CPPCHECK_WARNING: [#def366]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def367]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath1.c:222: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 220| ar = -ar;
# 221| }
# 222|-> if (ang1 > (max_int - 360) || ang2 > (max_int - 360))
# 223| return_error(gs_error_limitcheck);
# 224|
Error: CPPCHECK_WARNING (CWE-758): [#def368]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspath1.c:607: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 605| if (copied_path == 0)
# 606| return_error(gs_error_VMerror);
# 607|-> code = gx_path_copy(pgs->path, copied_path);
# 608| if (code < 0) {
# 609| gx_path_free(copied_path, "gs_path_enum_init");
Error: CPPCHECK_WARNING (CWE-758): [#def369]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gspcolor.c:79: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 77| ppat->type = type;
# 78| ppat->PatternType = type->PatternType;
# 79|-> uid_set_invalid(&ppat->uid);
# 80| }
# 81|
Error: CPPCHECK_WARNING: [#def370]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘image_PaintProc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:1012:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘image_PaintProc’
# 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): [#def372]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_high_level_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:1159:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_high_level_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_high_level_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcolor2.h:27: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:30: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
# 1157| }
# 1158|
# 1159|-> if (ppmap->pcspace != 0)
# 1160| code = image_PaintProc(&pdc->ccolor, pgs);
# 1161| else {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def373]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_remap_mask_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:1202:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pinst’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_remap_mask_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
# 1200| */
# 1201| if (pgs->have_pattern_streams)
# 1202|-> code = dev_proc(pcc->pattern->saved->device, dev_spec_op)(pcc->pattern->saved->device,
# 1203| gxdso_pattern_can_accum, (void *)ppat, ppat->uid.id);
# 1204|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def374]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_remap_image_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:1230:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pinst’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c: scope_hint: In function ‘pixmap_remap_image_pattern’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
# 1228| */
# 1229| if (pgs->have_pattern_streams)
# 1230|-> code = dev_proc(pcc->pattern->saved->device, dev_spec_op)(pcc->pattern->saved->device,
# 1231| gxdso_pattern_can_accum, (void *)ppat, ppat->uid.id);
# 1232|
Error: CPPCHECK_WARNING (CWE-758): [#def375]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:1300: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1298| /* set up the client pattern structure */
# 1299| gs_pattern1_init(&pat);
# 1300|-> uid_set_UniqueID(&pat.uid, (id == no_UniqueID) ? gs_next_ids(mem, 1) : id);
# 1301| pat.PaintType = (mask ? 2 : 1);
# 1302| pat.TilingType = 1;
Error: CLANG_WARNING: [#def376]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype1.c:2049:15: warning[deadcode.DeadStores]: Value stored to 'id' during its initialization is never read
# 2047| /* A special case for writing a known pattern :
# 2048| Just write the tile id. */
# 2049|-> gs_id id = ptile->id; /* Ensure sizeof(gs_id). */
# 2050| if_debug2m('v', dev->memory,
# 2051| "[v*] Writing trans tile ID into clist, uid = %ld id = %ld \n",
Error: CPPCHECK_WARNING: [#def377]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsptype2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def378]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsroprun.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def379]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsserial.c:123:12: warning[deadcode.DeadStores]: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
# 121|
# 122| tmp_ptr = enc_u_get_uint(pval, tmp_ptr);
# 123|-> return ptr += tmp_ptr - ptr;
# 124| }
# 125|
Error: CLANG_WARNING: [#def380]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsserial.c:156:12: warning[deadcode.DeadStores]: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
# 154|
# 155| tmp_ptr = enc_s_get_int(pval, tmp_ptr);
# 156|-> return ptr += tmp_ptr - ptr;
# 157| }
# 158|
Error: CPPCHECK_WARNING: [#def381]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsshade.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def382]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def383]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c: scope_hint: In function ‘conv_fp’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c:583:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/math_.h:29: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c: scope_hint: In function ‘conv_fp’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c: scope_hint: In function ‘conv_fp’
# 581| if (apr_isalpha(*p)) {
# 582| *len = strlen(p);
# 583|-> memcpy(buf, p, *len + 1);
# 584| *is_negative = FALSE;
# 585| return (buf);
Error: CLANG_WARNING: [#def384]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gssprintf.c:1132:44: warning[deadcode.DeadStores]: Although the value stored to 'q' is used in the enclosing expression, the value is never actually read from 'q'
# 1130| s_len = strlen(s);
# 1131|
# 1132|-> if (alternate_form && (q = strchr(s, '.')) == NULL) {
# 1133| s[s_len++] = '.';
# 1134| s[s_len] = '\0'; /* delimit for following strchr() */
Error: CPPCHECK_WARNING: [#def385]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def386]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsstate.c: scope_hint: In function ‘gstate_clone_core’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsstate.c:1330:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pfrom’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstext.h:27: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxtext.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:37: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstrans.h:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxgstate.h:33: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzstate.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsstate.c:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsstate.c:1243:10: note: in expansion of macro ‘gx_path_alloc’
# 1328| if (pgs == NULL)
# 1329| return NULL;
# 1330|-> if (pfrom->client_data != NULL) {
# 1331| pdata = (*pfrom->client_procs.alloc) (mem);
# 1332|
Error: CPPCHECK_WARNING: [#def387]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def388]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstiffio.c:180:1: warning[-Wunused-function]: ‘gs_tifsWarningHandlerEx’ defined but not used
# 180 | gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 178|
# 179| static void
# 180|-> gs_tifsWarningHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
# 181| {
# 182| tifs_io_private *tiffio = (tifs_io_private *)client_data;
Error: COMPILER_WARNING (CWE-1164): [#def389]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstiffio.c:196:1: warning[-Wunused-function]: ‘gs_tifsErrorHandlerEx’ defined but not used
# 196 | gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
# | ^~~~~~~~~~~~~~~~~~~~~
# 194|
# 195| static void
# 196|-> gs_tifsErrorHandlerEx(thandle_t client_data, const char* module, const char* fmt, va_list ap)
# 197| {
# 198| tifs_io_private *tiffio = (tifs_io_private *)client_data;
Error: CPPCHECK_WARNING: [#def390]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstrans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def391]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def392]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:89: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 87| which is a weaker limit.
# 88| */
# 89|-> if (any_abs(lw / denom) > max_int_in_fixed) {
# 90| return_error(gs_error_rangecheck);
# 91| }
Error: GCC_ANALYZER_WARNING (CWE-127): [#def393]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/math_.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:18: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c: scope_hint: In function ‘gs_type1_interpret’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:21: note: in expansion of macro ‘fixed2int_var’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:31: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:197:17: note: in expansion of macro ‘CS_CHECK_POP’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:21: note: in expansion of macro ‘fixed2int_var’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:21: note: in expansion of macro ‘fixed2int_var’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:35: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:198:21: note: in expansion of macro ‘fixed2int_var’
# └─────────────────────────┘
# ^
# 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: CLANG_WARNING: [#def394]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:267:29: warning[deadcode.DeadStores]: Value stored to 'cipend' is never read
# 265| if (pgd) {
# 266| cip = pgd->bits.data;
# 267|-> cipend = pgd->bits.data + pgd->bits.size;
# 268| }
# 269| t1_hinter__init(h, pcis->path);
Error: GCC_ANALYZER_WARNING (CWE-124): [#def395]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:427:25: note: in expansion of macro ‘CS_CHECK_POP’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:33: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# 426| case ce1_div:
# 427| CS_CHECK_POP(&csp[-1], cstack);
# 428|-> csp[-1] = float2fixed((double)csp[-1] / (double)*csp);
# 429| --csp;
# 430| goto pushed;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def396]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:58: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:427:25: note: in expansion of macro ‘CS_CHECK_POP’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:58: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
# └─────────────────────────┘
# ^
# 426| case ce1_div:
# 427| CS_CHECK_POP(&csp[-1], cstack);
# 428|-> csp[-1] = float2fixed((double)csp[-1] / (double)*csp);
# 429| --csp;
# 430| goto pushed;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def397]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:427:25: note: in expansion of macro ‘CS_CHECK_POP’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:428:73: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:120:34: note: in definition of macro ‘float2fixed’
# └─────────────────────────┘
# ^
# 426| case ce1_div:
# 427| CS_CHECK_POP(&csp[-1], cstack);
# 428|-> csp[-1] = float2fixed((double)csp[-1] / (double)*csp);
# 429| --csp;
# 430| goto pushed;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def398]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:441:61: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:441:47: note: in expansion of macro ‘fixed2int_var’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:441:47: note: in expansion of macro ‘fixed2int_var’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:441:61: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:88:28: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:111:28: note: in expansion of macro ‘fixed2int’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:441:47: note: in expansion of macro ‘fixed2int_var’
# └─────────────────────────┘
# ^
# 439| /* We must remember to pop both the othersubr # */
# 440| /* and the argument count off the stack. */
# 441|-> switch (*pindex = fixed2int_var(*csp)) {
# 442| case 0:
# 443| if (!CS_CHECK_CSTACK_BOUNDS(&csp[-4], cstack))
Error: GCC_ANALYZER_WARNING (CWE-127): [#def399]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:446:47: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:446:47: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# └─────────────────────────┘
# ^
# 444| return_error(gs_error_invalidfont);
# 445| {
# 446|-> fixed fheight = csp[-4];
# 447| /* Assume the next two opcodes */
# 448| /* are `pop' `pop'. Unfortunately, some */
Error: GCC_ANALYZER_WARNING (CWE-124): [#def400]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:453:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:453:49: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# 451| /* opcode stream. */
# 452| pcis->ignore_pops = 2;
# 453|-> csp[-4] = csp[-3] - pcis->asb_diff;
# 454| csp[-3] = csp[-2];
# 455| csp -= 3;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def401]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:453:54: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:453:54: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# └─────────────────────────┘
# ^
# 451| /* opcode stream. */
# 452| pcis->ignore_pops = 2;
# 453|-> csp[-4] = csp[-3] - pcis->asb_diff;
# 454| csp[-3] = csp[-2];
# 455| csp -= 3;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def402]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:454:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:454:49: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# └─────────────────────────┘
# ^
# 452| pcis->ignore_pops = 2;
# 453| csp[-4] = csp[-3] - pcis->asb_diff;
# 454|-> csp[-3] = csp[-2];
# 455| csp -= 3;
# 456| code = t1_hinter__flex_end(h, fheight);
Error: GCC_ANALYZER_WARNING (CWE-124): [#def403]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:454:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:158:5: note: in expansion of macro ‘INIT_CSTACK’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:173:9: note: in expansion of macro ‘charstring_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype1.c:454:49: note: valid subscripts for ‘cstack’ are ‘[0]’ to ‘[47]’
# 452| pcis->ignore_pops = 2;
# 453| csp[-4] = csp[-3] - pcis->asb_diff;
# 454|-> csp[-3] = csp[-2];
# 455| csp -= 3;
# 456| code = t1_hinter__flex_end(h, fheight);
Error: CLANG_WARNING: [#def404]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype2.c:188:14: warning[core.NullDereference]: Dereference of null pointer
# 186| return_error(gs_error_invalidfont);
# 187|
# 188|-> c0 = *cip++;
# 189|
# 190| charstring_next(c0, state, c, encrypted);
Error: CPPCHECK_WARNING (CWE-758): [#def405]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype2.c:772: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 770|
# 771| csp[-1] =
# 772|-> (prod > max_fixed ? max_fixed :
# 773| prod < min_fixed ? min_fixed : (fixed)prod);
# 774| }
Error: CPPCHECK_WARNING (CWE-758): [#def406]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype2.c:773: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 771| csp[-1] =
# 772| (prod > max_fixed ? max_fixed :
# 773|-> prod < min_fixed ? min_fixed : (fixed)prod);
# 774| }
# 775| --csp;
Error: CPPCHECK_WARNING: [#def407]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def408]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c:824: error[legacyUninitvar]: Uninitialized variable: code
# 822|
# 823| if (code2 < 0) code = gs_note_error(code2);
# 824|-> return code;
# 825| }
# 826|
Error: CLANG_WARNING: [#def409]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c:1187:21: warning[deadcode.DeadStores]: Value stored to 'format' is never read
# 1185| subst.Coverage = U16(subtable_ptr + offset_of(SingleSubstFormat1, Coverage));
# 1186| subst.DeltaGlyphId = U16(subtable_ptr + offset_of(SingleSubstFormat1, DeltaGlyphId));
# 1187|-> format = subst.SubstFormat; /* Stops gcc warning */
# 1188| } else {
# 1189| SingleSubstFormat2 subst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def410]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c: scope_hint: In function ‘gs_woff_pop_flate_filter’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c:2114:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c:2174:15: note: in expansion of macro ‘u32’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstype42.c:2180:15: note: in expansion of macro ‘U16’
# 2112| gs_woff_pop_flate_filter(stream *s)
# 2113| {
# 2114|-> gs_memory_t *mem = s->memory;
# 2115| stream *strm = s->strm;
# 2116| byte *buf = s->cbuf;
Error: CPPCHECK_WARNING: [#def411]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def412]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsutil.c:372:22: warning[deadcode.DeadStores]: Although the value stored to 'x1' is used in the enclosing expression, the value is never actually read from 'x1'
# 370| diffs[count].p.x = max(x0, inner->q.x), diffs[count].p.y = y0;
# 371| diffs[count].q.x = x1, diffs[count].q.y = y1;
# 372|-> outer->q.x = x1 = diffs[count].p.x;
# 373| ++count;
# 374| }
Error: CPPCHECK_WARNING: [#def413]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def414]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:101: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 99| fixed upperx = pbox->q.x;
# 100| fixed uppery = pbox->q.y;
# 101|-> if (upperx > max_fixed - fixed_scale - 1)
# 102| upperx = max_fixed - fixed_scale - 1;
# 103| if (uppery > max_fixed - fixed_scale - 1)
Error: CPPCHECK_WARNING (CWE-758): [#def415]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:102: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 100| fixed uppery = pbox->q.y;
# 101| if (upperx > max_fixed - fixed_scale - 1)
# 102|-> upperx = max_fixed - fixed_scale - 1;
# 103| if (uppery > max_fixed - fixed_scale - 1)
# 104| uppery = max_fixed - fixed_scale - 1;
Error: CPPCHECK_WARNING (CWE-758): [#def416]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:103: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 101| if (upperx > max_fixed - fixed_scale - 1)
# 102| upperx = max_fixed - fixed_scale - 1;
# 103|-> if (uppery > max_fixed - fixed_scale - 1)
# 104| uppery = max_fixed - fixed_scale - 1;
# 105| if (padev->list.transpose) {
Error: CPPCHECK_WARNING (CWE-758): [#def417]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:104: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 102| upperx = max_fixed - fixed_scale - 1;
# 103| if (uppery > max_fixed - fixed_scale - 1)
# 104|-> uppery = max_fixed - fixed_scale - 1;
# 105| if (padev->list.transpose) {
# 106| padev->clip_box.p.x = fixed2int_var(pbox->p.y);
Error: CPPCHECK_WARNING (CWE-758): [#def418]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:269: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 267|
# 268| gx_clip_list_init(&adev->list);
# 269|-> adev->bbox.p.x = adev->bbox.p.y = fixed2int(max_fixed);
# 270| adev->bbox.q.x = adev->bbox.q.y = fixed2int(min_fixed);
# 271| adev->clip_box.p.x = adev->clip_box.p.y = fixed2int(min_fixed);
Error: CPPCHECK_WARNING (CWE-758): [#def419]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:270: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 268| gx_clip_list_init(&adev->list);
# 269| adev->bbox.p.x = adev->bbox.p.y = fixed2int(max_fixed);
# 270|-> adev->bbox.q.x = adev->bbox.q.y = fixed2int(min_fixed);
# 271| adev->clip_box.p.x = adev->clip_box.p.y = fixed2int(min_fixed);
# 272| adev->clip_box.q.x = adev->clip_box.q.y = fixed2int(max_fixed);
Error: CPPCHECK_WARNING (CWE-758): [#def420]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:271: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 269| adev->bbox.p.x = adev->bbox.p.y = fixed2int(max_fixed);
# 270| adev->bbox.q.x = adev->bbox.q.y = fixed2int(min_fixed);
# 271|-> adev->clip_box.p.x = adev->clip_box.p.y = fixed2int(min_fixed);
# 272| adev->clip_box.q.x = adev->clip_box.q.y = fixed2int(max_fixed);
# 273| return 0;
Error: CPPCHECK_WARNING (CWE-758): [#def421]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:272: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 270| adev->bbox.q.x = adev->bbox.q.y = fixed2int(min_fixed);
# 271| adev->clip_box.p.x = adev->clip_box.p.y = fixed2int(min_fixed);
# 272|-> adev->clip_box.q.x = adev->clip_box.q.y = fixed2int(max_fixed);
# 273| return 0;
# 274| }
Error: CPPCHECK_WARNING (CWE-758): [#def422]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:338: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 336| /* Allocate a rectangle to be added to the list. */
# 337| static const gx_clip_rect clip_head_rect = {
# 338|-> 0, 0, min_int, min_int, min_int, min_int
# 339| };
# 340| static const gx_clip_rect clip_tail_rect = {
Error: CPPCHECK_WARNING (CWE-758): [#def423]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:341: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 339| };
# 340| static const gx_clip_rect clip_tail_rect = {
# 341|-> 0, 0, max_int, max_int, max_int, max_int
# 342| };
# 343| static gx_clip_rect *
Error: GCC_ANALYZER_WARNING (CWE-476): [#def424]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c: scope_hint: In function ‘accum_fill_rectangle’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:484:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:507:5: note: in expansion of macro ‘ACCUM_ALLOC’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:507:5: note: in expansion of macro ‘ACCUM_ALLOC’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:507:5: note: in expansion of macro ‘ACCUM_ALLOC’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:389:17: note: in expansion of macro ‘ACCUM_SET’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:507:5: note: in expansion of macro ‘ACCUM_ALLOC’
# 482| }
# 483| else
# 484|-> rptr = adev->list.tail->prev;
# 485| if (y >= rptr->ymax) {
# 486| if (y == rptr->ymax && x == rptr->xmin && xe == rptr->xmax &&
Error: CLANG_WARNING: [#def425]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxacpath.c:484:16: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from field 'tail')
# 482| }
# 483| else
# 484|-> rptr = adev->list.tail->prev;
# 485| if (y >= rptr->ymax) {
# 486| if (y == rptr->ymax && x == rptr->xmin && xe == rptr->xmax &&
Error: CPPCHECK_WARNING: [#def426]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def427]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.c:3504: error[ctunullpointer]: Null pointer dereference: table
# 3502| {
# 3503| byte top = idx>>8;
# 3504|-> uint16_t a = table[top];
# 3505| int b = table[top+1]-a;
# 3506|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def428]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.c: scope_hint: In function ‘template_mark_fill_rect16’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.c:5277:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 5275| /* Hybrid case, additive with subtractive spots */
# 5276| for (k = 0; k < (num_comp - num_spots); k++) {
# 5277|-> dst_ptr[k * planestride] = pdst[k];
# 5278| }
# 5279| for (k = 0; k < num_spots; k++) {
Error: CPPCHECK_WARNING: [#def429]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def430]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend1.c:871: error[uninitvar]: Uninitialized variable: bebg
# 869| if (a == 0) {
# 870| for (comp_num = 0; comp_num < num_comp; comp_num++) {
# 871|-> buf_ptr[position + planestride * (size_t)comp_num] = bebg;
# 872| }
# 873| } else if (a == 0xffff) {
Error: CPPCHECK_WARNING: [#def431]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def432]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccache.c:96: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 94| &mxx, &mxy, &myx, &myy);
# 95| if (font->FontType == ft_composite || font->PaintType != 0) { /* We can't cache by UID alone. */
# 96|-> uid_set_invalid(&uid);
# 97| } else {
# 98| uid = ((gs_font_base *) font)->UID;
Error: CPPCHECK_WARNING (CWE-758): [#def433]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccache.c:99: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 97| } else {
# 98| uid = ((gs_font_base *) font)->UID;
# 99|-> if (uid_is_valid(&uid))
# 100| font = 0;
# 101| }
Error: CPPCHECK_WARNING: [#def434]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def435]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:139: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 137| i < dir->fmcache.mmax; i++, pair++) {
# 138| pair->index = i;
# 139|-> fm_pair_init(pair);
# 140| pair->ttf = 0;
# 141| pair->ttr = 0;
Error: CPPCHECK_WARNING (CWE-758): [#def436]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:340: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 338| code = uid_copy(&pair->UID, dir->memory->stable_memory, "gx_add_fm_pair");
# 339| if (code < 0) {
# 340|-> uid_set_invalid(&pair->UID);
# 341| return code;
# 342| }
Error: CPPCHECK_WARNING (CWE-758): [#def437]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:451: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 449| }
# 450|
# 451|-> fm_pair_set_free(pair);
# 452| code = fm_pair_remove_from_list(dir, pair, &dir->fmcache.used);
# 453| if (code < 0)
Error: CLANG_WARNING: [#def438]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:591:9: warning[core.NullDereference]: Access to field 'num_chars' results in a dereference of a null pointer (loaded from field 'pair')
# 589| dir->ccache.cnext = (byte *) cc - cck->data;
# 590| if (cc->linked)
# 591|-> cc_pair(cc)->num_chars--;
# 592| if_debug2m('k', dir->memory, "[k]freeing char "PRI_INTPTR", pair="PRI_INTPTR"\n",
# 593| (intptr_t)cc, (intptr_t)cc_pair(cc));
Error: CPPCHECK_WARNING (CWE-190): [#def439]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:762: error[integerOverflow]: Signed integer overflow for expression '-(((1<<3)>((8>8)?(8):8))?(1<<3):((8>8)?(8):8))'.
# 760| cc_set_raster(cc, nraster);
# 761| {
# 762|-> uint diff = ROUND_DOWN(cc->head.size - sizeof_cached_char -
# 763| nraster * cc->height,
# 764| align_cached_char_mod);
Error: CPPCHECK_WARNING (CWE-758): [#def440]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:798: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 796| for (; count--; pair++) {
# 797| if (pair->font == font) {
# 798|-> if (!force && uid_is_valid(&pair->UID)) { /* Keep the entry. */
# 799| gs_clean_fm_pair(dir, pair);
# 800| } else {
Error: CPPCHECK_WARNING (CWE-190): [#def441]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:866: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 864| char_cache_chunk *cck_prev = dir->ccache.chunks;
# 865| char_cache_chunk *cck;
# 866|-> uint cksize = ROUND_UP(dir->ccache.bmax / 5 + 1, obj_align_mod);
# 867| uint tsize = ROUND_UP(dir->ccache.bmax - dir->ccache.bspace, obj_align_mod);
# 868| byte *cdata;
Error: CPPCHECK_WARNING (CWE-190): [#def442]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxccman.c:867: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 865| char_cache_chunk *cck;
# 866| uint cksize = ROUND_UP(dir->ccache.bmax / 5 + 1, obj_align_mod);
# 867|-> uint tsize = ROUND_UP(dir->ccache.bmax - dir->ccache.bspace, obj_align_mod);
# 868| byte *cdata;
# 869|
Error: CPPCHECK_WARNING: [#def443]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def444]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:315:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 313| int rewind_code;
# 314|
# 315|-> if ((code = gs_point_transform2fixed(&pgs->ctm, -vx, -vy, &pvxy)) < 0 ||
# 316| (code = gs_distance_transform2fixed(&pgs->ctm, vx, vy, &dvxy)) < 0
# 317| )
Error: CLANG_WARNING: [#def445]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:316:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 314|
# 315| if ((code = gs_point_transform2fixed(&pgs->ctm, -vx, -vy, &pvxy)) < 0 ||
# 316|-> (code = gs_distance_transform2fixed(&pgs->ctm, vx, vy, &dvxy)) < 0
# 317| )
# 318| return 0; /* don't cache */
Error: GCC_ANALYZER_WARNING (CWE-835): [#def446]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c: scope_hint: In function ‘gx_compute_text_oversampling’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:412:23: 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: CLANG_WARNING: [#def447]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:540:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 538| /* are still opposite afterwards. */
# 539|
# 540|-> if ((code = gs_distance_transform2fixed(&pgs->ctm, llx, lly, &cll)) < 0 ||
# 541| (code = gs_distance_transform2fixed(&pgs->ctm, llx, ury, &clr)) < 0 ||
# 542| (code = gs_distance_transform2fixed(&pgs->ctm, urx, lly, &cul)) < 0 ||
Error: CLANG_WARNING: [#def448]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:541:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 539|
# 540| if ((code = gs_distance_transform2fixed(&pgs->ctm, llx, lly, &cll)) < 0 ||
# 541|-> (code = gs_distance_transform2fixed(&pgs->ctm, llx, ury, &clr)) < 0 ||
# 542| (code = gs_distance_transform2fixed(&pgs->ctm, urx, lly, &cul)) < 0 ||
# 543| (code = gs_distance_transform2fixed(&pgs->ctm, urx, ury, &cur)) < 0
Error: CLANG_WARNING: [#def449]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:542:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 540| if ((code = gs_distance_transform2fixed(&pgs->ctm, llx, lly, &cll)) < 0 ||
# 541| (code = gs_distance_transform2fixed(&pgs->ctm, llx, ury, &clr)) < 0 ||
# 542|-> (code = gs_distance_transform2fixed(&pgs->ctm, urx, lly, &cul)) < 0 ||
# 543| (code = gs_distance_transform2fixed(&pgs->ctm, urx, ury, &cur)) < 0
# 544| )
Error: CLANG_WARNING: [#def450]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxchar.c:543:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 541| (code = gs_distance_transform2fixed(&pgs->ctm, llx, ury, &clr)) < 0 ||
# 542| (code = gs_distance_transform2fixed(&pgs->ctm, urx, lly, &cul)) < 0 ||
# 543|-> (code = gs_distance_transform2fixed(&pgs->ctm, urx, ury, &cur)) < 0
# 544| )
# 545| return 0; /* don't cache */
Error: CLANG_WARNING: [#def451]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:198:37: warning[deadcode.DeadStores]: Value stored to 'plane_mask' during its initialization is never read
# 196| int num_comps = dev->color_info.num_components;
# 197| int depth = dev->color_info.depth;
# 198|-> gx_color_index plane_mask = pdevc->colors.colored.plane_mask;
# 199| const gx_device_color_saved * psdc = psdc0;
# 200| byte * pdata0 = pdata;
Error: CLANG_WARNING: [#def452]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:432:13: warning[deadcode.DeadStores]: Value stored to 'plane_mask' is never read
# 430| if (num_comps > 8 * sizeof(uint)) {
# 431| enc_u_getw(tmp_mask, pdata);
# 432|-> plane_mask = (gx_color_index)tmp_mask;
# 433| enc_u_getw(tmp_mask, pdata);
# 434| plane_mask = (((gx_color_index)tmp_mask)<<(8 * sizeof(uint)-1))<<1;
Error: CLANG_WARNING: [#def453]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:448:9: warning[deadcode.DeadStores]: Value stored to 'size' is never read
# 446| devc.colors.colored.c_level[i] = 0;
# 447| }
# 448|-> size -= pdata - pdata_start;
# 449| }
# 450|
Error: CLANG_WARNING: [#def454]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:996:5: warning[core.NullDereference]: Access to field 'render_ht' results in a dereference of an undefined pointer value
# 994| END
# 995| /* Suppress a compiler warning about signed/unsigned constants. */
# 996|-> SET_PLANE_COLOR_CMYK(0, /*0x88888888*/ (bits32)~0x77777777);
# 997| SET_PLANE_COLOR_CMYK(1, 0x44444444);
# 998| SET_PLANE_COLOR_CMYK(2, 0x22222222);
Error: CLANG_WARNING: [#def455]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:997:5: warning[core.NullDereference]: Access to field 'render_ht' results in a dereference of an undefined pointer value
# 995| /* Suppress a compiler warning about signed/unsigned constants. */
# 996| SET_PLANE_COLOR_CMYK(0, /*0x88888888*/ (bits32)~0x77777777);
# 997|-> SET_PLANE_COLOR_CMYK(1, 0x44444444);
# 998| SET_PLANE_COLOR_CMYK(2, 0x22222222);
# 999| SET_PLANE_COLOR_CMYK(3, 0x11111111);
Error: CLANG_WARNING: [#def456]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:998:5: warning[core.NullDereference]: Access to field 'render_ht' results in a dereference of an undefined pointer value
# 996| SET_PLANE_COLOR_CMYK(0, /*0x88888888*/ (bits32)~0x77777777);
# 997| SET_PLANE_COLOR_CMYK(1, 0x44444444);
# 998|-> SET_PLANE_COLOR_CMYK(2, 0x22222222);
# 999| SET_PLANE_COLOR_CMYK(3, 0x11111111);
# 1000|
Error: CLANG_WARNING: [#def457]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:999:5: warning[core.NullDereference]: Access to field 'render_ht' results in a dereference of an undefined pointer value
# 997| SET_PLANE_COLOR_CMYK(1, 0x44444444);
# 998| SET_PLANE_COLOR_CMYK(2, 0x22222222);
# 999|-> SET_PLANE_COLOR_CMYK(3, 0x11111111);
# 1000|
# 1001| #undef SET_PLANE_COLOR_CMYK
Error: CLANG_WARNING: [#def458]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcht.c:1005:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1003| gx_ht_cache *ctemp;
# 1004|
# 1005|-> ctemp = caches[0], caches[0] = caches[3], caches[3] = ctemp;
# 1006| ctemp = caches[1], caches[1] = caches[2], caches[2] = ctemp;
# 1007| }
Error: CPPCHECK_WARNING: [#def459]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclbits.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def460]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def461]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def462]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:276:25: warning[core.NullDereference]: Dereference of null pointer
# 274| dp++;
# 275| if (depth == 1) {
# 276|-> cmd_putw(0, &dp);
# 277| }
# 278| cmd_putxy(rect, &dp);
Error: CLANG_WARNING: [#def463]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:278:21: warning[core.NullDereference]: Array access results in a null pointer dereference
# 276| cmd_putw(0, &dp);
# 277| }
# 278|-> cmd_putxy(rect, &dp);
# 279| }
# 280| }
Error: CLANG_WARNING: [#def464]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:584:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 582| /****** CAN'T HANDLE IMAGES WITH IRREGULAR DEPTHS ******/
# 583| goto use_default;
# 584|-> if ((code = gs_matrix_invert(&pim->ImageMatrix, &mat)) < 0 ||
# 585| (code = gs_matrix_multiply(&mat, &ctm_only(pgs), &mat)) < 0 ||
# 586| !(cdev->disable_mask & clist_disable_nonrect_hl_image ?
Error: CLANG_WARNING: [#def465]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:679:25: warning[core.NullDereference]: Access to field 'data_cs' results in a dereference of a null pointer (loaded from variable 'src_profile')
# 677| if (pgs->icc_manager->srcgtag_profile != NULL) {
# 678| srcgtag_profile = pgs->icc_manager->srcgtag_profile;
# 679|-> if (src_profile->data_cs == gsRGB) {
# 680| if (srcgtag_profile->rgb_profiles[gsSRC_IMAGPRO] != NULL) {
# 681| /* We only do this replacement depending upon the
Error: CLANG_WARNING: [#def466]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:1545:5: warning[core.NullDereference]: Dereference of null pointer
# 1543| return code;
# 1544| dp += 2;
# 1545|-> enc_u_putw(ht_size, dp);
# 1546|
# 1547| /* see if a separate allocated buffer is required */
Error: CLANG_WARNING: [#def467]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:1562:9: warning[core.NullDereference]: Dereference of null pointer
# 1560| dp0 = dp;
# 1561| dp += 2;
# 1562|-> enc_u_putw(ht_size, dp);
# 1563| pht_buff = dp;
# 1564| }
Error: CLANG_WARNING: [#def468]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:1600:17: warning[core.NullDereference]: Dereference of null pointer
# 1598| if (code >= 0) {
# 1599| dp += 2;
# 1600|-> enc_u_putw(seg_size, dp);
# 1601| memcpy(dp, pbuff, seg_size);
# 1602| ht_size -= seg_size;
Error: CLANG_WARNING: [#def469]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:2036:5: warning[core.NullDereference]: Array access results in a null pointer dereference
# 2034| return code;
# 2035| dp++;
# 2036|-> cmd_put2w(h, bytes_per_plane, &dp);
# 2037| for (plane = 0; plane < pie->num_planes; ++plane)
# 2038| for (i = 0; i < h; ++i) {
Error: CLANG_WARNING: [#def470]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:2040:66: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 2038| for (i = 0; i < h; ++i) {
# 2039| memcpy(dp,
# 2040|-> planes[plane].data + i * planes[plane].raster +
# 2041| offsets[plane] + offset,
# 2042| bytes_per_plane);
Error: CLANG_WARNING: [#def471]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:2082:5: warning[core.NullDereference]: Array access results in a null pointer dereference
# 2080| dp++;
# 2081|
# 2082|-> cmd_put2w(h, bytes_per_plane, &dp);
# 2083|
# 2084| for (i = 0; i < h; ++i) {
Error: CLANG_WARNING: [#def472]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclimag.c:2089:78: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 2087| to see if we have any non-neutral colors */
# 2088| int pdata_x;
# 2089|-> byte *data_ptr = (byte *)(planes[0].data + i * planes[0].raster + offsets[0] + offset);
# 2090| byte *buffer = (byte *)(*pie_c->decode.unpack)(pie_c->buffer, &pdata_x,
# 2091| data_ptr, 0, dsize, pie_c->decode.map,
Error: CPPCHECK_WARNING: [#def473]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def474]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:294: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 292| * (max_int, max_int). Hence it doesn't 'stop' cases when y == max_int.
# 293| * These shouldn't really happen, but let's be sure. */
# 294|-> if (y == max_int)
# 295| return 0;
# 296| if ((rptr = rptr->next) != 0)
Error: CPPCHECK_WARNING (CWE-758): [#def475]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1424: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1422| gx_clip_rect *curr = rdev->list.head->next;
# 1423|
# 1424|-> cbox.p.x = cbox.p.y = max_int;
# 1425| cbox.q.x = cbox.q.y = min_int;
# 1426| /* scan the list for the outer bbox */
Error: CPPCHECK_WARNING (CWE-758): [#def476]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1425: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1423|
# 1424| cbox.p.x = cbox.p.y = max_int;
# 1425|-> cbox.q.x = cbox.q.y = min_int;
# 1426| /* scan the list for the outer bbox */
# 1427| while (curr->next != NULL) { /* stop before tail */
Error: CPPCHECK_WARNING (CWE-758): [#def477]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1458: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1456| ty = int2fixed(rdev->translation.y);
# 1457|
# 1458|-> if (tbox.p.x != min_fixed)
# 1459| tbox.p.x -= tx;
# 1460| if (tbox.p.y != min_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def478]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1460: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1458| if (tbox.p.x != min_fixed)
# 1459| tbox.p.x -= tx;
# 1460|-> if (tbox.p.y != min_fixed)
# 1461| tbox.p.y -= ty;
# 1462| if (tbox.q.x != max_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def479]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1462: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1460| if (tbox.p.y != min_fixed)
# 1461| tbox.p.y -= ty;
# 1462|-> if (tbox.q.x != max_fixed)
# 1463| tbox.q.x -= tx;
# 1464| if (tbox.q.y != max_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def480]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip.c:1464: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1462| if (tbox.q.x != max_fixed)
# 1463| tbox.q.x -= tx;
# 1464|-> if (tbox.q.y != max_fixed)
# 1465| tbox.q.y -= ty;
# 1466| }
Error: CPPCHECK_WARNING: [#def481]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclip2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def482]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclipm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def483]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def484]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c: scope_hint: In function ‘clist_init_tile_cache’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c:276:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hsize’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c: scope_hint: In function ‘clist_init_tile_cache’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c:404:9: note: in expansion of macro ‘dev_proc’
# 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: CPPCHECK_WARNING (CWE-758): [#def485]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclist.c:527: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 525|
# 526| for (band = 0; band < nbands; band++, states++) {
# 527|-> static const gx_clist_state cls_initial = { cls_initial_values };
# 528|
# 529| *states = cls_initial;
Error: CPPCHECK_WARNING: [#def486]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def487]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:534:32: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 532|
# 533| /* memfile file names begin with a flag byte == 0xff */
# 534|-> if (fname[0] == '\377' && (code = sscanf(fname+1, "%p", &f) == 1)) {
# 535| return memfile_fclose((clist_file_ptr)f, fname, true);
# 536| } else
Error: CLANG_WARNING: [#def488]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:894:13: warning[deadcode.DeadStores]: Value stored to 'num_raw_buffers' is never read
# 892| }
# 893| f->raw_tail->fwd = NULL;
# 894|-> num_raw_buffers = i + 1; /* if MALLOC failed, then OK */
# 895| if_debug1m(':', f->memory, "[:]Number of raw buffers allocated=%d\n",
# 896| num_raw_buffers);
Error: CLANG_WARNING: [#def489]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:918:36: warning[core.NullDereference]: Access to field 'fwd' results in a dereference of a null pointer (loaded from field 'back')
# 916| }
# 917| /* Use the last raw block in the chain (the oldest) */
# 918|-> f->raw_tail->back->fwd = NULL; /* disconnect from tail */
# 919| f->raw_tail->fwd = f->raw_head; /* new head */
# 920| f->raw_head->back = f->raw_tail;
Error: COMPILER_WARNING: [#def490]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c: scope_hint: In function ‘memfile_get_pdata.isra.0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:951:67: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
# 951 | *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:21: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.h:56:10: note: at offset [-2147483647, -1] into destination object ‘data’ of size 16224
# 56 | char data[MEMFILE_DATA_SIZE];
# | ^~~~
# 949| back_up = f->rd.limit - f->rd.ptr;
# 950| for (i = 0; i < back_up; i++)
# 951|-> *(bp->phys_blk->link->data - back_up + i) = *++f->rd.ptr;
# 952| }
# 953| f->rd.ptr = (const byte *)bp->phys_blk->link->data - back_up - 1;
Error: CLANG_WARNING: [#def491]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:1112:27: warning[core.NullDereference]: Access to field 'link' results in a dereference of a null pointer (loaded from field 'log_curr_blk')
# 1110| }
# 1111| for (; i < block_num; i++) {
# 1112|-> f->log_curr_blk = f->log_curr_blk->link;
# 1113| }
# 1114| f->log_curr_pos = new_pos;
Error: GCC_ANALYZER_WARNING (CWE-465): [#def492]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c: scope_hint: In function ‘memfile_free_mem’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclmem.c:1167:26: warning[-Wanalyzer-deref-before-check]: check of ‘pphys’ for NULL after already dereferencing it
# 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: CPPCHECK_WARNING: [#def493]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def494]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def495]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1126: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1124| /* Don't skip segments when expansion is unknown. */
# 1125|
# 1126|-> code = cmd_put_path(cdev, re.pcls, ppath, min_fixed, max_fixed,
# 1127| op, false, (segment_notes)~0);
# 1128| if (code < 0)
Error: CPPCHECK_WARNING (CWE-758): [#def496]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1303: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1301|
# 1302| if (pattern_size || expansion_code < 0 ) {
# 1303|-> ymin = min_fixed;
# 1304| ymax = max_fixed;
# 1305| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def497]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1304: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1302| if (pattern_size || expansion_code < 0 ) {
# 1303| ymin = min_fixed;
# 1304|-> ymax = max_fixed;
# 1305| } else {
# 1306| ymin = int2fixed(re.y - adjust_y);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def498]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c: scope_hint: In function ‘cmd_put_segment’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1574:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&*psw.cmd’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1749:27: note: in expansion of macro ‘A’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1943:21: note: in expansion of macro ‘set_first_point’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1749:27: note: in expansion of macro ‘A’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1751:42: note: in expansion of macro ‘which_side’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1751:42: note: in expansion of macro ‘which_side’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1760:24: note: in expansion of macro ‘cmd_put_rmoveto’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:27: included_from: Included from here.
# 1572| if (code < 0)
# 1573| return code;
# 1574|-> memcpy(dp + 1, psw->cmd, len - 1);
# 1575| psw->len = len;
# 1576| psw->dp = dp;
Error: CPPCHECK_WARNING (CWE-758): [#def499]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclpath.c:1617: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1615| far_out(gs_fixed_point out)
# 1616| {
# 1617|-> return (out.y >= max_fixed/2 || out.y <= -(max_fixed/2) || out.x >= max_fixed/2 || out.x <= -(max_fixed/2));
# 1618| }
# 1619|
Error: CPPCHECK_WARNING: [#def500]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def501]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:118:39: warning[core.BitwiseShift]: Right operand is negative in left shift
# 116| int shift = 24 - 7;
# 117|
# 118|-> for (; val |= (frac31)(*p & 0xFE) << shift, *p++ & 1; shift -= 7);
# 119| *rp = p;
# 120| return val;
Error: CPPCHECK_WARNING (CWE-758): [#def502]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:620: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 618| data_x = 0;
# 619| {
# 620|-> static const gx_clist_state cls_initial = { cls_initial_values };
# 621|
# 622| state = cls_initial;
Error: CLANG_WARNING: [#def503]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:910:42: warning[core.NullDereference]: Dereference of null pointer
# 908| uint data;
# 909|
# 910|-> dev_depth = (tdev->color_info.depth <= 8*sizeof(gx_color_index) ?
# 911| tdev->color_info.depth : 8*sizeof(gx_color_index));
# 912| dev_depth_bytes = (dev_depth + 7) >> 3;
Error: CLANG_WARNING: [#def504]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:995:34: warning[core.NullDereference]: Dereference of null pointer
# 993| gx_color_index color = 0;
# 994|
# 995|-> dev_depth = (tdev->color_info.depth < 8*sizeof(gx_color_index) ?
# 996| tdev->color_info.depth : 8*sizeof(gx_color_index));
# 997| dev_depth_bytes = (dev_depth + 7) >> 3;
Error: CLANG_WARNING: [#def505]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1062:29: warning[core.NullDereference]: Dereference of null pointer
# 1060| depth = 1;
# 1061| } else {
# 1062|-> depth = tdev->color_info.depth;
# 1063| }
# 1064| if_debug1m('L', mem, " plane_height=0x%x", plane_height);
Error: CLANG_WARNING: [#def506]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1071:29: warning[core.NullDereference]: Dereference of null pointer
# 1069| depth = *cbp++;
# 1070| } else
# 1071|-> depth = tdev->color_info.depth;
# 1072| plane_height = 0;
# 1073| copy:cmd_getw(state.rect.x, cbp);
Error: CLANG_WARNING: [#def507]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1085:29: warning[core.NullDereference]: Dereference of null pointer
# 1083| }
# 1084| #endif
# 1085|-> depth = state_slot->head.depth;
# 1086| state.rect.width = state_slot->width;
# 1087| state.rect.height = state_slot->height;
Error: CLANG_WARNING: [#def508]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1268:62: warning[core.DivideZero]: Division by zero
# 1266| igcd(state_tile.rep_shift,
# 1267| state_tile.rep_width));
# 1268|-> tile_phase.y = (state.tile_phase.y + y0) % full_height;
# 1269| }
# 1270| continue;
Error: CLANG_WARNING: [#def509]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1387:44: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<=' is a garbage value
# 1385| gx_cpath_inner_box(&clip_path, &cbox);
# 1386| use_clip =
# 1387|-> !(cbox.p.x <= target_box.p.x &&
# 1388| cbox.q.x >= target_box.q.x &&
# 1389| cbox.p.y <= target_box.p.y &&
Error: CLANG_WARNING: [#def510]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1477:29: warning[core.NullDereference]: Dereference of null pointer
# 1475| {
# 1476| /* Processing an image operation */
# 1477|-> dev_proc(tdev, set_graphics_type_tag)(tdev, GS_IMAGE_TAG);/* FIXME: what about text bitmaps? */
# 1478| image.i4.override_in_smask = 0;
# 1479| code = (*dev_proc(tdev, begin_typed_image))
Error: GCC_ANALYZER_WARNING (CWE-457): [#def511]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c: scope_hint: In function ‘clist_playback_band’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1492:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
# 1490| if (data_height == 0) {
# 1491| if_debug0m('L', mem, " done image\n");
# 1492|-> code = gx_image_end(image_info, true);
# 1493| if (code < 0)
# 1494| goto out;
Error: CLANG_WARNING: [#def512]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1492:36: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1490| if (data_height == 0) {
# 1491| if_debug0m('L', mem, " done image\n");
# 1492|-> code = gx_image_end(image_info, true);
# 1493| if (code < 0)
# 1494| goto out;
Error: CLANG_WARNING: [#def513]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1504:42: warning[core.NullDereference]: Access to field 'num_planes' results in a dereference of an undefined pointer value (loaded from variable 'image_info')
# 1502| cmd_getw(flags, cbp);
# 1503| for (plane = 0;
# 1504|-> plane < image_info->num_planes;
# 1505| ++plane, flags >>= 1) {
# 1506| if (flags & 1) {
Error: GCC_ANALYZER_WARNING (CWE-457): [#def514]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1504:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1502:29: note: in expansion of macro ‘cmd_getw’
# 1502| cmd_getw(flags, cbp);
# 1503| for (plane = 0;
# 1504|-> plane < image_info->num_planes;
# 1505| ++plane, flags >>= 1) {
# 1506| if (flags & 1) {
Error: GCC_ANALYZER_WARNING (CWE-457): [#def515]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1527:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
# 1525| if (data_height == 0) {
# 1526| if_debug0m('L', mem, " done image\n");
# 1527|-> code = gx_image_end(image_info, true);
# 1528| if (code < 0)
# 1529| goto out;
Error: CLANG_WARNING: [#def516]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1527:36: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1525| if (data_height == 0) {
# 1526| if_debug0m('L', mem, " done image\n");
# 1527|-> code = gx_image_end(image_info, true);
# 1528| if (code < 0)
# 1529| goto out;
Error: CLANG_WARNING: [#def517]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1540:42: warning[core.NullDereference]: Access to field 'num_planes' results in a dereference of an undefined pointer value (loaded from variable 'image_info')
# 1538| data_height, bytes_per_plane);
# 1539| for (plane = 0;
# 1540|-> plane < image_info->num_planes;
# 1541| ++plane
# 1542| ) {
Error: GCC_ANALYZER_WARNING (CWE-457): [#def518]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1540:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘image_info’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1536:29: note: in expansion of macro ‘cmd_getw’
# 1538| data_height, bytes_per_plane);
# 1539| for (plane = 0;
# 1540|-> plane < image_info->num_planes;
# 1541| ++plane
# 1542| ) {
Error: CLANG_WARNING: [#def519]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:1870:42: warning[core.NullDereference]: Dereference of null pointer
# 1868| state.rect.x, state.rect.y,
# 1869| state.rect.width,state.rect.height);
# 1870|-> code = (*dev_proc(tdev, strip_tile_rect_devn))
# 1871| (tdev, &state_tile,
# 1872| state.rect.x - x0, state.rect.y - y0,
Error: CLANG_WARNING: [#def520]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2060:38: warning[core.NullDereference]: Dereference of null pointer
# 2058| fill_params.adjust = gs_gstate.fill_adjust;
# 2059| fill_params.flatness = gs_gstate.flatness;
# 2060|-> code = (*dev_proc(tdev, fill_path))(tdev, &gs_gstate, ppath,
# 2061| &fill_params, &fill_color, pcpath);
# 2062| break;
Error: CLANG_WARNING: [#def521]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2073:38: warning[core.NullDereference]: Dereference of null pointer
# 2071| stroke_params.flatness = gs_gstate.flatness;
# 2072| stroke_params.traditional = false;
# 2073|-> code = (*dev_proc(tdev, fill_stroke_path))(tdev, &gs_gstate, ppath,
# 2074| &fill_params, &fill_color,
# 2075| &stroke_params, &stroke_color, pcpath);
Error: CLANG_WARNING: [#def522]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2080:38: warning[core.NullDereference]: Dereference of null pointer
# 2078| stroke_params.flatness = gs_gstate.flatness;
# 2079| stroke_params.traditional = false;
# 2080|-> code = (*dev_proc(tdev, stroke_path))
# 2081| (tdev, &gs_gstate,
# 2082| ppath, &stroke_params,
Error: CLANG_WARNING: [#def523]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2109:37: warning[core.NullDereference]: Dereference of null pointer
# 2107| an XPS opacity followed by a fill with a transparency group. This occurs in
# 2108| the XPS gradient code */
# 2109|-> if (tdev->color_info.num_components != ttdev->color_info.num_components){
# 2110| /* Reset the clipper device color information. Only worry about
# 2111| the information that is used in the trap code */
Error: CLANG_WARNING: [#def524]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2273:29: warning[core.NullDereference]: Dereference of null pointer
# 2271| /* FIXME: This test should be unnecessary. Bug 692076
# 2272| * is open pending a proper fix. */
# 2273|-> code = (dev_proc(tdev, fillpage) == NULL ? 0 :
# 2274| (*dev_proc(tdev, fillpage))(tdev, &gs_gstate,
# 2275| &fill_color));
Error: CLANG_WARNING: [#def525]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2281:30: warning[core.NullDereference]: Dereference of null pointer
# 2279| case cmd_op_fill_rect_tiny >> 4:
# 2280| if (!state.lop_enabled) {
# 2281|-> code = (*dev_proc(tdev, fill_rectangle))
# 2282| (tdev, state.rect.x - x0, state.rect.y - y0,
# 2283| state.rect.width, state.rect.height,
Error: CLANG_WARNING: [#def526]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2315:26: warning[core.NullDereference]: Dereference of null pointer
# 2313| case cmd_op_tile_rect_tiny >> 4:
# 2314| /* Currently we don't use lop with strip_tile_rectangle. */
# 2315|-> code = (*dev_proc(tdev, strip_tile_rectangle))
# 2316| (tdev, &state_tile,
# 2317| state.rect.x - x0, state.rect.y - y0,
Error: CLANG_WARNING: [#def527]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2339:34: warning[core.NullDereference]: Dereference of null pointer
# 2337| } else {
# 2338| if (plane_height == 0) {
# 2339|-> code = (*dev_proc(tdev, copy_mono))
# 2340| (tdev, source, data_x, raster, gx_no_bitmap_id,
# 2341| state.rect.x - x0, state.rect.y - y0,
Error: CLANG_WARNING: [#def528]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2540:34: warning[core.DivideZero]: Division by zero
# 2538| {
# 2539| const byte *cbp = pcb->ptr;
# 2540|-> uint rep_width = bits->width / bits->x_reps;
# 2541| uint rep_height = bits->height / bits->y_reps;
# 2542| uint index;
Error: CLANG_WARNING: [#def529]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:2858:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2856| case gs_color_space_index_ICC:
# 2857| /* build the color space object */
# 2858|-> code = gs_cspace_build_ICC(&pcs, NULL, mem);
# 2859| /* Don't bother getting the ICC stuff from the clist yet */
# 2860| picc_profile = gsicc_profile_new(NULL, cdev->memory, NULL, 0);
Error: CLANG_WARNING: [#def530]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3110:12: warning[core.NullDereference]: Dereference of null pointer
# 3108| * change the target device.
# 3109| */
# 3110|-> code = dev_proc(tdev, composite)(tdev, &tdev, pcomp, pgs, mem, (gx_device*) cdev);
# 3111| if (code == 1) {
# 3112| /* A new compositor was created that wrapped tdev. This should
Error: CLANG_WARNING: [#def531]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3395:48: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3393| switch (op) {
# 3394| case cmd_opv_rmoveto:
# 3395|-> code = gx_path_add_point(ppath, px += A, py += B);
# 3396| break;
# 3397| case cmd_opv_rlineto:
Error: CLANG_WARNING: [#def532]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3395:57: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3393| switch (op) {
# 3394| case cmd_opv_rmoveto:
# 3395|-> code = gx_path_add_point(ppath, px += A, py += B);
# 3396| break;
# 3397| case cmd_opv_rlineto:
Error: CLANG_WARNING: [#def533]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3398:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3396| break;
# 3397| case cmd_opv_rlineto:
# 3398|-> code = gx_path_add_line_notes(ppath, px += A, py += B, notes);
# 3399| break;
# 3400| case cmd_opv_rgapto:
Error: CLANG_WARNING: [#def534]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3398:62: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3396| break;
# 3397| case cmd_opv_rlineto:
# 3398|-> code = gx_path_add_line_notes(ppath, px += A, py += B, notes);
# 3399| break;
# 3400| case cmd_opv_rgapto:
Error: CLANG_WARNING: [#def535]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3404:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3402| break;
# 3403| case cmd_opv_hlineto:
# 3404|-> code = gx_path_add_line_notes(ppath, px += A, py, notes);
# 3405| break;
# 3406| case cmd_opv_vlineto:
Error: CLANG_WARNING: [#def536]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3407:57: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3405| break;
# 3406| case cmd_opv_vlineto:
# 3407|-> code = gx_path_add_line_notes(ppath, px, py += A, notes);
# 3408| break;
# 3409| case cmd_opv_rmlineto:
Error: CLANG_WARNING: [#def537]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3410:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3408| break;
# 3409| case cmd_opv_rmlineto:
# 3410|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0)
# 3411| break;
# 3412| code = gx_path_add_line_notes(ppath, px += C, py += D, notes);
Error: CLANG_WARNING: [#def538]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3410:62: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3408| break;
# 3409| case cmd_opv_rmlineto:
# 3410|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0)
# 3411| break;
# 3412| code = gx_path_add_line_notes(ppath, px += C, py += D, notes);
Error: CLANG_WARNING: [#def539]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3415:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3413| break;
# 3414| case cmd_opv_rm2lineto:
# 3415|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0 ||
# 3416| (code = gx_path_add_line_notes(ppath, px += C, py += D,
# 3417| notes)) < 0
Error: CLANG_WARNING: [#def540]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3415:62: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3413| break;
# 3414| case cmd_opv_rm2lineto:
# 3415|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0 ||
# 3416| (code = gx_path_add_line_notes(ppath, px += C, py += D,
# 3417| notes)) < 0
Error: CLANG_WARNING: [#def541]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3423:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3421| break;
# 3422| case cmd_opv_rm3lineto:
# 3423|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0 ||
# 3424| (code = gx_path_add_line_notes(ppath, px += C, py += D,
# 3425| notes)) < 0 ||
Error: CLANG_WARNING: [#def542]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3423:62: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3421| break;
# 3422| case cmd_opv_rm3lineto:
# 3423|-> if ((code = gx_path_add_point(ppath, px += A, py += B)) < 0 ||
# 3424| (code = gx_path_add_line_notes(ppath, px += C, py += D,
# 3425| notes)) < 0 ||
Error: CLANG_WARNING: [#def543]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3433:21: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 3431| break;
# 3432| case cmd_opv_rrcurveto: /* a b c d e f => a b a+c b+d a+c+e b+d+f */
# 3433|-> rrc: E += (C += A);
# 3434| F += (D += B);
# 3435| curve: code = gx_path_add_curve_notes(ppath, px + A, py + B,
Error: CLANG_WARNING: [#def544]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3441:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 3439| break;
# 3440| case cmd_opv_hvcurveto: /* a b c d => a 0 a+b c a+b c+d */
# 3441|-> hvc: F = C + D, D = C, E = C = A + B, B = 0;
# 3442| goto curve;
# 3443| case cmd_opv_vhcurveto: /* a b c d => 0 a b a+c b+d a+c */
Error: CLANG_WARNING: [#def545]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3444:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 3442| goto curve;
# 3443| case cmd_opv_vhcurveto: /* a b c d => 0 a b a+c b+d a+c */
# 3444|-> vhc: E = B + D, F = D = A + C, C = B, B = A, A = 0;
# 3445| goto curve;
# 3446| case cmd_opv_nrcurveto: /* a b c d => 0 0 a b a+c b+d */
Error: CLANG_WARNING: [#def546]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3447:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 3445| goto curve;
# 3446| case cmd_opv_nrcurveto: /* a b c d => 0 0 a b a+c b+d */
# 3447|-> F = B + D, E = A + C, D = B, C = A, B = A = 0;
# 3448| goto curve;
# 3449| case cmd_opv_rncurveto: /* a b c d => a b a+c b+d a+c b+d */
Error: CLANG_WARNING: [#def547]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3450:19: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 3448| goto curve;
# 3449| case cmd_opv_rncurveto: /* a b c d => a b a+c b+d a+c b+d */
# 3450|-> F = D += B, E = C += A;
# 3451| goto curve;
# 3452| case cmd_opv_vqcurveto: /* a b => VH a b TS(a,b) TS(b,a) */
Error: CLANG_WARNING: [#def548]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3453:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '^' is a garbage value
# 3451| goto curve;
# 3452| case cmd_opv_vqcurveto: /* a b => VH a b TS(a,b) TS(b,a) */
# 3453|-> if ((A ^ B) < 0)
# 3454| C = -B, D = -A;
# 3455| else
Error: CLANG_WARNING: [#def549]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3453:20: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
# 3451| goto curve;
# 3452| case cmd_opv_vqcurveto: /* a b => VH a b TS(a,b) TS(b,a) */
# 3453|-> if ((A ^ B) < 0)
# 3454| C = -B, D = -A;
# 3455| else
Error: CLANG_WARNING: [#def550]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3459:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '^' is a garbage value
# 3457| goto vhc;
# 3458| case cmd_opv_hqcurveto: /* a b => HV a TS(a,b) b TS(b,a) */
# 3459|-> if ((A ^ B) < 0)
# 3460| D = -A, C = B, B = -B;
# 3461| else
Error: CLANG_WARNING: [#def551]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3459:20: warning[core.UndefinedBinaryOperatorResult]: The right operand of '^' is a garbage value
# 3457| goto vhc;
# 3458| case cmd_opv_hqcurveto: /* a b => HV a TS(a,b) b TS(b,a) */
# 3459|-> if ((A ^ B) < 0)
# 3460| D = -A, C = B, B = -B;
# 3461| else
Error: CLANG_WARNING: [#def552]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3466:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3464| case cmd_opv_scurveto: /* (a b c d e f) => */
# 3465| {
# 3466|-> fixed a = A, b = B;
# 3467|
# 3468| /* See gxclpath.h for details on the following. */
Error: CLANG_WARNING: [#def553]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3466:30: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3464| case cmd_opv_scurveto: /* (a b c d e f) => */
# 3465| {
# 3466|-> fixed a = A, b = B;
# 3467|
# 3468| /* See gxclpath.h for details on the following. */
Error: CLANG_WARNING: [#def554]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3530:20: warning[core.NullDereference]: Dereference of null pointer
# 3528| if (pseg2->next && !(px == pseg2->next->pt.x && py == pseg2->next->pt.y)) {
# 3529| /* Parallelogram */
# 3530|-> fill = dev_proc(dev, fill_parallelogram);
# 3531| bx = pseg2->pt.x - pseg1->pt.x;
# 3532| by = pseg2->pt.y - pseg1->pt.y;
Error: CLANG_WARNING: [#def555]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrast.c:3535:20: warning[core.NullDereference]: Dereference of null pointer
# 3533| } else {
# 3534| /* Triangle */
# 3535|-> fill = dev_proc(dev, fill_triangle);
# 3536| bx = pseg2->pt.x - px;
# 3537| by = pseg2->pt.y - py;
Error: CPPCHECK_WARNING: [#def556]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def557]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclread.c:796:27: warning[deadcode.DeadStores]: Although the value stored to 'options' is used in the enclosing expression, the value is never actually read from 'options'
# 794| if (!(options & GB_RETURN_COPY)) {
# 795| /* Redo the first piece with copying. */
# 796|-> params->options = options =
# 797| (params->options & ~GB_RETURN_ALL) | GB_RETURN_COPY;
# 798| lines_rasterized = 0;
Error: CLANG_WARNING: [#def558]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclread.c:830:31: warning[deadcode.DeadStores]: Although the value stored to 'options' is used in the enclosing expression, the value is never actually read from 'options'
# 828| if (code < 0)
# 829| break;
# 830|-> params->options = options = band_params.options;
# 831| if (lines_rasterized == line_count)
# 832| break;
Error: CPPCHECK_WARNING: [#def559]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def560]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:444: warning[nullPointer]: Possible null pointer dereference: fa
# 442| if (options & 4) {
# 443| if (swap_axes) {
# 444|-> rx = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 445| rxe = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y));
# 446| ry = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
Error: CPPCHECK_WARNING (CWE-476): [#def561]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:445: warning[nullPointer]: Possible null pointer dereference: fa
# 443| if (swap_axes) {
# 444| rx = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 445|-> rxe = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y));
# 446| ry = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 447| rheight = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x)) - ry;
Error: CPPCHECK_WARNING (CWE-476): [#def562]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:446: warning[nullPointer]: Possible null pointer dereference: fa
# 444| rx = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 445| rxe = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y));
# 446|-> ry = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 447| rheight = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x)) - ry;
# 448| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def563]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:447: warning[nullPointer]: Possible null pointer dereference: fa
# 445| rxe = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y));
# 446| ry = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 447|-> rheight = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x)) - ry;
# 448| } else {
# 449| rx = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
Error: CPPCHECK_WARNING (CWE-476): [#def564]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:449: warning[nullPointer]: Possible null pointer dereference: fa
# 447| rheight = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x)) - ry;
# 448| } else {
# 449|-> rx = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 450| rxe = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x));
# 451| ry = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
Error: CPPCHECK_WARNING (CWE-476): [#def565]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:450: warning[nullPointer]: Possible null pointer dereference: fa
# 448| } else {
# 449| rx = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 450|-> rxe = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x));
# 451| ry = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 452| rheight = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y)) - ry;
Error: CPPCHECK_WARNING (CWE-476): [#def566]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:451: warning[nullPointer]: Possible null pointer dereference: fa
# 449| rx = fixed2int(max(min(min(left->start.x, left->end.x), right->start.x), fa->clip->p.x));
# 450| rxe = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x));
# 451|-> ry = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 452| rheight = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y)) - ry;
# 453| }
Error: CPPCHECK_WARNING (CWE-476): [#def567]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclrect.c:452: warning[nullPointer]: Possible null pointer dereference: fa
# 450| rxe = fixed2int_ceiling(min(max(max(left->start.x, left->end.x), right->start.x), fa->clip->q.x));
# 451| ry = fixed2int(max(min(min(left->start.y, left->end.y), right->start.y), fa->clip->p.y));
# 452|-> rheight = fixed2int_ceiling(min(max(max(left->start.y, left->end.y), right->start.y), fa->clip->q.y)) - ry;
# 453| }
# 454| } else {
Error: CPPCHECK_WARNING: [#def568]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def569]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:163:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 161| }
# 162| gs_c_param_list_read(¶mlist);
# 163|-> if ((code = gs_putdeviceparams(ndev, (gs_param_list *)¶mlist)) < 0)
# 164| goto out_cleanup;
# 165| gs_c_param_list_release(¶mlist);
Error: CLANG_WARNING: [#def570]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:197:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 195| ncdev->space_params.band = cdev->page_info.band_params;
# 196| ncdev->space_params.banding_type = BandingAlways;
# 197|-> code = npdev->printer_procs.buf_procs.size_buf_device
# 198| (&buf_space, (gx_device *)ncdev, NULL, ncdev->space_params.band.BandHeight, false);
# 199| min_buffer_space = clist_minimum_buffer(cdev->nbands);
Error: CLANG_WARNING: [#def571]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:212:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 210| * reset the clist state for reading/rendering
# 211| */
# 212|-> if ((code = gdev_prn_allocate_memory(ndev, NULL, ndev->width, ndev->height)) < 0)
# 213| goto out_cleanup;
# 214|
Error: CLANG_WARNING: [#def572]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:230:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 228| strcpy(fmode, "r"); /* read access for threads */
# 229| strncat(fmode, gp_fmode_binary_suffix, 1);
# 230|-> if ((code=cdev->page_info.io_procs->fopen(cdev->page_info.cfname, fmode, &ncdev->page_info.cfile,
# 231| thread_mem, thread_mem, true)) < 0 ||
# 232| (code=cdev->page_info.io_procs->fopen(cdev->page_info.bfname, fmode, &ncdev->page_info.bfile,
Error: CLANG_WARNING: [#def573]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:232:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 230| if ((code=cdev->page_info.io_procs->fopen(cdev->page_info.cfname, fmode, &ncdev->page_info.cfile,
# 231| thread_mem, thread_mem, true)) < 0 ||
# 232|-> (code=cdev->page_info.io_procs->fopen(cdev->page_info.bfname, fmode, &ncdev->page_info.bfile,
# 233| thread_mem, thread_mem, false)) < 0)
# 234| goto out_cleanup;
Error: CLANG_WARNING: [#def574]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:271:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 269| clist_free_icc_table(cdev->icc_table, cdev->memory);
# 270| cdev->icc_table = NULL;
# 271|-> if ((code = clist_read_icctable((gx_device_clist_reader *)ncdev)) < 0)
# 272| goto out_cleanup;
# 273| }
Error: CLANG_WARNING: [#def575]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclthrd.c:276:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 274| /* Similarly for the color_usage_array, when the foreground device switches to */
# 275| /* writer mode, the foreground's array will be freed. */
# 276|-> if ((code = clist_read_color_usage_array(ncrdev)) < 0)
# 277| goto out_cleanup;
# 278| } else {
Error: CPPCHECK_WARNING: [#def576]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def577]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c:372:9: warning[core.NullDereference]: Access to field 'tail' results in a dereference of a null pointer (loaded from variable 'pcl')
# 370| if_debug2m('L', cldev->memory, "[L] id:%ld+%ld",
# 371| pcl->tail->id, (long)pcl->tail->size);
# 372|-> pcl->tail->size += size;
# 373| } else {
# 374| /* Skip to an appropriate alignment boundary. */
Error: CLANG_WARNING: [#def578]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c:372:25: warning[core.NullDereference]: Access to field 'size' results in a dereference of a null pointer (loaded from field 'tail')
# 370| if_debug2m('L', cldev->memory, "[L] id:%ld+%ld",
# 371| pcl->tail->id, (long)pcl->tail->size);
# 372|-> pcl->tail->size += size;
# 373| } else {
# 374| /* Skip to an appropriate alignment boundary. */
Error: CLANG_WARNING: [#def579]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c:765:5: warning[core.NullDereference]: Array access results in a null pointer dereference
# 763| pcls->tile_phase.x = px;
# 764| pcls->tile_phase.y = py;
# 765|-> cmd_putxy(pcls->tile_phase, &dp);
# 766| return 0;
# 767| }
Error: CLANG_WARNING: [#def580]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c:795:5: warning[core.NullDereference]: Array access results in a null pointer dereference
# 793| pcls->screen_phase[color_select].x = px;
# 794| pcls->screen_phase[color_select].y = py;
# 795|-> cmd_putxy(pcls->screen_phase[color_select], &dp);
# 796| return 0;
# 797| }
Error: CLANG_WARNING: [#def581]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxclutil.c:898:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 896| if_debug1m('l', cldev->memory, "[l]put_params, length=%d\n", param_length);
# 897| dp += 2;
# 898|-> memcpy(dp, ¶m_length, sizeof(unsigned));
# 899| dp += sizeof(unsigned);
# 900| if (param_length > sizeof(local_buf)) {
Error: CPPCHECK_WARNING: [#def582]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def583]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1278:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1276| /* Sigh, frac to full 16 bit. Need to clean this up */
# 1277| for (k = 0; k < 4; k++) {
# 1278|-> psrc[k] = frac2cv(cm_comps[k]);
# 1279| }
# 1280|
Error: CLANG_WARNING: [#def584]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1384:29: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1382| if (additive)
# 1383| for (i = 0; i < ncomps; i++)
# 1384|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1385| cm_comps[i], effective_transfer[i]);
# 1386| else
Error: CLANG_WARNING: [#def585]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1384:31: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1382| if (additive)
# 1383| for (i = 0; i < ncomps; i++)
# 1384|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1385| cm_comps[i], effective_transfer[i]);
# 1386| else
Error: CLANG_WARNING: [#def586]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1389:39: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
# 1387| for (i = 0; i < ncomps; i++)
# 1388| cm_comps[i] = frac_1 - gx_map_color_frac(pgs,
# 1389|-> (frac)(frac_1 - cm_comps[i]), effective_transfer[i]);
# 1390| }
# 1391|
Error: CLANG_WARNING: [#def587]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1463:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1461| if (pgs->effective_transfer_non_identity_count == 0)
# 1462| for (i = 0; i < ncomps; i++)
# 1463|-> cv[i] = frac2cv(cm_comps[i]);
# 1464| else if (additive)
# 1465| for (i = 0; i < ncomps; i++) {
Error: CLANG_WARNING: [#def588]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1466:25: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1464| else if (additive)
# 1465| for (i = 0; i < ncomps; i++) {
# 1466|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1467| cm_comps[i], effective_transfer[i]);
# 1468| cv[i] = frac2cv(cm_comps[i]);
Error: CLANG_WARNING: [#def589]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1466:27: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1464| else if (additive)
# 1465| for (i = 0; i < ncomps; i++) {
# 1466|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1467| cm_comps[i], effective_transfer[i]);
# 1468| cv[i] = frac2cv(cm_comps[i]);
Error: CLANG_WARNING: [#def590]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1473:39: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
# 1471| for (i = 0; i < ncomps; i++) {
# 1472| cm_comps[i] = frac_1 - gx_map_color_frac(pgs,
# 1473|-> (frac)(frac_1 - cm_comps[i]), effective_transfer[i]);
# 1474| cv[i] = frac2cv(cm_comps[i]);
# 1475| }
Error: CLANG_WARNING: [#def591]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1650:46: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1648| if (pgs->effective_transfer_non_identity_count == 0)
# 1649| for (i = 0; i < ncomps; i++)
# 1650|-> pdc->colors.devn.values[i] = frac2cv(cm_comps[i]);
# 1651| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1652| for (i = 0; i < ncomps; i++)
Error: CLANG_WARNING: [#def592]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1653:46: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1651| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1652| for (i = 0; i < ncomps; i++)
# 1653|-> pdc->colors.devn.values[i] = frac2cv(gx_map_color_frac(pgs,
# 1654| cm_comps[i], effective_transfer[i]));
# 1655| else
Error: CLANG_WARNING: [#def593]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1653:54: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1651| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1652| for (i = 0; i < ncomps; i++)
# 1653|-> pdc->colors.devn.values[i] = frac2cv(gx_map_color_frac(pgs,
# 1654| cm_comps[i], effective_transfer[i]));
# 1655| else
Error: CLANG_WARNING: [#def594]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1658:43: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
# 1656| for (i = 0; i < ncomps; i++)
# 1657| pdc->colors.devn.values[i] = frac2cv(frac_1 - gx_map_color_frac(pgs,
# 1658|-> (frac)(frac_1 - cm_comps[i]), effective_transfer[i]));
# 1659| pdc->type = gx_dc_type_devn;
# 1660|
Error: CLANG_WARNING: [#def595]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1676:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1674| if (pgs->effective_transfer_non_identity_count == 0)
# 1675| for (i = 0; i < ncomps; i++)
# 1676|-> cv[i] = frac2cv(cm_comps[i]);
# 1677| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1678| for (i = 0; i < ncomps; i++) {
Error: CLANG_WARNING: [#def596]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1679:25: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1677| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1678| for (i = 0; i < ncomps; i++) {
# 1679|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1680| cm_comps[i], effective_transfer[i]);
# 1681| cv[i] = frac2cv(cm_comps[i]);
Error: CLANG_WARNING: [#def597]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1679:27: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1677| else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
# 1678| for (i = 0; i < ncomps; i++) {
# 1679|-> cm_comps[i] = gx_map_color_frac(pgs,
# 1680| cm_comps[i], effective_transfer[i]);
# 1681| cv[i] = frac2cv(cm_comps[i]);
Error: CLANG_WARNING: [#def598]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:1686:43: warning[core.UndefinedBinaryOperatorResult]: The right operand of '-' is a garbage value
# 1684| for (i = 0; i < ncomps; i++) {
# 1685| cm_comps[i] = frac_1 - gx_map_color_frac(pgs,
# 1686|-> (frac)(frac_1 - cm_comps[i]), effective_transfer[i]);
# 1687| cv[i] = frac2cv(cm_comps[i]);
# 1688| }
Error: CPPCHECK_WARNING (CWE-457): [#def599]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:2402: error[legacyUninitvar]: Uninitialized variable: cv_frac[i]
# 2400| which does not take a frac value... */
# 2401| for (i = 0; i < ncomps; i++) {
# 2402|-> color_val[i] = frac2cv(cv_frac[i]);
# 2403| }
# 2404| color = dev_proc(dev, encode_color)(dev, &(color_val[0]));
Error: CLANG_WARNING: [#def600]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcmap.c:2402:28: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 2400| which does not take a frac value... */
# 2401| for (i = 0; i < ncomps; i++) {
# 2402|-> color_val[i] = frac2cv(cv_frac[i]);
# 2403| }
# 2404| color = dev_proc(dev, encode_color)(dev, &(color_val[0]));
Error: CPPCHECK_WARNING: [#def601]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def602]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:107: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 105| 0, /* next */
# 106| 0, /* prev */
# 107|-> min_int, /* ymin */
# 108| max_int, /* ymax */
# 109| 0, /* xmin */
Error: CPPCHECK_WARNING (CWE-758): [#def603]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:108: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 106| 0, /* prev */
# 107| min_int, /* ymin */
# 108|-> max_int, /* ymax */
# 109| 0, /* xmin */
# 110| 0, /* xmax */
Error: CLANG_WARNING: [#def604]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:577:9: warning[deadcode.DeadStores]: Value stored to 'rlist' is never read
# 575| }
# 576| rc_decrement(rlist, "gx_cpath_from_rectangle");
# 577|-> rlist = pcpath->rect_list;
# 578| }
# 579| cpath_init_rectangle(pcpath, pbox);
Error: CPPCHECK_WARNING (CWE-758): [#def605]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:807: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 805| pr->v = (s >= 0 ? pr->v << s : pr->v >> -s)
# 806|
# 807|-> SCALE_V(xmin, log2_scale_x);
# 808| SCALE_V(xmax, log2_scale_x);
# 809| SCALE_V(ymin, log2_scale_y);
Error: CPPCHECK_WARNING (CWE-758): [#def606]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:808: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 806|
# 807| SCALE_V(xmin, log2_scale_x);
# 808|-> SCALE_V(xmax, log2_scale_x);
# 809| SCALE_V(ymin, log2_scale_y);
# 810| SCALE_V(ymax, log2_scale_y);
Error: CPPCHECK_WARNING (CWE-758): [#def607]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:809: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 807| SCALE_V(xmin, log2_scale_x);
# 808| SCALE_V(xmax, log2_scale_x);
# 809|-> SCALE_V(ymin, log2_scale_y);
# 810| SCALE_V(ymax, log2_scale_y);
# 811| #undef SCALE_V
Error: CPPCHECK_WARNING (CWE-758): [#def608]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:810: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 808| SCALE_V(xmax, log2_scale_x);
# 809| SCALE_V(ymin, log2_scale_y);
# 810|-> SCALE_V(ymax, log2_scale_y);
# 811| #undef SCALE_V
# 812| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def609]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c: scope_hint: In function ‘gx_cpath_enum_next.part.0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:963:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstext.h:27: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxtext.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:37: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:487:9: note: in expansion of macro ‘gx_path_init_local’
# 961| left: /* Trace upward along a left edge. */
# 962| /* We're at the lower left corner of rp. */
# 963|-> rp->to_visit &= ~visit_left;
# 964| /* Look for an adjacent rectangle above rp. */
# 965| for (look = rp;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def610]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:1009:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rp’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcpath.c:487:9: note: in expansion of macro ‘gx_path_init_local’
# 1007| right: /* Trace downward along a right edge. */
# 1008| /* We're at the upper right corner of rp. */
# 1009|-> rp->to_visit &= ~visit_right;
# 1010| /* Look for an adjacent rectangle below rp. */
# 1011| for (look = rp;
Error: CLANG_WARNING: [#def611]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxctable.c:38:9: warning[deadcode.DeadStores]: Value stored to 'table' is never read
# 36|
# 37| if (pclt->n > 3) {
# 38|-> table += fixed2int_var_rounded(pi[0]) * pdim[1];
# 39| ++pi, ++pdim;
# 40| } {
Error: CPPCHECK_WARNING: [#def612]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdcolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def613]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:32: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c: scope_hint: In function ‘image_render_interpolate_landscape’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdcolor.h:321:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc.type’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdcolor.h:323:3: note: in expansion of macro ‘gx_device_color_fill_rectangle’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2450:37: note: in expansion of macro ‘gx_fill_rectangle_device_rop’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:30: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:834:28: note: in definition of macro ‘dev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdcolor.h:323:3: note: in expansion of macro ‘gx_device_color_fill_rectangle’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2450:37: note: in expansion of macro ‘gx_fill_rectangle_device_rop’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdcolor.h:323:3: note: in expansion of macro ‘gx_device_color_fill_rectangle’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2450:37: note: in expansion of macro ‘gx_fill_rectangle_device_rop’
# 319| /* Fill a rectangle with a color. */
# 320| #define gx_device_color_fill_rectangle(pdevc, x, y, w, h, dev, lop, source)\
# 321|-> (*(pdevc)->type->fill_rectangle)(pdevc, x, y, w, h, dev, lop, source)
# 322| #define gx_fill_rectangle_device_rop(x, y, w, h, pdevc, dev, lop)\
# 323| gx_device_color_fill_rectangle(pdevc, x, y, w, h, dev, lop, NULL)
Error: CPPCHECK_WARNING: [#def614]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevndi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def615]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdhtserial.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def616]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdownscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def617]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdownscale.c:791:16: warning[deadcode.DeadStores]: Value stored to 'errors' during its initialization is never read
# 789| int awidth = ds->awidth;
# 790| int factor = ds->factor;
# 791|-> int *errors = ds->errors;
# 792| const int threshold = factor*factor*128;
# 793| const int max_value = factor*factor*255;
Error: CLANG_WARNING: [#def618]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevddrw.c:339: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdtfill.h:177:28: warning[deadcode.DeadStores]: Value stored to 'cindex' during its initialization is never read
# 175| trap_gradient lg, rg, xg;
# 176| # else
# 177|-> gx_color_index cindex = pdevc->colors.pure;
# 178| dev_proc_fill_rectangle((*fill_rect)) =
# 179| dev_proc(dev, fill_rectangle);
Error: CPPCHECK_WARNING (CWE-758): [#def619]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdtfill.h:270: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 268| } else {
# 269| compute_dx(&l, dxl, ysl);
# 270|-> fxl = YMULT_QUO(ysl, l);
# 271| l.x += fxl;
# 272| }
Error: CPPCHECK_WARNING (CWE-758): [#def620]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdtfill.h:299: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 297| r.x += fxl;
# 298| else
# 299|-> r.x += YMULT_QUO(ysr, r);
# 300| } else {
# 301| compute_dx(&r, dxr, ysr);
Error: CPPCHECK_WARNING (CWE-758): [#def621]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdtfill.h:302: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 300| } else {
# 301| compute_dx(&r, dxr, ysr);
# 302|-> r.x += YMULT_QUO(ysr, r);
# 303| }
# 304| /* Compute one line's worth of dx/dy. */
Error: CPPCHECK_WARNING: [#def622]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def623]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:120: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 118| y += olh->y0;
# 119|
# 120|-> if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
# 121| || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
# 122| I->gs_error = gs_error_undefinedresult;
Error: CPPCHECK_WARNING (CWE-758): [#def624]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:121: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 119|
# 120| if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
# 121|-> || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
# 122| I->gs_error = gs_error_undefinedresult;
# 123| }
Error: CPPCHECK_WARNING (CWE-758): [#def625]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:155: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 153| y += olh->y0;
# 154|
# 155|-> if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
# 156| || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
# 157| I->gs_error = gs_error_undefinedresult;
Error: CPPCHECK_WARNING (CWE-758): [#def626]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:156: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 154|
# 155| if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
# 156|-> || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
# 157| I->gs_error = gs_error_undefinedresult;
# 158| }
Error: CPPCHECK_WARNING (CWE-758): [#def627]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:206: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 204| y2 += olh->y0;
# 205|
# 206|-> if (x0 > (int64_t) max_coord_fixed || x0 < (int64_t) min_coord_fixed
# 207| || y0 > (int64_t) max_coord_fixed || y0 < (int64_t) min_coord_fixed
# 208| || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
Error: CPPCHECK_WARNING (CWE-758): [#def628]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:207: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 205|
# 206| if (x0 > (int64_t) max_coord_fixed || x0 < (int64_t) min_coord_fixed
# 207|-> || y0 > (int64_t) max_coord_fixed || y0 < (int64_t) min_coord_fixed
# 208| || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
# 209| || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
Error: CPPCHECK_WARNING (CWE-758): [#def629]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:208: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 206| if (x0 > (int64_t) max_coord_fixed || x0 < (int64_t) min_coord_fixed
# 207| || y0 > (int64_t) max_coord_fixed || y0 < (int64_t) min_coord_fixed
# 208|-> || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
# 209| || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
# 210| || x2 > (int64_t) max_coord_fixed || x2 < (int64_t) min_coord_fixed
Error: CPPCHECK_WARNING (CWE-758): [#def630]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:209: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 207| || y0 > (int64_t) max_coord_fixed || y0 < (int64_t) min_coord_fixed
# 208| || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
# 209|-> || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
# 210| || x2 > (int64_t) max_coord_fixed || x2 < (int64_t) min_coord_fixed
# 211| || y2 > (int64_t) max_coord_fixed || y2 < (int64_t) min_coord_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def631]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:210: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 208| || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
# 209| || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
# 210|-> || x2 > (int64_t) max_coord_fixed || x2 < (int64_t) min_coord_fixed
# 211| || y2 > (int64_t) max_coord_fixed || y2 < (int64_t) min_coord_fixed)
# 212| {
Error: CPPCHECK_WARNING (CWE-758): [#def632]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:211: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 209| || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
# 210| || x2 > (int64_t) max_coord_fixed || x2 < (int64_t) min_coord_fixed
# 211|-> || y2 > (int64_t) max_coord_fixed || y2 < (int64_t) min_coord_fixed)
# 212| {
# 213| I->gs_error = gs_error_undefinedresult;
Error: CLANG_WARNING: [#def633]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:501:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 499| I->ff.is_mtx_skipped = (gs_fapi_get_metrics_count(&I->ff) != 0);
# 500| I->ff.subfont = 0;
# 501|-> if ((code =
# 502| gs_fapi_renderer_retcode(mem, I,
# 503| I->get_scaled_font(I, &I->ff,
Error: CLANG_WARNING: [#def634]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:513:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 511| pbfont1->FAPI_font_data = I->ff.server_font_data; /* Save it back to GS font. */
# 512| /* Try to do something with the descendant font to ensure that it's working : */
# 513|-> if ((code =
# 514| gs_fapi_renderer_retcode(mem, I,
# 515| I->get_font_bbox(I, &I->ff,
Error: CPPCHECK_WARNING (CWE-758): [#def635]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfapi.c:611: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 609| if ((code = add_closepath(&path_interface)) < 0)
# 610| goto done;
# 611|-> code = gx_path_copy(&path1, path);
# 612| done:
# 613| code = code >= 0 || code == gs_error_undefinedresult ? 0 : code;
Error: CPPCHECK_WARNING: [#def636]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def637]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:266:13: warning[core.NullDereference]: Access to field 'last' results in a dereference of a null pointer (loaded from variable 'psub')
# 264| psub = (subpath *) psub->last->next
# 265| )
# 266|-> if (psub->last == (segment *) & psub->closer) {
# 267| segment *prev = psub->closer.prev, *next = psub->closer.next;
# 268|
Error: CPPCHECK_WARNING (CWE-758): [#def638]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:519: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 517| }
# 518| code = (*fill_loop)
# 519|-> (&lst, (max_fill_band == 0 ? NO_BAND_MASK : int2fixed(-max_fill_band)));
# 520| if (lst.windings != NULL && lst.windings != lst.local_windings)
# 521| gs_free_object(pdev->memory, lst.windings, "gx_general_fill_path");
Error: CLANG_WARNING: [#def639]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:750:5: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 748| active_line *yp = ll->y_line;
# 749| active_line *nyp;
# 750|-> fixed y_start = alp->start.y;
# 751|
# 752| if (yp == 0) {
Error: CPPCHECK_WARNING (CWE-758): [#def640]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:1145: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1143| int code;
# 1144|
# 1145|-> ll->y_break = max_fixed;
# 1146|
# 1147| for (;psub; psub = (subpath *)psub->last->next) {
Error: CPPCHECK_WARNING (CWE-758): [#def641]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:1202: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1200| alp->diff.y = alp->end.y - alp->start.y;
# 1201| SET_NUM_ADJUST(alp);
# 1202|-> (alp)->y_fast_max = MAX_MINUS_NUM_ADJUST(alp) /
# 1203| ((alp->diff.x >= 0 ? alp->diff.x : -alp->diff.x) | 1) + alp->start.y;
# 1204| return 0;
Error: CLANG_WARNING: [#def642]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:1257:37: warning[core.NullDereference]: Dereference of null pointer
# 1255| } else {
# 1256| gx_flattened_iterator__init_line(&alp->fi,
# 1257|-> s0->pt.x, s0->pt.y, s1->pt.x, s1->pt.y);
# 1258| code = step_al(alp, true);
# 1259| if (code < 0)
Error: CPPCHECK_WARNING (CWE-758): [#def643]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:1660: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1658| int code;
# 1659|
# 1660|-> for (x = min_fixed, alp = ll->x_list; alp != 0; alp = nlp) {
# 1661| bool notend = false;
# 1662| alp->x_current = alp->x_next;
Error: CPPCHECK_WARNING (CWE-758): [#def644]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:1831: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1829| intersect_al(line_list *ll, fixed y, fixed *y_top, int draw, bool all_bands)
# 1830| {
# 1831|-> fixed x = min_fixed, y1 = *y_top;
# 1832| active_line *alp, *stopx = NULL;
# 1833| active_line *endp = NULL;
Error: CPPCHECK_WARNING (CWE-758): [#def645]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:2204: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2202| pcrl->local.limit = pcr_local + num_local;
# 2203| pcrl->allocated = pcrl->freed = 0;
# 2204|-> pcrl->first.rmin = pcrl->first.rmax = MIN_COORD_VALUE;
# 2205| pcrl->first.prev = 0;
# 2206| pcrl->last.rmin = pcrl->last.rmax = MAX_COORD_VALUE;
Error: CPPCHECK_WARNING (CWE-758): [#def646]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:2206: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2204| pcrl->first.rmin = pcrl->first.rmax = MIN_COORD_VALUE;
# 2205| pcrl->first.prev = 0;
# 2206|-> pcrl->last.rmin = pcrl->last.rmax = MAX_COORD_VALUE;
# 2207| pcrl->last.next = 0;
# 2208| range_list_clear(pcrl);
Error: CPPCHECK_WARNING (CWE-758): [#def647]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:50: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 48| fixed y_frac_max =
# 49| fixed_half + fo.adjust_below;
# 50|-> int y0 = fixed2int(min_fixed);
# 51| fixed y_bot = min_fixed; /* normally int2fixed(y0) + y_frac_min */
# 52| fixed y_top = min_fixed; /* normally int2fixed(y0) + y_frac_max */
Error: CPPCHECK_WARNING (CWE-758): [#def648]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:51: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 49| fixed_half + fo.adjust_below;
# 50| int y0 = fixed2int(min_fixed);
# 51|-> fixed y_bot = min_fixed; /* normally int2fixed(y0) + y_frac_min */
# 52| fixed y_top = min_fixed; /* normally int2fixed(y0) + y_frac_max */
# 53| fixed y = min_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def649]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:52: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 50| int y0 = fixed2int(min_fixed);
# 51| fixed y_bot = min_fixed; /* normally int2fixed(y0) + y_frac_min */
# 52|-> fixed y_top = min_fixed; /* normally int2fixed(y0) + y_frac_max */
# 53| fixed y = min_fixed;
# 54| coord_range_list_t rlist;
Error: CPPCHECK_WARNING (CWE-758): [#def650]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:53: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 51| fixed y_bot = min_fixed; /* normally int2fixed(y0) + y_frac_min */
# 52| fixed y_top = min_fixed; /* normally int2fixed(y0) + y_frac_max */
# 53|-> fixed y = min_fixed;
# 54| coord_range_list_t rlist;
# 55| coord_range_t rlocal[MAX_LOCAL_ACTIVE];
Error: CPPCHECK_WARNING (CWE-758): [#def651]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:62: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 60| range_list_init(&rlist, rlocal, countof(rlocal), ll->memory);
# 61| ll->x_list = 0;
# 62|-> ll->x_head.x_current = min_fixed; /* stop backward scan */
# 63| do {
# 64| active_line *alp, *nlp;
Error: CPPCHECK_WARNING (CWE-758): [#def652]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:106: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 104| /* Update active lines to y. */
# 105|
# 106|-> x = min_fixed;
# 107| for (alp = ll->x_list; alp != 0; alp = nlp) {
# 108| fixed nx;
Error: CPPCHECK_WARNING (CWE-758): [#def653]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfillsl.h:219: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 217| }
# 218| out:
# 219|-> y_min = min_fixed;
# 220| } else
# 221| y_min = y;
Error: CPPCHECK_WARNING (CWE-758): [#def654]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfilltr.h:55: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 53| y = yll->start.y; /* first Y value */
# 54| ll->x_list = 0;
# 55|-> ll->x_head.x_current = min_fixed; /* stop backward scan */
# 56| while (1) {
# 57| fixed y1;
Error: CLANG_WARNING: [#def655]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfill.c:2016: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfilltr.h:208:27: warning[deadcode.DeadStores]: Value stored to 'ybot' during its initialization is never read
# 206| code = slant_into_trapezoids__nd(ll, flp, alp, y, y1);
# 207| } else {
# 208|-> fixed ybot = max(y, fo.pbox->p.y);
# 209| fixed ytop = min(y1, fo.pbox->q.y);
# 210|
Error: CLANG_WARNING: [#def656]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfilltr.h:209:27: warning[deadcode.DeadStores]: Value stored to 'ytop' during its initialization is never read
# 207| } else {
# 208| fixed ybot = max(y, fo.pbox->p.y);
# 209|-> fixed ytop = min(y1, fo.pbox->q.y);
# 210|
# 211| if (IS_SPOTAN) {
Error: CPPCHECK_WARNING: [#def657]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def658]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c:1448: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1446| hint->g1 = hint->ag1 = g1;
# 1447| hint->aligned0 = hint->aligned1 = unaligned;
# 1448|-> hint->q0 = hint->q1 = max_int;
# 1449| hint->b0 = hint->b1 = false;
# 1450| hint->stem3_index = stem3_index;
Error: CPPCHECK_WARNING (CWE-758): [#def659]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c:1654: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1652|
# 1653| if (gx == 0 && gy == 0) {
# 1654|-> *quality = max_int;
# 1655| return false;
# 1656| }
Error: CPPCHECK_WARNING (CWE-758): [#def660]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c:1658: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1656| }
# 1657| if (vp1 >= sp1) {
# 1658|-> *quality = max_int;
# 1659| return false;
# 1660| }
Error: CPPCHECK_WARNING (CWE-758): [#def661]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c:1662: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1660| }
# 1661| if (vp1 / alpha_div > sp1 / alpha) {
# 1662|-> *quality = max_int;
# 1663| return false;
# 1664| }
Error: CPPCHECK_WARNING (CWE-758): [#def662]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn.c:2222: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2220| int end_range_pole = self->hint_range[k].end_pole;
# 2221| bool horiz = (self->hint[i].type == hstem);
# 2222|-> int quality = max_int;
# 2223|
# 2224| if (self->pole[beg_range_pole].type == closepath) {
Error: CPPCHECK_WARNING: [#def663]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhintn1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def664]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhldevc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def665]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def666]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht.c:651:9: warning[deadcode.DeadStores]: Value stored to 'size' is never read
# 649| enc_u_getw(devc.phase.y, pdata);
# 650| devc.phase.y += y0;
# 651|-> size -= pdata - pdata_start;
# 652| }
# 653|
Error: CPPCHECK_WARNING: [#def667]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht_thresh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def668]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht_thresh.c:629:9: warning[deadcode.DeadStores]: Value stored to 'ox' is never read
# 627| dda_translate(dda_ht, -fixed_epsilon); /* to match rounding in non-fast code */
# 628|
# 629|-> ox = dda_current(penum->dda.pixel0.x);
# 630| temp = gxht_dda_length(&dda_ht, penum->rect.w);
# 631| if (col_length < temp)
Error: CPPCHECK_WARNING (CWE-758): [#def669]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht_thresh.c:718: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 716| if (max_height <= 0)
# 717| return -1; /* shouldn't happen, but check so we don't div by zero */
# 718|-> if (penum->ht_stride * spp_out > max_int / max_height)
# 719| return -1; /* overflow */
# 720|
Error: CPPCHECK_WARNING (CWE-758): [#def670]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht_thresh.c:741: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 739| temp = (int) ceil((float) ((dev_width + 15.0) + 15.0)/16.0);
# 740| penum->line_size = bitmap_raster(temp * 16 * 8); /* The stride */
# 741|-> if (penum->line_size > max_int / max_height) {
# 742| gs_free_object(penum->memory, penum->ht_buffer, "gxht_thresh");
# 743| penum->ht_buffer = NULL;
Error: CLANG_WARNING: [#def671]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxht_thresh.c:1007:13: warning[deadcode.DeadStores]: Value stored to 'vdi' is never read
# 1005| * partial to get us in sync with the 1 bit devices 16 bit
# 1006| * positions. */
# 1007|-> vdi = penum->wci;
# 1008| /* Now do the haftoning into our buffer. We basically check
# 1009| first if we have enough data or are all done */
Error: CPPCHECK_WARNING: [#def672]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxhtbit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def673]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxi12bit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def674]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxi12bit.c:481:19: warning[deadcode.DeadStores]: Although the value stored to 'irun' is used in the enclosing expression, the value is never actually read from 'irun'
# 479| /* Same code as above near 'fill:' : */
# 480| int xi = irun;
# 481|-> int wi = (irun = fixed2int_var_rounded(xl)) - xi;
# 482|
# 483| if (wi < 0)
Error: CLANG_WARNING: [#def675]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxi12bit.c:598:27: warning[deadcode.DeadStores]: Value stored to 'bufend' during its initialization is never read
# 596| int irun; /* int xrun */
# 597| fixed yrun; /* y ditto */
# 598|-> const unsigned short *bufend = psrc + w;
# 599| unsigned short *run;
# 600| int code = 0;
Error: CLANG_WARNING: [#def676]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxi12bit.c:793:49: warning[core.DivideZero]: Division by zero
# 791| err:
# 792| gs_free_object(pgs->memory, (byte *)psrc_cm_start, "image_render_icc16");
# 793|-> penum->used.x = (psrc_cm - psrc_cm_initial) / spp_cm;
# 794| penum->used.y = 0;
# 795| return code;
Error: CPPCHECK_WARNING: [#def677]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def678]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:646:9: warning[deadcode.DeadStores]: Value stored to 'offset_bits' during its initialization is never read
# 644| int spp_out = dev->color_info.num_components;
# 645| int position, i, j, k;
# 646|-> int offset_bits = penum->ht_offset_bits;
# 647| int contone_stride = 0; /* Not used in landscape case */
# 648| fixed offset;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def679]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c: scope_hint: In function ‘image_render_color_thresh’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:790:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc_contone[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:470:16: note: in expansion of macro ‘gs_rethrow’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stdio_.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
# 788| /* Monochrome output case */
# 789| case 1:
# 790|-> devc_contone_gray = devc_contone[0];
# 791| switch (posture) {
# 792| /* Monochrome portrait */
Error: CLANG_WARNING: [#def680]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:796:29: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 794| if (penum->dst_width > 0) {
# 795| if (src_size == dest_width) {
# 796|-> memcpy(devc_contone_gray, psrc_cm, data_length);
# 797| } else if (src_size * 2 == dest_width) {
# 798| psrc_temp = psrc_cm;
Error: CLANG_WARNING: [#def681]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:802:62: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'psrc_temp')
# 800| devc_contone_gray+=2, psrc_temp++) {
# 801| *devc_contone_gray =
# 802|-> *(devc_contone_gray+1) = *psrc_temp;
# 803| }
# 804| } else {
Error: CLANG_WARNING: [#def682]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:811:60: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'psrc_temp')
# 809| xn = fixed2int_var_rounded(dda_current(dda_ht));
# 810| while (xr < xn) {
# 811|-> *devc_contone_gray++ = *psrc_temp;
# 812| xr++;
# 813| } /* at loop exit xn will be >= xr */
Error: CLANG_WARNING: [#def683]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:825:56: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'psrc_temp')
# 823| xn = fixed2int_var_rounded(dda_current(dda_ht));
# 824| while (xr > xn) {
# 825|-> *devc_contone_gray-- = *psrc_temp;
# 826| xr--;
# 827| } /* at loop exit xn will be >= xr */
Error: GCC_ANALYZER_WARNING (CWE-457): [#def684]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:903:63: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘psrc_plane[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:470:16: note: in expansion of macro ‘gs_rethrow’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
# 901| if (penum->dst_width > 0) {
# 902| if (src_size == dest_width) {
# 903|-> memcpy(devc_contone[0], psrc_plane[0], data_length);
# 904| memcpy(devc_contone[1], psrc_plane[1], data_length);
# 905| memcpy(devc_contone[2], psrc_plane[2], data_length);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def685]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:910:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘psrc_plane[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:470:16: note: in expansion of macro ‘gs_rethrow’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
# 908| for (k = 0; k < data_length; k+=2) {
# 909| *(devc_contone[0]) = *(devc_contone[0]+1) =
# 910|-> *psrc_plane[0]++;
# 911| *(devc_contone[1]) = *(devc_contone[1]+1) =
# 912| *psrc_plane[1]++;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def686]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:928:71: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘psrc_plane[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:470:16: note: in expansion of macro ‘gs_rethrow’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:43: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gstrans.h:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxgstate.h:33: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzstate.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:29: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:251:23: note: in expansion of macro ‘dda_state_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:925:33: note: in expansion of macro ‘dda_next’
# 926| xn = fixed2int_var_rounded(dda_current(dda_ht));
# 927| while (xr < xn) {
# 928|-> *(devc_contone[0])++ = (psrc_plane[0])[j];
# 929| *(devc_contone[1])++ = (psrc_plane[1])[j];
# 930| *(devc_contone[2])++ = (psrc_plane[2])[j];
Error: GCC_ANALYZER_WARNING (CWE-457): [#def687]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:940:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc_contone[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:470:16: note: in expansion of macro ‘gs_rethrow’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
# 938| /* CMYK case, backwards */
# 939| /* Move to the other end and we will decrement */
# 940|-> devc_contone[0] += (data_length - 1);
# 941| devc_contone[1] += (data_length - 1);
# 942| devc_contone[2] += (data_length - 1);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def688]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:973:80: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘psrc_plane[j]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:251:23: note: in expansion of macro ‘dda_state_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:969:29: note: in expansion of macro ‘dda_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:251:23: note: in expansion of macro ‘dda_state_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:969:29: note: in expansion of macro ‘dda_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:251:23: note: in expansion of macro ‘dda_state_next’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:969:29: note: in expansion of macro ‘dda_next’
# 971| while (xr > xn) {
# 972| for (j = 0; j < spp_out; j++)
# 973|-> *(devc_contone[j] + position) = (psrc_plane[j])[i];
# 974| position -= LAND_BITS;
# 975| xr--;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def689]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:986:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devc_contone[k]’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:104:31: note: in definition of macro ‘arith_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:89:36: note: in expansion of macro ‘_fixed_rshift’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:112:36: note: in expansion of macro ‘fixed2int_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:10: note: in expansion of macro ‘fixed2int_var_rounded’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdda.h:235:26: note: in expansion of macro ‘dda_state_current’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:781:32: note: in expansion of macro ‘dda_current’
# 984| /* Apply initial offset */
# 985| for (k = 0; k < spp_out; k++)
# 986|-> devc_contone[k] = devc_contone[k] + position;
# 987| if (src_size == dest_height) {
# 988| for (k = 0; k < data_length; k++) {
Error: CLANG_WARNING: [#def690]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:1096:80: warning[core.DivideZero]: Division by zero
# 1094| if (code < 0) {
# 1095| /* Save position if error, in case we resume. */
# 1096|-> penum_orig->used.x = (data.u.process_data.buffer[0] - psrc_cm_initial) / spp_cm;
# 1097| penum_orig->used.y = 0;
# 1098| }
Error: CLANG_WARNING: [#def691]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:1322:27: warning[deadcode.DeadStores]: Although the value stored to 'irun' is used in the enclosing expression, the value is never actually read from 'irun'
# 1320| { /* Rectangle */
# 1321| int xi = irun;
# 1322|-> int wi = (irun = fixed2int_var_rounded(xprev)) - xi;
# 1323|
# 1324| if (wi < 0)
Error: CLANG_WARNING: [#def692]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxicolor.c:1334:27: warning[deadcode.DeadStores]: Although the value stored to 'irun' is used in the enclosing expression, the value is never actually read from 'irun'
# 1332| { /* 90 degree rotated rectangle */
# 1333| int yi = irun;
# 1334|-> int hi = (irun = fixed2int_var_rounded(yprev)) - yi;
# 1335|
# 1336| if (hi < 0)
Error: CPPCHECK_WARNING: [#def693]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxidata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def694]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxidata.c:101: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 99| /* Bump DDA's if it doesn't cause overflow */
# 100| penum->cur.x = dda_current(penum->dda.row.x);
# 101|-> if (max_int - any_abs(penum->dda.row.x.step.dQ) > any_abs(penum->cur.x))
# 102| dda_next(penum->dda.row.x);
# 103| penum->cur.y = dda_current(penum->dda.row.y);
Error: CPPCHECK_WARNING (CWE-758): [#def695]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxidata.c:104: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 102| dda_next(penum->dda.row.x);
# 103| penum->cur.y = dda_current(penum->dda.row.y);
# 104|-> if (max_int - any_abs(penum->dda.row.y.step.dQ) > any_abs(penum->cur.y))
# 105| dda_next(penum->dda.row.y);
# 106|
Error: CLANG_WARNING: [#def696]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxidata.c:414:26: warning[core.NullDereference]: Dereference of null pointer
# 412| if (any_data_x) {
# 413| for (pi = 0, pp = planes; pi < num_planes; ++pi, ++pp) {
# 414|-> uint b = *(pp->data++);
# 415| int dx = pp->data_x;
# 416|
Error: CLANG_WARNING: [#def697]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxidata.c:427:26: warning[core.NullDereference]: Dereference of null pointer
# 425| } else {
# 426| for (pi = 0, pp = planes; pi < num_planes; ++pi, ++pp) {
# 427|-> uint b = *(pp->data++);
# 428|
# 429| w0 = (w0 << 1) | expand[b >> 4];
Error: CPPCHECK_WARNING: [#def698]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxifast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def699]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxifast.c:349: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 347| /* Extreme negative values of x_extent cause the xl0 calculation
# 348| * to explode. Workaround this here. */
# 349|-> if (x_extent < min_int + 0x100)
# 350| x_extent += 0x100;
# 351|
Error: CPPCHECK_WARNING: [#def700]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximag3x.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def701]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def702]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximage3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def703]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximage4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def704]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximdecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def705]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximdecode.c:86:18: warning[deadcode.DeadStores]: Value stored to 'this_decode' during its initialization is never read
# 84| 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0
# 85| };
# 86|-> const float *this_decode = &decode[ci * 2];
# 87| const float *map_decode; /* decoding used to */
# 88| /* construct the expansion map */
Error: CLANG_WARNING: [#def706]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximdecode.c:169:27: warning[core.DivideZero]: Division by zero
# 167| }
# 168| else if (bps <= 4) {
# 169|-> int step = 15 / ((1 << bps) - 1);
# 170| int i;
# 171|
Error: CPPCHECK_WARNING: [#def707]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def708]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c: scope_hint: In function ‘image_render_mono’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:402:21: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:35: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:401:13: note: in expansion of macro ‘decode_sample’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:927:33: note: in expansion of macro ‘IMAGE_SET_GRAY’
# 400| else {\
# 401| decode_sample(sample_value, cc, 0);\
# 402|-> code = (*remap_color)(&cc, pcs, pdevc, pgs, dev, gs_color_select_source);\
# 403| if (code < 0)\
# 404| goto err;\
Error: CLANG_WARNING: [#def709]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:1047:9: warning[deadcode.DeadStores]: Value stored to 'offset_bits' during its initialization is never read
# 1045| byte *color_cache;
# 1046| int position, k, j;
# 1047|-> int offset_bits = penum->ht_offset_bits;
# 1048| int contone_stride = 0; /* Not used in landscape case */
# 1049| fixed offset;
Error: COMPILER_WARNING (CWE-457): [#def710]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c: scope_hint: In function ‘image_render_mono_ht’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:1170:23: warning[-Wmaybe-uninitialized]: ‘devc_contone’ may be used uninitialized
# 1170 | devc_contone_gray = devc_contone[0];
# | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:1041:11: note: ‘devc_contone’ declared here
# 1041 | byte *devc_contone[GX_DEVICE_COLOR_MAX_COMPONENTS];
# | ^~~~~~~~~~~~
# 1168| xr = fixed2int_var_rounded(dda_current(dda_ht)); /* indexes in the destination (contone) */
# 1169|
# 1170|-> devc_contone_gray = devc_contone[0];
# 1171| if (penum->color_cache == NULL) {
# 1172| /* No look-up in the cache to fill the source buffer. Still need to
Error: CLANG_WARNING: [#def711]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gximono.c:1170:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1168| xr = fixed2int_var_rounded(dda_current(dda_ht)); /* indexes in the destination (contone) */
# 1169|
# 1170|-> devc_contone_gray = devc_contone[0];
# 1171| if (penum->color_cache == NULL) {
# 1172| /* No look-up in the cache to fill the source buffer. Still need to
Error: CPPCHECK_WARNING: [#def712]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def713]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:217: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 215| float v = floor(src*fixed_scale + 0.5);
# 216|
# 217|-> if (v <= min_fixed)
# 218| return min_fixed;
# 219| else if (v >= max_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def714]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:218: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 216|
# 217| if (v <= min_fixed)
# 218|-> return min_fixed;
# 219| else if (v >= max_fixed)
# 220| return max_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def715]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:219: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 217| if (v <= min_fixed)
# 218| return min_fixed;
# 219|-> else if (v >= max_fixed)
# 220| return max_fixed;
# 221| else
Error: CPPCHECK_WARNING (CWE-758): [#def716]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:220: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 218| return min_fixed;
# 219| else if (v >= max_fixed)
# 220|-> return max_fixed;
# 221| else
# 222| return (fixed)v;
Error: CLANG_WARNING: [#def717]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:234:28: warning[core.NullDereference]: Access to field 'xx' results in a dereference of a null pointer (loaded from variable 'pmat')
# 232| if (pmat == 0)
# 233| pmat = &ctm_only(pgs);
# 234|-> if (ImageMatrix->xx == pmat->xx && ImageMatrix->xy == pmat->xy &&
# 235| ImageMatrix->yx == pmat->yx && ImageMatrix->yy == pmat->yy) {
# 236| /* Process common special case separately to accept singular matrix. */
Error: CLANG_WARNING: [#def718]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:442:27: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 440| const gs_matrix *m = pgs != NULL ? &ctm_only(pgs) : NULL;
# 441| gs_int_rect irect;
# 442|-> if (m == NULL || (code = gs_matrix_invert(m, &mi)) < 0 ||
# 443| (code = gs_matrix_multiply(&mi, &pic->ImageMatrix, &mi)) < 0) {
# 444| /* Give up trying to shrink the render box, but continue processing */
Error: CLANG_WARNING: [#def719]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:443:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 441| gs_int_rect irect;
# 442| if (m == NULL || (code = gs_matrix_invert(m, &mi)) < 0 ||
# 443|-> (code = gs_matrix_multiply(&mi, &pic->ImageMatrix, &mi)) < 0) {
# 444| /* Give up trying to shrink the render box, but continue processing */
# 445| break;
Error: CLANG_WARNING: [#def720]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:1235:36: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<<' is a garbage value
# 1233| if (has_transfer) {
# 1234| for (kk = 0; kk < num_des_comp; kk++) {
# 1235|-> conc[kk] = gx_color_value_from_byte(psrc[kk]);
# 1236| }
# 1237| cmap_transfer(&(conc[0]), penum->pgs, penum->dev);
Error: CLANG_WARNING: [#def721]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxipixel.c:1467:27: warning[core.DivideZero]: Division by zero
# 1465| pmap->inverted = map_decode[0] != 0;
# 1466| } else if (bps <= 4) {
# 1467|-> int step = 15 / ((1 << bps) - 1);
# 1468| int i;
# 1469|
Error: CPPCHECK_WARNING: [#def722]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def723]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:162:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 160| /* No copy_alpha_hl_color. We're out of luck. */
# 161| return -1;
# 162|-> } else if ((code = gx_color_load(pdc1, penum->pgs, penum->dev)) < 0) {
# 163| /* Otherwise we'll need to load the color value. If this gives an
# 164| * error, we can't cope. */
Error: CLANG_WARNING: [#def724]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:1717:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1715| /* Get the device color */
# 1716| get_device_color(penum, p_cm_interp, &devc, &color, dev);
# 1717|-> if (color_is_pure(&devc)) {
# 1718| gx_color_index color = devc.colors.pure;
# 1719| int expand = 1;
Error: CLANG_WARNING: [#def725]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:1938:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1936| /* Get the device color */
# 1937| get_device_color(penum, p_cm_interp, &devc, &color, dev);
# 1938|-> if (color_is_pure(&devc)) {
# 1939| gx_color_index color = devc.colors.pure;
# 1940|
Error: CLANG_WARNING: [#def726]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2014:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2012| /* Get the device color */
# 2013| get_device_color(penum, p_cm_interp, &devc, &color, dev);
# 2014|-> if (color_is_pure(&devc)) {
# 2015| gx_color_index color = devc.colors.pure;
# 2016|
Error: CLANG_WARNING: [#def727]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2087:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2085| /* Get the device color */
# 2086| get_device_color(penum, p_cm_interp, &devc, &color, dev);
# 2087|-> if (color_is_pure(&devc)) {
# 2088| gx_color_index color = devc.colors.pure;
# 2089|
Error: CLANG_WARNING: [#def728]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2450:37: warning[core.NullDereference]: Access to field 'fill_rectangle' results in a dereference of an undefined pointer value (loaded from field 'type')
# 2448| }
# 2449| if (abs_interp_limit <= 1) {
# 2450|-> rcode = gx_fill_rectangle_device_rop(ry, x, 1, rep, &devc, dev, lop);
# 2451| if (rcode < 0)
# 2452| return rcode;
Error: CLANG_WARNING: [#def729]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2841:37: warning[core.NullDereference]: Access to field 'fill_rectangle' results in a dereference of an undefined pointer value (loaded from field 'type')
# 2839|
# 2840| if (abs_interp_limit <= 1) {
# 2841|-> rcode = gx_fill_rectangle_device_rop(ry, x, 1, rep, &devc, dev, lop);
# 2842| if (rcode < 0)
# 2843| return rcode;
Error: CLANG_WARNING: [#def730]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxiscale.c:2848:37: warning[core.NullDereference]: Access to field 'fill_rectangle' results in a dereference of an undefined pointer value (loaded from field 'type')
# 2846|
# 2847| scaled_w = interpolate_scaled_expanded_width(rep, pss);
# 2848|-> rcode = gx_fill_rectangle_device_rop(scaled_y, scaled_x, scaled_h, scaled_w,
# 2849| &devc, dev, lop);
# 2850| if (rcode < 0)
Error: CPPCHECK_WARNING: [#def731]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxmclip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def732]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxoprect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def733]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxoprect.c:320:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 318| gx_color_value dest_cvals[GX_DEVICE_COLOR_MAX_COMPONENTS];
# 319|
# 320|-> if ((code = dev_proc(tdev, decode_color)(tdev, *cp, dest_cvals)) < 0)
# 321| break;
# 322| for (j = 0, comps = drawn_comps; comps != 0; ++j, comps >>= 1) {
Error: CPPCHECK_WARNING: [#def734]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxp1fill.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def735]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxp1fill.c:274: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 272| yoff = 0;
# 273| /* Check for overflow */
# 274|-> if (h > 0 && max_int - h < y)
# 275| h = max_int - y;
# 276| if (w > 0 && max_int - w < x)
Error: CPPCHECK_WARNING (CWE-758): [#def736]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxp1fill.c:275: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 273| /* Check for overflow */
# 274| if (h > 0 && max_int - h < y)
# 275|-> h = max_int - y;
# 276| if (w > 0 && max_int - w < x)
# 277| w = max_int - x;
Error: CPPCHECK_WARNING (CWE-758): [#def737]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxp1fill.c:276: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 274| if (h > 0 && max_int - h < y)
# 275| h = max_int - y;
# 276|-> if (w > 0 && max_int - w < x)
# 277| w = max_int - x;
# 278| if (x + w > x1)
Error: CPPCHECK_WARNING (CWE-758): [#def738]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxp1fill.c:277: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 275| h = max_int - y;
# 276| if (w > 0 && max_int - w < x)
# 277|-> w = max_int - x;
# 278| if (x + w > x1)
# 279| w = x1 - x;
Error: CPPCHECK_WARNING: [#def739]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def740]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c:114: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 112| ppath->bbox_accurate = 0;
# 113| ppath->last_charpath_segment = 0;
# 114|-> ppath->bbox.p.x = max_fixed;
# 115| ppath->bbox.p.y = max_fixed;
# 116| ppath->bbox.q.x = min_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def741]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c:115: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 113| ppath->last_charpath_segment = 0;
# 114| ppath->bbox.p.x = max_fixed;
# 115|-> ppath->bbox.p.y = max_fixed;
# 116| ppath->bbox.q.x = min_fixed;
# 117| ppath->bbox.q.y = min_fixed;
Error: CPPCHECK_WARNING (CWE-758): [#def742]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c:116: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 114| ppath->bbox.p.x = max_fixed;
# 115| ppath->bbox.p.y = max_fixed;
# 116|-> ppath->bbox.q.x = min_fixed;
# 117| ppath->bbox.q.y = min_fixed;
# 118| }
Error: CPPCHECK_WARNING (CWE-758): [#def743]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c:117: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 115| ppath->bbox.p.y = max_fixed;
# 116| ppath->bbox.q.x = min_fixed;
# 117|-> ppath->bbox.q.y = min_fixed;
# 118| }
# 119|
Error: CPPCHECK_WARNING (CWE-758): [#def744]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath.c:1015: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1013|
# 1014| gx_path_init_local(&path_new, ppath->memory);
# 1015|-> code = gx_path_copy(ppath, &path_new);
# 1016| if (code < 0) {
# 1017| gx_path_free(&path_new, "path_alloc_copy error");
Error: CPPCHECK_WARNING: [#def745]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def746]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath2.c:348: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 346|
# 347| if (sx > 0) {
# 348|-> v = (max_int - int2fixed(1000)) >> sx; /* arbitrary */
# 349| if (pt->x > v)
# 350| pt->x = v;
Error: CPPCHECK_WARNING (CWE-758): [#def747]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpath2.c:358: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 356|
# 357| if (sy > 0) {
# 358|-> v = (max_int - int2fixed(1000)) >> sy;
# 359| if (pt->y > v)
# 360| pt->y = v;
Error: CPPCHECK_WARNING: [#def748]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def749]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcmap.c:845: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 843| tiles->id = gx_no_bitmap_id;
# 844| /* Clear the pointers to pacify the GC. */
# 845|-> uid_set_invalid(&tiles->uid);
# 846| tiles->bits_used = 0;
# 847| #ifdef PACIFY_VALGRIND
Error: CPPCHECK_WARNING: [#def750]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def751]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:126: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 124| const curve_segment *pc = (const curve_segment *)pseg;
# 125|
# 126|-> if (fixed_flatness == max_fixed) { /* don't flatten */
# 127| if (options & pco_monotonize)
# 128| code = gx_curve_monotonize(ppath, pc);
Error: CLANG_WARNING: [#def752]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:493:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 491| int w;
# 492| double v = t[i]; t[i] = t[j]; t[j] = v;
# 493|-> w = c[i]; c[i] = c[j]; c[j] = w;
# 494| }
# 495| /* Drop roots near zero : */
Error: CLANG_WARNING: [#def753]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:493:32: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 491| int w;
# 492| double v = t[i]; t[i] = t[j]; t[j] = v;
# 493|-> w = c[i]; c[i] = c[j]; c[j] = w;
# 494| }
# 495| /* Drop roots near zero : */
Error: CLANG_WARNING: [#def754]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:505:18: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 503| if (any_abs(t[i] - t[j]) < delta) {
# 504| t[j] = (t[j] + t[i]) / 2; /* Unlikely 3 roots are close. */
# 505|-> c[j] |= c[i];
# 506| } else {
# 507| j++;
Error: CLANG_WARNING: [#def755]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:505:18: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 503| if (any_abs(t[i] - t[j]) < delta) {
# 504| t[j] = (t[j] + t[i]) / 2; /* Unlikely 3 roots are close. */
# 505|-> c[j] |= c[i];
# 506| } else {
# 507| j++;
Error: CLANG_WARNING: [#def756]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:509:18: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 507| j++;
# 508| t[j] = t[i];
# 509|-> c[j] = c[i];
# 510| }
# 511| n = j + 1;
Error: CLANG_WARNING: [#def757]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:528:28: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 526| double x = x0 * omt3 + 3 * pc->p1.x * omt2 * ti + 3 * pc->p2.x * omt * t2 + pc->pt.x * t3;
# 527| double y = y0 * omt3 + 3 * pc->p1.y * omt2 * ti + 3 * pc->p2.y * omt * t2 + pc->pt.y * t3;
# 528|-> double ddx = (c[i] & 1 ? 0 : ax * t2 + bx * ti + cx); /* Suppress noise. */
# 529| double ddy = (c[i] & 2 ? 0 : ay * t2 + by * ti + cy);
# 530| fixed dx = (fixed)(ddx + 0.5);
Error: CLANG_WARNING: [#def758]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpcopy.c:784:35: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'sp0last')
# 782| for (; sp0 != NULL; sp0 = (subpath *)sp0->last->next) {
# 783| segment *sp0last = sp0->last;
# 784|-> subpath *sp1 = (subpath *)sp0last->next, *spnext;
# 785| subpath *sp1p = sp0;
# 786| int count;
Error: CPPCHECK_WARNING: [#def759]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpdash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def760]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpdash.c:43: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 41|
# 42| if (dash->pattern_size == 0)
# 43|-> return gx_path_copy(ppath_old, ppath);
# 44| for (psub = ppath_old->first_subpath; psub != 0 && code >= 0;
# 45| psub = (const subpath *)psub->last->next
Error: CLANG_WARNING: [#def761]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpdash.c:249:21: warning[deadcode.DeadStores]: Value stored to 'left' is never read
# 247| pseg->next->type == s_gap) {
# 248| elt_length = elt_length1;
# 249|-> left = 0;
# 250| ink_on = true;
# 251| goto on;
Error: CLANG_WARNING: [#def762]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpdash.c:257:21: warning[deadcode.DeadStores]: Value stored to 'left' is never read
# 255| (at its end). */
# 256| if (elt_length1 == 0) {
# 257|-> left = 0;
# 258| code = gx_path_add_dash_notes(ppath, sx, sy, udx, udy,
# 259| ((notes & pseg->notes)|
Error: CPPCHECK_WARNING: [#def763]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def764]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:168: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 166| # define in_range(v) (v < max_fast && v > min_fast)
# 167| if (k > k_sample_max ||
# 168|-> !in_range(*ax) || !in_range(*ay) ||
# 169| !in_range(*bx) || !in_range(*by) ||
# 170| !in_range(*cx) || !in_range(*cy)
Error: CPPCHECK_WARNING (CWE-758): [#def765]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:169: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 167| if (k > k_sample_max ||
# 168| !in_range(*ax) || !in_range(*ay) ||
# 169|-> !in_range(*bx) || !in_range(*by) ||
# 170| !in_range(*cx) || !in_range(*cy)
# 171| )
Error: CPPCHECK_WARNING (CWE-758): [#def766]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:170: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 168| !in_range(*ax) || !in_range(*ay) ||
# 169| !in_range(*bx) || !in_range(*by) ||
# 170|-> !in_range(*cx) || !in_range(*cy)
# 171| )
# 172| return false;
Error: CLANG_WARNING: [#def767]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:222:22: warning[core.BitwiseShift]: Left shift by '2147483642' overflows the capacity of 'int'
# 220| return true;
# 221| }
# 222|-> self->rmask = (1 << k3) - 1;
# 223| self->i = (1 << k);
# 224| self->rx = self->ry = 0;
Error: CLANG_WARNING: [#def768]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:222:22: warning[core.BitwiseShift]: Right operand is negative in left shift
# 220| return true;
# 221| }
# 222|-> self->rmask = (1 << k3) - 1;
# 223| self->i = (1 << k);
# 224| self->rx = self->ry = 0;
Error: CPPCHECK_WARNING (CWE-758): [#def769]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:272: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 270| {
# 271| if (v1 > 0)
# 272|-> return (v0 < min_fixed + v1);
# 273| else if (v1 < 0)
# 274| return (v0 > max_fixed + v1);
Error: CPPCHECK_WARNING (CWE-758): [#def770]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxpflat.c:274: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 272| return (v0 < min_fixed + v1);
# 273| else if (v1 < 0)
# 274|-> return (v0 > max_fixed + v1);
# 275| return false;
# 276| }
Error: CPPCHECK_WARNING: [#def771]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def772]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:1177: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1175| row[2 * count ] = cr->right;
# 1176| } else {
# 1177|-> assert(cr->left == max_fixed && cr->right == min_fixed);
# 1178| }
# 1179| }
Error: CPPCHECK_WARNING (CWE-758): [#def773]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:1390: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1388| if (cr->d == DIRN_UNSET && (cr->y & 0xff) == 0)
# 1389| return;
# 1390|-> assert(cr->left != max_fixed && cr->right != min_fixed);
# 1391| if (iy >= 0 && iy < cr->scanlines) {
# 1392| int *row = &cr->table[cr->index[iy]];
Error: CPPCHECK_WARNING (CWE-758): [#def774]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:1429: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1427| cursor_null(cursor *cr)
# 1428| {
# 1429|-> cr->right = min_fixed;
# 1430| cr->left = max_fixed;
# 1431| cr->d = DIRN_UNSET;
Error: CPPCHECK_WARNING (CWE-758): [#def775]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:1430: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1428| {
# 1429| cr->right = min_fixed;
# 1430|-> cr->left = max_fixed;
# 1431| cr->d = DIRN_UNSET;
# 1432| }
Error: CPPCHECK_WARNING (CWE-758): [#def776]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:2126: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2124|
# 2125| if ((ey & 0xff) == 0) {
# 2126|-> cr.left = max_fixed;
# 2127| cr.right = min_fixed;
# 2128| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def777]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:2127: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 2125| if ((ey & 0xff) == 0) {
# 2126| cr.left = max_fixed;
# 2127|-> cr.right = min_fixed;
# 2128| } else {
# 2129| cr.left = cr.right = ex;
Error: CPPCHECK_WARNING (CWE-758): [#def778]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:3101: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3099| row[4 * count ] = cr->rid;
# 3100| } else {
# 3101|-> assert(cr->left == max_fixed && cr->right == min_fixed);
# 3102| }
# 3103| }
Error: CPPCHECK_WARNING (CWE-758): [#def779]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:3346: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3344| if (cr->d == DIRN_UNSET && (cr->y & 0xff) == 0)
# 3345| return;
# 3346|-> assert(cr->left != max_fixed && cr->right != min_fixed);
# 3347| if (iy >= 0 && iy < cr->scanlines) {
# 3348| int *row = &cr->table[cr->index[iy]];
Error: CPPCHECK_WARNING (CWE-758): [#def780]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:3395: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3393| cursor_null_tr(cursor_tr *cr)
# 3394| {
# 3395|-> cr->right = min_fixed;
# 3396| cr->left = max_fixed;
# 3397| cr->d = DIRN_UNSET;
Error: CPPCHECK_WARNING (CWE-758): [#def781]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:3396: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3394| {
# 3395| cr->right = min_fixed;
# 3396|-> cr->left = max_fixed;
# 3397| cr->d = DIRN_UNSET;
# 3398| }
Error: CPPCHECK_WARNING (CWE-758): [#def782]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:4111: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4109|
# 4110| if ((ey & 0xff) == 0) {
# 4111|-> cr.left = max_fixed;
# 4112| cr.right = min_fixed;
# 4113| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def783]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxscanc.c:4112: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 4110| if ((ey & 0xff) == 0) {
# 4111| cr.left = max_fixed;
# 4112|-> cr.right = min_fixed;
# 4113| } else {
# 4114| cr.left = cr.right = ex;
Error: CPPCHECK_WARNING: [#def784]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def785]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade.c:68: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 66| stream *s = cs->s = params->DataSource.data.strm;
# 67|
# 68|-> if ((s->file != 0 && s->file_limit != max_long) ||
# 69| (s->file == 0 && s->strm == 0)
# 70| )
Error: CPPCHECK_WARNING: [#def786]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def787]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:76: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 74|
# 75| gs_point_transform(x, y, (const gs_matrix *)pmat, &fpt);
# 76|-> ppt->x = clamp_coord(fpt.x);
# 77| ppt->y = clamp_coord(fpt.y);
# 78| }
Error: CPPCHECK_WARNING (CWE-758): [#def788]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:77: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 75| gs_point_transform(x, y, (const gs_matrix *)pmat, &fpt);
# 76| ppt->x = clamp_coord(fpt.x);
# 77|-> ppt->y = clamp_coord(fpt.y);
# 78| }
# 79|
Error: CLANG_WARNING: [#def789]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:2438:17: warning[deadcode.DeadStores]: Value stored to 'intersectx' is never read
# 2436| tanalpha = tan(alpha);
# 2437| intersecty = y1 + tanalpha * (r2 + (intersectx - x1));
# 2438|-> intersectx = x1 - r2;
# 2439|
# 2440| if (endy < y1 + r2) {
Error: CLANG_WARNING: [#def790]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:2571:17: warning[deadcode.DeadStores]: Value stored to 'intersectx' is never read
# 2569| tanalpha = tan(alpha);
# 2570| intersecty = y1 + tanalpha * (r2 + (x1 - intersectx));
# 2571|-> intersectx = x1 + r2;
# 2572|
# 2573| if (endy < y1 + r2) {
Error: CLANG_WARNING: [#def791]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:2704:17: warning[deadcode.DeadStores]: Value stored to 'intersectx' is never read
# 2702| tanalpha = tan(alpha);
# 2703| intersecty = y1 - tanalpha * (r2 + (x1 - intersectx));
# 2704|-> intersectx = x1 + r2;
# 2705|
# 2706| if (endy > y1 - r2) {
Error: CLANG_WARNING: [#def792]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade1.c:2835:17: warning[deadcode.DeadStores]: Value stored to 'intersectx' is never read
# 2833| tanalpha = tan(alpha);
# 2834| intersecty = y1 - tanalpha * (r2 + (intersectx - x1));
# 2835|-> intersectx = x1 - r2;
# 2836|
# 2837| if (endy > y1 - r2) {
Error: CPPCHECK_WARNING: [#def793]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def794]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:1150:17: warning[deadcode.DeadStores]: Value stored to 'ybot' is never read
# 1148| if (code < 0)
# 1149| return code;
# 1150|-> ybot = ybr;
# 1151| return dev_proc(pfs->dev, fill_trapezoid)(pfs->dev,
# 1152| &le, &renew, ybr, ytop,
Error: CLANG_WARNING: [#def795]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:1397:32: warning[core.NullDereference]: Array access (from variable 'frac_values') results in a null pointer dereference
# 1395|
# 1396| for (j = 0; j < cinfo->num_components; j++)
# 1397|-> frac_values[j] = (frac31)c->cc.paint.values[j];
# 1398| pdevc->type = &gx_dc_type_data_pure;
# 1399| }
Error: CLANG_WARNING: [#def796]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:1438:9: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 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: COMPILER_WARNING (CWE-457): [#def797]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:1438:35: warning[-Wmaybe-uninitialized]: ‘d0001’ may be used uninitialized
# 1438 | m = any_abs(c->cc.paint.values[0]) / pfs->color_domain.paint.values[0];
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c: scope_hint: In function ‘fill_quadrangle.isra.0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:3305:19: note: ‘d0001’ declared here
# 3305 | 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: CLANG_WARNING: [#def798]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:2457:16: warning[deadcode.DeadStores]: Although the value stored to 'y' is used in the enclosing expression, the value is never actually read from 'y'
# 2455| i = 2, y = s[2].y;
# 2456| if (y > s[3].y)
# 2457|-> i = 3, y = s[3].y;
# 2458| q[0] = s[(i + 0) % 4];
# 2459| q[1] = s[(i + 1) % 4];
Error: CLANG_WARNING: [#def799]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:3408:15: warning[deadcode.DeadStores]: Value stored to 'size_u' during its initialization is never read
# 3406| isn't obvious and its time consumption is invisibly small.
# 3407| */
# 3408|-> fixed size_u = max(max(any_abs(p->p[0][0]->p.x - p->p[0][1]->p.x),
# 3409| any_abs(p->p[1][0]->p.x - p->p[1][1]->p.x)),
# 3410| max(any_abs(p->p[0][0]->p.y - p->p[0][1]->p.y),
Error: CLANG_WARNING: [#def800]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxshade6.c:3412:15: warning[deadcode.DeadStores]: Value stored to 'size_v' during its initialization is never read
# 3410| max(any_abs(p->p[0][0]->p.y - p->p[0][1]->p.y),
# 3411| any_abs(p->p[1][0]->p.y - p->p[1][1]->p.y)));
# 3412|-> fixed size_v = max(max(any_abs(p->p[0][0]->p.x - p->p[1][0]->p.x),
# 3413| any_abs(p->p[0][1]->p.x - p->p[1][1]->p.x)),
# 3414| max(any_abs(p->p[0][0]->p.y - p->p[1][0]->p.y),
Error: CPPCHECK_WARNING: [#def801]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def802]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:348: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 346| gx_clip_path stroke_as_clip_path;
# 347| int code;
# 348|-> gs_fixed_rect dev_clip_rect = { {min_fixed, min_fixed}, {max_fixed, max_fixed}};
# 349|
# 350| /* We want to make a image of the stroke as a clip path, so
Error: CPPCHECK_WARNING (CWE-758): [#def803]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:598: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 596| if (gx_stroke_path_expansion(pgs, ppath, &expansion) < 0) {
# 597| /* The expansion is so large it caused a limitcheck. */
# 598|-> ibox.p.x = ibox.p.y = min_fixed;
# 599| ibox.q.x = ibox.q.y = max_fixed;
# 600| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def804]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:599: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 597| /* The expansion is so large it caused a limitcheck. */
# 598| ibox.p.x = ibox.p.y = min_fixed;
# 599|-> ibox.q.x = ibox.q.y = max_fixed;
# 600| } else {
# 601| expansion.x += pgs->fill_adjust.x;
Error: CPPCHECK_WARNING (CWE-758): [#def805]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:607: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 605| * overflow, so we need to check for this.
# 606| */
# 607|-> ibox.p.x = (ibox.p.x < min_fixed + expansion.x ? min_fixed :
# 608| ibox.p.x - expansion.x);
# 609| ibox.p.y = (ibox.p.y < min_fixed + expansion.y ? min_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def806]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:609: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 607| ibox.p.x = (ibox.p.x < min_fixed + expansion.x ? min_fixed :
# 608| ibox.p.x - expansion.x);
# 609|-> ibox.p.y = (ibox.p.y < min_fixed + expansion.y ? min_fixed :
# 610| ibox.p.y - expansion.y);
# 611| ibox.q.x = (ibox.q.x > max_fixed - expansion.x ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def807]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:611: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 609| ibox.p.y = (ibox.p.y < min_fixed + expansion.y ? min_fixed :
# 610| ibox.p.y - expansion.y);
# 611|-> ibox.q.x = (ibox.q.x > max_fixed - expansion.x ? max_fixed :
# 612| ibox.q.x + expansion.x);
# 613| ibox.q.y = (ibox.q.y > max_fixed - expansion.y ? max_fixed :
Error: CPPCHECK_WARNING (CWE-758): [#def808]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:613: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 611| ibox.q.x = (ibox.q.x > max_fixed - expansion.x ? max_fixed :
# 612| ibox.q.x + expansion.x);
# 613|-> ibox.q.y = (ibox.q.y > max_fixed - expansion.y ? max_fixed :
# 614| ibox.q.y + expansion.y);
# 615| }
Error: CLANG_WARNING: [#def809]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:795:13: warning[deadcode.DeadStores]: Value stored to 'pseg_notes' during its initialization is never read
# 793| partial_line pl, pl_prev, pl_first;
# 794| bool zero_length = true;
# 795|-> int pseg_notes = pseg->notes;
# 796|
# 797| flags = nf_all_from_arc;
Error: CLANG_WARNING: [#def810]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:1172:10: warning[deadcode.DeadStores]: Although the value stored to 'dy' is used in the enclosing expression, the value is never actually read from 'dy'
# 1170|
# 1171| /* If the line is horizontal or vertical, things are easy. */
# 1172|-> if ((dy = plp->vector.y) == 0)
# 1173| return any_abs(wy) < fixed_half;
# 1174| if ((dx = plp->vector.x) == 0)
Error: CLANG_WARNING: [#def811]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:1174:10: warning[deadcode.DeadStores]: Although the value stored to 'dx' is used in the enclosing expression, the value is never actually read from 'dx'
# 1172| if ((dy = plp->vector.y) == 0)
# 1173| return any_abs(wy) < fixed_half;
# 1174|-> if ((dx = plp->vector.x) == 0)
# 1175| return any_abs(wx) < fixed_half;
# 1176|
Error: CPPCHECK_WARNING (CWE-758): [#def812]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:1479: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1477| double ydiff = pp2->y - pp1->y;
# 1478| double f1;
# 1479|-> double max_result = any_abs(denom) * (double)max_fixed;
# 1480|
# 1481| #ifdef DEBUG
Error: CLANG_WARNING: [#def813]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxstroke.c:1718:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1716| if ((flags & nf_some_from_arc) && (!plp->thin) &&
# 1717| (nplp != NULL) && (!nplp->thin))
# 1718|-> code = join_under_pie(ppath, plp, nplp, reflected);
# 1719| return gx_path_close_subpath(ppath);
# 1720| }
Error: CPPCHECK_WARNING: [#def814]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxttfb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def815]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxtype1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def816]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def817]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:45:18: warning[deadcode.DeadStores]: Value stored to 't' during its initialization is never read
# 43| free_trap_list(gs_memory_t *mem, gx_san_trap **list)
# 44| {
# 45|-> gx_san_trap *t = *list, *t1;
# 46|
# 47| for (t = *list; t != NULL; t = t1) {
Error: CLANG_WARNING: [#def818]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:57:26: warning[deadcode.DeadStores]: Value stored to 't' during its initialization is never read
# 55| free_cont_list(gs_memory_t *mem, gx_san_trap_contact **list)
# 56| {
# 57|-> gx_san_trap_contact *t = *list, *t1;
# 58|
# 59| for (t = *list; t != NULL; t = t1) {
Error: CLANG_WARNING: [#def819]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:159:23: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from field 'next')
# 157| if (*list == t)
# 158| *list = t->next;
# 159|-> t->next->prev = t->prev;
# 160| t->prev->next = t->next;
# 161| }
Error: CPPCHECK_WARNING (CWE-758): [#def820]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:256: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 254| san_get_clipping_box(gx_device * dev, gs_fixed_rect * pbox)
# 255| {
# 256|-> pbox->p.x = min_int;
# 257| pbox->p.y = min_int;
# 258| pbox->q.x = max_int;
Error: CPPCHECK_WARNING (CWE-758): [#def821]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:257: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 255| {
# 256| pbox->p.x = min_int;
# 257|-> pbox->p.y = min_int;
# 258| pbox->q.x = max_int;
# 259| pbox->q.y = max_int;
Error: CPPCHECK_WARNING (CWE-758): [#def822]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:258: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 256| pbox->p.x = min_int;
# 257| pbox->p.y = min_int;
# 258|-> pbox->q.x = max_int;
# 259| pbox->q.y = max_int;
# 260| }
Error: CPPCHECK_WARNING (CWE-758): [#def823]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:259: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 257| pbox->p.y = min_int;
# 258| pbox->q.x = max_int;
# 259|-> pbox->q.y = max_int;
# 260| }
# 261|
Error: CPPCHECK_WARNING (CWE-758): [#def824]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:434: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 432|
# 433| if (padev->top_band != NULL && padev->top_band->ytop != ytop) {
# 434|-> code = try_unite_last_trap(padev, max_int);
# 435| if (code < 0)
# 436| return code;
Error: CLANG_WARNING: [#def825]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:543:9: warning[deadcode.DeadStores]: Value stored to 'best_width_diff' is never read
# 541| wd = any_abs(w - ave_width);
# 542| if (w > 0 && wd < best_width_diff) {
# 543|-> best_width_diff = wd;
# 544| best_trap = t;
# 545| at_top = true;
Error: CLANG_WARNING: [#def826]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gzspotan.c:688:34: warning[deadcode.DeadStores]: Value stored to 't1' during its initialization is never read
# 686| if (!t0->visited && (!k ? t0->leftmost : t0->rightmost)) {
# 687| if (is_stem_boundaries(t0, 1 << k)) {
# 688|-> gx_san_trap *t1 = t0, *tt = t0, *t = t0;
# 689| int code;
# 690|
Error: CPPCHECK_WARNING: [#def827]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/pack_ps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def828]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/pack_ps.c: scope_hint: In function ‘main’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/pack_ps.c:279:18: warning[-Wanalyzer-infinite-loop]: infinite loop
# 277|
# 278| /* Process arguments denoted with dashes. */
# 279|-> while (atarg < argc) {
# 280| if (argv[atarg][0] != '-') {
# 281| /* End of optional arguments */
Error: CPPCHECK_WARNING: [#def829]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/pagelist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def830]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ramfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def831]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ramfs.c: scope_hint: In function ‘resize’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ramfs.c:162:19: warning[-Wanalyzer-infinite-loop]: infinite loop
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ramfs.c:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:135:12: note: in definition of macro ‘gs_free_object’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ramfs.c:163:13: note: in expansion of macro ‘gs_free_object’
# 160| /* don't bother shrinking the block array */
# 161| file->fs->blocksfree += (file->blocks-newblocks);
# 162|-> while(file->blocks > newblocks) {
# 163| gs_free_object(file->fs->memory, file->data[--file->blocks], "ramfs resize");
# 164| }
Error: CPPCHECK_WARNING: [#def832]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sa85d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def833]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/saes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def834]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sbcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def835]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/scfd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def836]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/scfe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def837]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sdcparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def838]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sdcparam.c:152: warning[uninitvar]: Uninitialized variable: comp_info
# 150|
# 151| for (i = 0; i < num_in_tables; ++i) {
# 152|-> JQUANT_TBL *tbl = table_ptrs[comp_info[i].quant_tbl_no];
# 153| JQUANT_TBL *default_tbl =
# 154| (default_comp_info == 0 || default_table_ptrs == 0 ? 0 :
Error: CLANG_WARNING: [#def839]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sdcparam.c:548:24: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 546| return code;
# 547| for (codes_size = 0, j = 0; j < 16; j++)
# 548|-> codes_size += counts[j];
# 549| if (codes_size > 256 /*|| r_size(pa) != codes_size+16 */ )
# 550| return_error(gs_error_rangecheck);
Error: CPPCHECK_WARNING: [#def840]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/seexec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def841]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/seexec.c:72: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 70| ss->binary = -1; /* unknown */
# 71| ss->lenIV = 4;
# 72|-> ss->hex_left = max_long;
# 73| /* Clear pointers for GC */
# 74| ss->pfb_state = 0;
Error: CPPCHECK_WARNING: [#def842]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def843]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def844]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter2.c:205:33: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 203| /*case 0: */
# 204| }
# 205|-> space = count && buf[0] == '%' &&
# 206| ( (prev == '\n' && ( buf[1] == '%' || buf[1] =='!')) ||
# 207| (prev == '%' && qn - q == LINE_LIMIT - 1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def845]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter2.c: scope_hint: In function ‘s_A85E_process’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter2.c:206:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[1]’
# 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): [#def846]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfilter2.c:219:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&buf’
# 217| if (space)
# 218| *++q = ' ';
# 219|-> memcpy(q+1, buf, count+1);
# 220| q += count+1;
# 221| p += count;
Error: CPPCHECK_WARNING: [#def847]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxcommon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def848]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxstdio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def849]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxstdio.c:73: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 71| s->file_modes = s->modes;
# 72| s->file_offset = 0;
# 73|-> s->file_limit = (sizeof(gs_offset_t) > 4 ? max_int64_t : max_long);
# 74| }
# 75|
Error: CPPCHECK_WARNING (CWE-758): [#def850]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxstdio.c:82: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 80| if (s->file == 0 || s->modes != s_mode_read + s_mode_seek ||
# 81| s->file_offset != 0 ||
# 82|-> s->file_limit != S_FILE_LIMIT_MAX ||
# 83| ((s->position < start || s->position > start + length) && sseek(s, start) < 0)
# 84| )
Error: CPPCHECK_WARNING (CWE-758): [#def851]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxstdio.c:167: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 165| int count;
# 166|
# 167|-> if (s->file_limit < S_FILE_LIMIT_MAX) {
# 168| gs_offset_t limit_count = s->file_offset + s->file_limit - gp_ftell(file);
# 169|
Error: CPPCHECK_WARNING (CWE-758): [#def852]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sfxstdio.c:199: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 197| s->file_modes = s->modes;
# 198| s->file_offset = 0; /* in case we switch to reading later */
# 199|-> s->file_limit = S_FILE_LIMIT_MAX;
# 200| }
# 201| /* Initialize for appending to an OS file. */
Error: CPPCHECK_WARNING: [#def853]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def854]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:9: warning[deadcode.DeadStores]: Value stored to 'a' is never read
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def855]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:13: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def856]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:17: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def857]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:21: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def858]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:25: warning[deadcode.DeadStores]: Although the value stored to 'e' is used in the enclosing expression, the value is never actually read from 'e'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def859]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:29: warning[deadcode.DeadStores]: Although the value stored to 'f' is used in the enclosing expression, the value is never actually read from 'f'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def860]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:33: warning[deadcode.DeadStores]: Although the value stored to 'g' is used in the enclosing expression, the value is never actually read from 'g'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def861]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:37: warning[deadcode.DeadStores]: Although the value stored to 'h' is used in the enclosing expression, the value is never actually read from 'h'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def862]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:41: warning[deadcode.DeadStores]: Although the value stored to 'T1' is used in the enclosing expression, the value is never actually read from 'T1'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def863]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:533:46: warning[deadcode.DeadStores]: Although the value stored to 'T2' is used in the enclosing expression, the value is never actually read from 'T2'
# 531|
# 532| /* Clean up */
# 533|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 534| }
# 535|
Error: CLANG_WARNING: [#def864]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:566:25: warning[deadcode.DeadStores]: Value stored to 'usedspace' is never read
# 564| context->bitcount += len << 3;
# 565| /* Clean up: */
# 566|-> usedspace = freespace = 0;
# 567| return;
# 568| }
Error: CLANG_WARNING: [#def865]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:566:37: warning[deadcode.DeadStores]: Although the value stored to 'freespace' is used in the enclosing expression, the value is never actually read from 'freespace'
# 564| context->bitcount += len << 3;
# 565| /* Clean up: */
# 566|-> usedspace = freespace = 0;
# 567| return;
# 568| }
Error: CLANG_WARNING: [#def866]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:583:9: warning[deadcode.DeadStores]: Value stored to 'usedspace' is never read
# 581| }
# 582| /* Clean up: */
# 583|-> usedspace = freespace = 0;
# 584| }
# 585|
Error: CLANG_WARNING: [#def867]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:583:21: warning[deadcode.DeadStores]: Although the value stored to 'freespace' is used in the enclosing expression, the value is never actually read from 'freespace'
# 581| }
# 582| /* Clean up: */
# 583|-> usedspace = freespace = 0;
# 584| }
# 585|
Error: CLANG_WARNING: [#def868]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:646:9: warning[deadcode.DeadStores]: Value stored to 'usedspace' is never read
# 644| /* Clean up state data: */
# 645| MEMSET_BZERO(context, sizeof(*context));
# 646|-> usedspace = 0;
# 647| }
# 648|
Error: CLANG_WARNING: [#def869]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:9: warning[deadcode.DeadStores]: Value stored to 'a' is never read
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def870]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:13: warning[deadcode.DeadStores]: Although the value stored to 'b' is used in the enclosing expression, the value is never actually read from 'b'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def871]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:17: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def872]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:21: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def873]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:25: warning[deadcode.DeadStores]: Although the value stored to 'e' is used in the enclosing expression, the value is never actually read from 'e'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def874]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:29: warning[deadcode.DeadStores]: Although the value stored to 'f' is used in the enclosing expression, the value is never actually read from 'f'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def875]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:33: warning[deadcode.DeadStores]: Although the value stored to 'g' is used in the enclosing expression, the value is never actually read from 'g'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def876]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:37: warning[deadcode.DeadStores]: Although the value stored to 'h' is used in the enclosing expression, the value is never actually read from 'h'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def877]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:41: warning[deadcode.DeadStores]: Although the value stored to 'T1' is used in the enclosing expression, the value is never actually read from 'T1'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def878]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:853:46: warning[deadcode.DeadStores]: Although the value stored to 'T2' is used in the enclosing expression, the value is never actually read from 'T2'
# 851|
# 852| /* Clean up */
# 853|-> a = b = c = d = e = f = g = h = T1 = T2 = 0;
# 854| }
# 855|
Error: CLANG_WARNING: [#def879]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:886:25: warning[deadcode.DeadStores]: Value stored to 'usedspace' is never read
# 884| ADDINC128(context->bitcount, len << 3);
# 885| /* Clean up: */
# 886|-> usedspace = freespace = 0;
# 887| return;
# 888| }
Error: CLANG_WARNING: [#def880]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:886:37: warning[deadcode.DeadStores]: Although the value stored to 'freespace' is used in the enclosing expression, the value is never actually read from 'freespace'
# 884| ADDINC128(context->bitcount, len << 3);
# 885| /* Clean up: */
# 886|-> usedspace = freespace = 0;
# 887| return;
# 888| }
Error: CLANG_WARNING: [#def881]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:903:9: warning[deadcode.DeadStores]: Value stored to 'usedspace' is never read
# 901| }
# 902| /* Clean up: */
# 903|-> usedspace = freespace = 0;
# 904| }
# 905|
Error: CLANG_WARNING: [#def882]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sha2.c:903:21: warning[deadcode.DeadStores]: Although the value stored to 'freespace' is used in the enclosing expression, the value is never actually read from 'freespace'
# 901| }
# 902| /* Clean up: */
# 903|-> usedspace = freespace = 0;
# 904| }
# 905|
Error: CPPCHECK_WARNING: [#def883]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sidscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def884]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/simscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def885]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/siscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def886]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sjbig2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def887]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sjpx_openjpeg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def888]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sjpx_openjpeg.c:612:25: warning[deadcode.DeadStores]: Value stored to 'bit_pos' is never read
# 610| /* row padding */
# 611| *row++ = bt << (8 - bit_pos);
# 612|-> bit_pos = 0;
# 613| bt = 0;
# 614| }
Error: CLANG_WARNING: [#def889]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/sjpx_openjpeg.c:613:25: warning[deadcode.DeadStores]: Value stored to 'bt' is never read
# 611| *row++ = bt << (8 - bit_pos);
# 612| bit_pos = 0;
# 613|-> bt = 0;
# 614| }
# 615| }
Error: CPPCHECK_WARNING: [#def890]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/slzwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def891]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/slzwd.c:139:13: warning[deadcode.DeadStores]: Value stored to 'n' during its initialization is never read
# 137| int rlen = ss->copy_left;
# 138| int wlen = wlimit - q;
# 139|-> int n = len = min(rlen, wlen);
# 140|
# 141| c = code;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def892]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/slzwd.c: scope_hint: In function ‘s_LZWD_process’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/slzwd.c:371:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
# 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: [#def893]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/slzwe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def894]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def895]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:179:69: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'up')
# 177| case cDecode + cAverage:
# 178| for (; count; ++q, ++dprev, ++up, ++p, --count)
# 179|-> *q = (byte) (*p + arith_rshift_1((int)*dprev + (int)*up));
# 180| break;
# 181| case cEncode + cPaeth:
Error: CLANG_WARNING: [#def896]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:183:59: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'up')
# 181| case cEncode + cPaeth:
# 182| for (; count; ++q, ++dprev, ++up, ++upprev, ++p, --count)
# 183|-> *q = (byte) (*p - paeth_predictor(*dprev, *up, *upprev));
# 184| break;
# 185| case cDecode + cPaeth:
Error: CLANG_WARNING: [#def897]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:187:59: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'up')
# 185| case cDecode + cPaeth:
# 186| for (; count; ++q, ++dprev, ++up, ++upprev, ++p, --count)
# 187|-> *q = (byte) (*p + paeth_predictor(*dprev, *up, *upprev));
# 188| break;
# 189| }
Error: CLANG_WARNING: [#def898]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:272:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 270| if (ss->row_left == 0) {
# 271| if (ss->prev_row) {
# 272|-> memcpy(up - bpp, ss->prev, bpp);
# 273| memcpy(up, pr->ptr - (n - 1), n);
# 274| }
Error: CLANG_WARNING: [#def899]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:278:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 276| }
# 277| if (ss->prev_row)
# 278|-> memcpy(up - bpp, ss->prev, n);
# 279| if (n < bpp) {
# 280| /*
Error: CLANG_WARNING: [#def900]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:301:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 299| memcpy(ss->prev, pr->ptr - (bpp - 1), bpp);
# 300| if (ss->prev_row) {
# 301|-> memcpy(up, pr->ptr - (bpp + count - 1), count);
# 302| if (ss->row_left == 0)
# 303| memcpy(up + count, ss->prev, bpp);
Error: CLANG_WARNING: [#def901]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:362:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 360| if (ss->row_left == 0) {
# 361| if (ss->prev_row) {
# 362|-> memcpy(up - bpp, ss->prev, bpp);
# 363| memcpy(up, pw->ptr - (n - 1), n);
# 364| }
Error: CLANG_WARNING: [#def902]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:368:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 366| }
# 367| if (ss->prev_row)
# 368|-> memcpy(up - bpp, ss->prev, n);
# 369| if (n < bpp) {
# 370| /*
Error: CLANG_WARNING: [#def903]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spngp.c:391:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 389| memcpy(ss->prev, pw->ptr - (bpp - 1), bpp);
# 390| if (ss->prev_row) {
# 391|-> memcpy(up, pw->ptr - (bpp + count - 1), count);
# 392| if (ss->row_left == 0)
# 393| memcpy(up + count, ss->prev, bpp);
Error: CPPCHECK_WARNING: [#def904]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spsdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def905]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spsdf.c:99: error[uninitvar]: Uninitialized variable: buf
# 97| stream_cursor_read_init(&r, str, size);
# 98| do {
# 99|-> stream_cursor_write_init(&w, buf, sizeof(buf));
# 100|
# 101| status = (*templat->process) (st, &r, &w, true);
Error: CPPCHECK_WARNING: [#def906]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spwgd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def907]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/spwgd.c:65: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 63| int line_pos = ss->line_pos;
# 64|
# 65|-> if (ss->width > max_int / bpp)
# 66| return ERRC;
# 67|
Error: CPPCHECK_WARNING: [#def908]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def909]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.c: scope_hint: In function ‘stream_compact’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.c:1015:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*s.cbuf_string.data’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memmove’ must be non-null
# 1013| uint dist = s->cursor.r.ptr + 1 - s->cbuf;
# 1014|
# 1015|-> memmove(s->cbuf, s->cursor.r.ptr + 1,
# 1016| (uint) (s->cursor.r.limit - s->cursor.r.ptr));
# 1017| s->cursor.r.ptr = s->cbuf - 1;
Error: CPPCHECK_WARNING (CWE-758): [#def910]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/strmio.c:240: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 238| s->file_modes = s->modes;
# 239| s->file_offset = 0;
# 240|-> s->file_limit = S_FILE_LIMIT_MAX;
# 241| s->save_close = s_std_null;
# 242| *ps = s;
Error: CPPCHECK_WARNING: [#def911]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/szlibc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def912]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ttfmain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def913]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ttfmain.c:613:9: warning[deadcode.DeadStores]: Value stored to 'nPos' is never read
# 611| if (r->Error(r))
# 612| goto errex;
# 613|-> nPos = r->Tell(r);
# 614| n_ins = ((!r->Eof(r) && (bHaveInstructions)) ? ttfReader__UShort(r) : 0);
# 615| nPos = r->Tell(r);
Error: CPPCHECK_WARNING: [#def914]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ttinterp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def915]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/ttobjs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def916]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/write_t1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def917]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/write_t2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def918]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/write_t2.c:242:24: warning[core.NullDereference]: Array access (from variable 'data_start') results in a null pointer dereference
# 240| int last_offset = a_output->m_pos - data_start + 1;
# 241|
# 242|-> data_start[-2] = (unsigned char)(last_offset >> 8);
# 243| data_start[-1] = (unsigned char)(last_offset & 0xFF);
# 244| }
Error: CPPCHECK_WARNING: [#def919]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def920]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:528:7: warning[deadcode.DeadStores]: Value stored to 'x' is never read
# 526|
# 527| case gs_pe_closepath:
# 528|-> x = x_start, y = y_start;
# 529| if (do_close) {
# 530| lputs(s, ESC_GS "clpG");
Error: CLANG_WARNING: [#def921]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:528:20: warning[deadcode.DeadStores]: Although the value stored to 'y' is used in the enclosing expression, the value is never actually read from 'y'
# 526|
# 527| case gs_pe_closepath:
# 528|-> x = x_start, y = y_start;
# 529| if (do_close) {
# 530| lputs(s, ESC_GS "clpG");
Error: GCC_ANALYZER_WARNING (CWE-476): [#def922]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c: scope_hint: In function ‘trans_modelname’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:796:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdest’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:42: included_from: Included from here.
# 794|
# 795| while ( ( len < (dest_len -1) ) && *cp && ( '_' != *cp) ) {
# 796|-> *pdest = toupper( *cp );
# 797| pdest++;
# 798| cp++;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def923]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:800:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdest’
# 798| cp++;
# 799| }
# 800|-> *pdest = '\0';
# 801| }
# 802|
Error: CLANG_WARNING: [#def924]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:1963:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1961| }
# 1962|
# 1963|-> switch (code = param_read_bool(plist, (param_name = ESCPAGE_OPTION_TONERSAVING), &toner_saving)) {
# 1964| case 0:
# 1965| break;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def925]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c: scope_hint: In function ‘dmp_print_page’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:212:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c: scope_hint: In function ‘dmp_print_page’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:268:6: note: in definition of macro ‘gs_alloc_byte_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:178:30: note: in expansion of macro ‘gs_malloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.h:29: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:201:20: note: in expansion of macro ‘y_pixels_per_inch’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:142: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/memory_.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.h:22: included_from: Included from here.
/usr/include/stdio.h:707:12: note: argument 2 of ‘fputs’ must be non-null
# 210| /* Initialize the printer and reset the margins. */
# 211|
# 212|-> fputs("\r\n\033>\033T16", prn_stream);
# 213|
# 214| switch(dev_type)
Error: CPPCHECK_WARNING: [#def926]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def927]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjca.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def928]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def929]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2805:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2803| for (i = 0; i < plane_size; i++) {
# 2804| bitmask = 0x80;
# 2805|-> ca = ya = ma = 0;
# 2806| for (ca = 0; bitmask != 0; bitmask >>= 1) {
# 2807| FSdither(dp, ca, ep, error_values->c, bitmask, -n, n - 3);
Error: CLANG_WARNING: [#def930]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2823:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2821| for (i = 0; i < plane_size; i++) {
# 2822| bitmask = 0x01;
# 2823|-> ca = ya = ma = 0;
# 2824| for (ca = 0; bitmask != 0; bitmask <<= 1) {
# 2825| dp -= n, ep -= n;
Error: CLANG_WARNING: [#def931]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2871:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2869| for (i = 0; i < plane_size; i++) {
# 2870| bitmask = 0x80;
# 2871|-> ca = ya = ma = cb = yb = mb = 0;
# 2872| for (ca = 0; bitmask != 0; bitmask >>= 1) {
# 2873| FSdither8503(dp, ca, cb, ep, error_values->c, bitmask, -n, n
Error: CLANG_WARNING: [#def932]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2894:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2892| for (i = 0; i < plane_size; i++) {
# 2893| bitmask = 0x01;
# 2894|-> ca = ya = ma = cb = yb = mb = 0;
# 2895| for (ca = 0; bitmask != 0; bitmask <<= 1) {
# 2896| dp -= n, ep -= n;
Error: CLANG_WARNING: [#def933]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2954:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2952| for (i = 0; i < plane_size; i++) {
# 2953| bitmask = 0x80;
# 2954|-> ca = ya = ma = cb = yb = mb = 0;
# 2955| for (ca = 0; bitmask != 0; bitmask >>= 1) {
# 2956| FSdither8504(dp, ca, cb, ep, error_values->c, bitmask, -n, n
Error: CLANG_WARNING: [#def934]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:2977:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 2975| for (i = 0; i < plane_size; i++) {
# 2976| bitmask = 0x01;
# 2977|-> ca = ya = ma = cb = yb = mb = 0;
# 2978| for (ca = 0; bitmask != 0; bitmask <<= 1) {
# 2979| dp -= n, ep -= n;
Error: CPPCHECK_WARNING: [#def935]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def936]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:636:9: warning[deadcode.DeadStores]: Value stored to 'retCode' is never read
# 634| retCode = gdev_prn_open(pdev);
# 635| if (retCode >= 0) {
# 636|-> retCode = gdev_prn_open_printer(pdev, true);
# 637| }
# 638|
Error: CLANG_WARNING: [#def937]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1518:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1516| int *epc;
# 1517|
# 1518|-> ep = data_ptrs->errors[0];
# 1519| epc = data_ptrs->errors_c[0];
# 1520|
Error: CLANG_WARNING: [#def938]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1622:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1620| for (i = 0; i < plane_size; i++) {
# 1621| bitmask = 0x80;
# 1622|-> ca = ya = ma = 0;
# 1623|
# 1624| for (ca = 0; bitmask != 0; bitmask >>= 1) {
Error: CLANG_WARNING: [#def939]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1641:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1639| for (i = 0; i < plane_size; i++) {
# 1640| bitmask = 0x01;
# 1641|-> ca = ya = ma = 0;
# 1642|
# 1643| for (ca = 0; bitmask != 0; bitmask <<= 1) {
Error: CLANG_WARNING: [#def940]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1696:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1694| for (i = 0; i < plane_size; i++) {
# 1695| bitmask = 0x80;
# 1696|-> ca = ya = ma = cb = yb = mb = 0;
# 1697|
# 1698| for (ca = 0; bitmask != 0; bitmask >>= 1) {
Error: CLANG_WARNING: [#def941]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1721:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1719| for (i = 0; i < plane_size; i++) {
# 1720| bitmask = 0x01;
# 1721|-> ca = ya = ma = cb = yb = mb = 0;
# 1722|
# 1723| for (ca = 0; bitmask != 0; bitmask <<= 1) {
Error: CLANG_WARNING: [#def942]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1788:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1786| for (i = 0; i < plane_size; i++) {
# 1787| bitmask = 0x80;
# 1788|-> ca = ya = ma = cb = yb = mb = 0;
# 1789|
# 1790| for (ca = 0; bitmask != 0; bitmask >>= 1) {
Error: CLANG_WARNING: [#def943]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:1814:13: warning[deadcode.DeadStores]: Value stored to 'ca' is never read
# 1812| for (i = 0; i < plane_size; i++) {
# 1813| bitmask = 0x01;
# 1814|-> ca = ya = ma = cb = yb = mb = 0;
# 1815|
# 1816| for (ca = 0; bitmask != 0; bitmask <<= 1) {
Error: CPPCHECK_WARNING: [#def944]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def945]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevhl12.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def946]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def947]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:318:19: warning[deadcode.DeadStores]: Although the value stored to 'iptr' is used in the enclosing expression, the value is never actually read from 'iptr'
# 316| if (*(iptr += line_size) & mask)
# 317| c += 020;
# 318|-> if (*(iptr += line_size) & mask)
# 319| c += 040;
# 320| if (!(mask >>= 1)) {
Error: GCC_ANALYZER_WARNING (CWE-457): [#def948]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c: scope_hint: In function ‘sixel_print_page’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:367:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
# 365| }
# 366| }
# 367|-> if (c != 077) {
# 368| if (count > 3) {
# 369| /* use run length encoding */
Error: CLANG_WARNING: [#def949]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:367:15: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 365| }
# 366| }
# 367|-> if (c != 077) {
# 368| if (count > 3) {
# 369| /* use run length encoding */
Error: CPPCHECK_WARNING: [#def950]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def951]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c: scope_hint: In function ‘finalizeheader’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:1298:23: warning[-Wmaybe-uninitialized]: ‘offs2’ may be used uninitialized
# 1298 | nstartabs = newstart + offs2;
# | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:1260:13: note: ‘offs2’ was declared here
# 1260 | int offs2, nstartabs, back, fwd;
# | ^~~~~
# 1296| /* Calculate absolute starting position of new stripe */
# 1297| if (newhead >= 0) {
# 1298|-> nstartabs = newstart + offs2;
# 1299| }
# 1300|
Error: CLANG_WARNING: [#def952]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:2388:9: warning[deadcode.DeadStores]: Value stored to 'data' is never read
# 2386| int i, ret, p1, p2, ofs, code = 0;
# 2387|
# 2388|-> data = gendata->scanbuf;
# 2389| ofs = gendata->goffset;
# 2390|
Error: CLANG_WARNING: [#def953]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:3172:9: warning[deadcode.DeadStores]: Value stored to 'lline' is never read
# 3170| */
# 3171| skiplines(gendata, gendata->curvline, BWTOPSTART);
# 3172|-> lline = gendata->curvline;
# 3173|
# 3174| /* And now print the first buffer. This part of
Error: CPPCHECK_WARNING: [#def954]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def955]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def956]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c: scope_hint: In function ‘runlength’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:386:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘contflag’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c: scope_hint: In function ‘runlength’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/memory_.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stdpre.h:402:30: note: in definition of macro ‘min’
# 384| }
# 385|
# 386|-> if (contflag) {
# 387| climit = min(129, p_end - p_in);
# 388| p_in += 3;
Error: CLANG_WARNING: [#def957]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:386:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 384| }
# 385|
# 386|-> if (contflag) {
# 387| climit = min(129, p_end - p_in);
# 388| p_in += 3;
Error: CPPCHECK_WARNING: [#def958]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevop4w.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def959]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevxes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def960]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevxes.c:119:5: warning[deadcode.DeadStores]: Value stored to 'height' is never read
# 117|
# 118| line_size = gdev_mem_bytes_per_scan_line(pdev);
# 119|-> height = pdev->height;
# 120| /* Default page rectangle */
# 121| top = pdev->height;
Error: CPPCHECK_WARNING: [#def961]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def962]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmlbp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def963]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmpr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def964]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmpr.c:101:5: warning[deadcode.DeadStores]: Although the value stored to 'dst' is used in the enclosing expression, the value is never actually read from 'dst'
# 99| *(dst += dst_step) = d5;
# 100| *(dst += dst_step) = d6;
# 101|-> *(dst += dst_step) = d7;
# 102|
# 103| return 0;
Error: CPPCHECK_WARNING: [#def965]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevj100.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def966]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevj100.c:71:11: warning[deadcode.DeadStores]: Although the value stored to 'dst' is used in the enclosing expression, the value is never actually read from 'dst'
# 69| *(dst += dst_step) = d5;
# 70| *(dst += dst_step) = d6;
# 71|-> *(dst += dst_step) = d7;
# 72|
# 73| return 0;
Error: CPPCHECK_WARNING: [#def967]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def968]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:271: warning[uninitvar]: Uninitialized variable: oBuf
# 269| } else {
# 270| gp_fprintf(fp, "%c", count);
# 271|-> gp_fwrite(oBuf, 1, count+1, fp);
# 272| DataSize += (count+2);
# 273| }
Error: CPPCHECK_WARNING: [#def969]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def970]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1073:15: warning[deadcode.DeadStores]: Although the value stored to 'out_data' is used in the enclosing expression, the value is never actually read from 'out_data'
# 1071| else {
# 1072| int i;
# 1073|-> byte *p = out_data = out_row = (byte *)storage;
# 1074| data[0] = data[1] = data[2] = p;
# 1075| data[3] = p + databuff_size;
Error: CLANG_WARNING: [#def971]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1073:26: warning[deadcode.DeadStores]: Although the value stored to 'out_row' is used in the enclosing expression, the value is never actually read from 'out_row'
# 1071| else {
# 1072| int i;
# 1073|-> byte *p = out_data = out_row = (byte *)storage;
# 1074| data[0] = data[1] = data[2] = p;
# 1075| data[3] = p + databuff_size;
Error: CLANG_WARNING: [#def972]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1178:12: warning[deadcode.DeadStores]: Although the value stored to 'mErr' is used in the enclosing expression, the value is never actually read from 'mErr'
# 1176| word rmask = ~(word) 0 << ((-pdev->width * storage_bpp) & (W * 8 - 1));
# 1177|
# 1178|-> cErr = mErr = yErr = kErr = 0;
# 1179|
# 1180| if (bits_per_pixel > 4) { /* Randomly seed initial error buffer */
Error: CLANG_WARNING: [#def973]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1178:19: warning[deadcode.DeadStores]: Although the value stored to 'yErr' is used in the enclosing expression, the value is never actually read from 'yErr'
# 1176| word rmask = ~(word) 0 << ((-pdev->width * storage_bpp) & (W * 8 - 1));
# 1177|
# 1178|-> cErr = mErr = yErr = kErr = 0;
# 1179|
# 1180| if (bits_per_pixel > 4) { /* Randomly seed initial error buffer */
Error: CLANG_WARNING: [#def974]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1178:26: warning[deadcode.DeadStores]: Although the value stored to 'kErr' is used in the enclosing expression, the value is never actually read from 'kErr'
# 1176| word rmask = ~(word) 0 << ((-pdev->width * storage_bpp) & (W * 8 - 1));
# 1177|
# 1178|-> cErr = mErr = yErr = kErr = 0;
# 1179|
# 1180| if (bits_per_pixel > 4) { /* Randomly seed initial error buffer */
Error: CLANG_WARNING: [#def975]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:1451:40: warning[core.DivideZero]: Division by zero
# 1449| Wa=G;
# 1450| D=G-R;
# 1451|-> H=512+(B-R)*256/D;
# 1452| } else { /* B>G>R */
# 1453| Wa=B;
Error: CPPCHECK_WARNING: [#def976]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevml6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def977]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevnpdl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def978]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def979]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:108:11: warning[deadcode.DeadStores]: Although the value stored to 'dst' is used in the enclosing expression, the value is never actually read from 'dst'
# 106| *(dst += dst_step) = d5;
# 107| *(dst += dst_step) = d6;
# 108|-> *(dst += dst_step) = d7;
# 109|
# 110| return 0;
Error: CPPCHECK_WARNING: [#def980]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevrpdl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def981]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def982]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:422:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 420|
# 421| if (lips->toner_saving_set >= 0)
# 422|-> switch (code = param_read_bool(plist, (param_name = LIPS_OPTION_TONERSAVING),
# 423| &toner_saving)) {
# 424| case 0:
Error: CPPCHECK_WARNING: [#def983]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def984]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c: scope_hint: In function ‘sput_lips_int’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:332:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c[0]’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:69: included_from: Included from here.
/usr/include/string.h:407:15: note: argument 1 of ‘strlen’ must be a pointer to a null-terminated string
# 330|
# 331| lips_param(param, c);
# 332|-> for (i = 0; i < strlen(c); i++)
# 333| sputc(s, c[i]);
# 334| }
Error: CLANG_WARNING: [#def985]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:333:9: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 331| lips_param(param, c);
# 332| for (i = 0; i < strlen(c); i++)
# 333|-> sputc(s, c[i]);
# 334| }
# 335|
Error: CLANG_WARNING: [#def986]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:333:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 331| lips_param(param, c);
# 332| for (i = 0; i < strlen(c); i++)
# 333|-> sputc(s, c[i]);
# 334| }
# 335|
Error: CPPCHECK_WARNING (CWE-786): [#def987]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:470: error[negativeIndex]: Array 'pdev->id_cache[257]' accessed at index -1, which is out of bounds.
# 468| }
# 469| for (i = j; i < pdev->count - 1; i++) {
# 470|-> pdev->id_cache[i] = pdev->id_cache[i + 1];
# 471| }
# 472| pdev->id_cache[pdev->count - 1] = tmpid;
Error: CLANG_WARNING: [#def988]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:1673:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1671|
# 1672| if (pdev->toner_saving_set >= 0)
# 1673|-> switch (code =
# 1674| param_read_bool(plist, (param_name = LIPS_OPTION_TONERSAVING),
# 1675| &toner_saving)) {
Error: CLANG_WARNING: [#def989]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:1691:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1689|
# 1690| if (pdev->Duplex_set >= 0) /* i.e., Duplex is supported */
# 1691|-> switch (code = param_read_bool(plist, (param_name = "Duplex"),
# 1692| &duplex)) {
# 1693| case 0:
Error: CPPCHECK_WARNING (CWE-190): [#def990]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:1928: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1926| int i, j;
# 1927| uint width_bytes = (w + 7) >> 3;
# 1928|-> uint num_bytes = round_up(width_bytes, 4) * h;
# 1929| byte *buf = gs_alloc_bytes(vdev->memory, num_bytes,
# 1930| "lips4v_copy_mono(buf)");
Error: CPPCHECK_WARNING (CWE-190): [#def991]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:2092: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 2090| int i;
# 2091| uint width_bytes = (w + 7) >> 3;
# 2092|-> uint num_bytes = round_up(width_bytes, 4) * h;
# 2093| byte *buf = gs_alloc_bytes(vdev->memory, num_bytes,
# 2094| "lips4v_fill_mask(buf)");
Error: CPPCHECK_WARNING: [#def992]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def993]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:128: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 126| &BlockWidth)) {
# 127| case 0:
# 128|-> if (BlockWidth <= 0 || BlockWidth > (max_int / BlockWidth))
# 129| ecode = gs_error_rangecheck;
# 130| else
Error: CLANG_WARNING: [#def994]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:129:17: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 127| case 0:
# 128| if (BlockWidth <= 0 || BlockWidth > (max_int / BlockWidth))
# 129|-> ecode = gs_error_rangecheck;
# 130| else
# 131| break;
Error: CLANG_WARNING: [#def995]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:134:13: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 132| goto bwidthe;
# 133| default:
# 134|-> ecode = code;
# 135| bwidthe:param_signal_error(plist, param_name, ecode = code);
# 136| case 1:
Error: CLANG_WARNING: [#def996]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:145:17: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 143| case 0:
# 144| if (BlockLine <= 0)
# 145|-> ecode = gs_error_rangecheck;
# 146| else
# 147| break;
Error: CLANG_WARNING: [#def997]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:150:13: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 148| goto crowe;
# 149| default:
# 150|-> ecode = code;
# 151| crowe:param_signal_error(plist, param_name, ecode = code);
# 152| case 1:
Error: CPPCHECK_WARNING (CWE-758): [#def998]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:163: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 161| * so we need to ensure that calculation won't overflow.
# 162| */
# 163|-> if (BlockHeight <= 0 || BlockHeight > (max_int / BlockHeight))
# 164| ecode = gs_error_rangecheck;
# 165| else
Error: CLANG_WARNING: [#def999]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:164:17: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 162| */
# 163| if (BlockHeight <= 0 || BlockHeight > (max_int / BlockHeight))
# 164|-> ecode = gs_error_rangecheck;
# 165| else
# 166| break;
Error: CLANG_WARNING: [#def1000]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevlprn.c:169:13: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 167| goto bheighte;
# 168| default:
# 169|-> ecode = code;
# 170| bheighte:param_signal_error(plist, param_name, ecode = code);
# 171| case 1:
Error: CPPCHECK_WARNING: [#def1001]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1002]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘SetBgColorWrapper’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:768:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*brush.colorSpace’
# 766| return -1;
# 767| }
# 768|-> if (brush->colorSpace == OPVP_CSPACE_DEVICEKRGB) {
# 769| /* 0.2 doesn't have OPVP_CSPACE_DEVICEKRGB */
# 770| *(opdev->globals.ErrorNo) = OPVP_NOTSUPPORTED_0_2;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1003]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘opvp_cat_string’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:1569:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcat’ must be non-null
# 1567| if (string) {
# 1568| *destin = realloc(*destin, strlen(*destin) +strlen(string)+1);
# 1569|-> strcat(*destin, string);
# 1570| }
# 1571|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘opvp_to_utf8’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:1657:24: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", locale)’
# 1655| if (locale) {
# 1656| if (strcmp(locale, "C") && buff) {
# 1657|-> if ((cd = iconv_open("UTF-8", locale)) != (iconv_t)-1) {
# 1658| ibuff = string;
# 1659| obuff = buff;
Error: CPPCHECK_WARNING (CWE-401): [#def1005]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:2399: error[memleakOnRealloc]: Common realloc mistake: 'p' nulled but not freed upon failure
# 2397| == OPVP_PARAMERROR && nn > n) {
# 2398| /* realloc buffer and retry */
# 2399|-> p = realloc(p,nn*sizeof(opvp_cspace_t));
# 2400| r = gsopvpQueryColorSpace(dev, pdev->globals.printerContext,&nn,p);
# 2401| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘opvp_copy_color’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3264:8: warning[-Wanalyzer-malloc-leak]: leak of ‘mybuf’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/opvp_common.h:50: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:77: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3239:5: note: in expansion of macro ‘OPVP_I2FIX’
# 3262| #endif
# 3263|
# 3264|-> if (buff != data) {
# 3265| /* buff was allocated from this function */
# 3266| if (mybuf) free(mybuf);
Error: CPPCHECK_WARNING (CWE-401): [#def1007]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3465: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3463| return_error(gs_error_invalidaccess);
# 3464| }
# 3465|-> buff = realloc(buff, vdps.size + 1);
# 3466| memcpy(buff, vdps.data, vdps.size);
# 3467| buff[vdps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1008]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3466:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3464| }
# 3465| buff = realloc(buff, vdps.size + 1);
# 3466|-> memcpy(buff, vdps.data, vdps.size);
# 3467| buff[vdps.size] = 0;
# 3468| opvp_alloc_string(&(opdev->globals.vectorDriver), buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1009]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3483: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3481| switch (code) {
# 3482| case 0:
# 3483|-> buff = realloc(buff, pmps.size + 1);
# 3484| memcpy(buff, pmps.data, pmps.size);
# 3485| buff[pmps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1010]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3484:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3482| case 0:
# 3483| buff = realloc(buff, pmps.size + 1);
# 3484|-> memcpy(buff, pmps.data, pmps.size);
# 3485| buff[pmps.size] = 0;
# 3486| opvp_alloc_string(&(opdev->globals.printerModel), buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1011]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3501: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3499| switch (code) {
# 3500| case 0:
# 3501|-> buff = realloc(buff, jips.size + 1);
# 3502| memcpy(buff, jips.data, jips.size);
# 3503| buff[jips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1012]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3501:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3499| switch (code) {
# 3500| case 0:
# 3501|-> buff = realloc(buff, jips.size + 1);
# 3502| memcpy(buff, jips.data, jips.size);
# 3503| buff[jips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1013]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3502:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3500| case 0:
# 3501| buff = realloc(buff, jips.size + 1);
# 3502|-> memcpy(buff, jips.data, jips.size);
# 3503| buff[jips.size] = 0;
# 3504| opvp_alloc_string(&(opdev->globals.jobInfo), buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1014]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3519: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3517| switch (code) {
# 3518| case 0:
# 3519|-> buff = realloc(buff, dips.size + 1);
# 3520| memcpy(buff, dips.data, dips.size);
# 3521| buff[dips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1015]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3519:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3517| switch (code) {
# 3518| case 0:
# 3519|-> buff = realloc(buff, dips.size + 1);
# 3520| memcpy(buff, dips.data, dips.size);
# 3521| buff[dips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1016]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3520:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3518| case 0:
# 3519| buff = realloc(buff, dips.size + 1);
# 3520|-> memcpy(buff, dips.data, dips.size);
# 3521| buff[dips.size] = 0;
# 3522| opvp_alloc_string(&(opdev->globals.docInfo), buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1017]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3537: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3535| switch (code) {
# 3536| case 0:
# 3537|-> buff = realloc(buff, fips.size + 1);
# 3538| memcpy(buff, fips.data, fips.size);
# 3539| buff[fips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1018]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3537:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3535| switch (code) {
# 3536| case 0:
# 3537|-> buff = realloc(buff, fips.size + 1);
# 3538| memcpy(buff, fips.data, fips.size);
# 3539| buff[fips.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1019]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3538:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3536| case 0:
# 3537| buff = realloc(buff, fips.size + 1);
# 3538|-> memcpy(buff, fips.data, fips.size);
# 3539| buff[fips.size] = 0;
# 3540| opvp_alloc_string(&fastImage, buff);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1020]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/string.h:462: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:30: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 3539| buff[fips.size] = 0;
# 3540| opvp_alloc_string(&fastImage, buff);
# 3541|-> if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542| FastImageMode = FastImageNoCTM;
# 3543| } else if (strncasecmp(fastImage,"NoRotate",8)==0) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1021]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 3539| buff[fips.size] = 0;
# 3540| opvp_alloc_string(&fastImage, buff);
# 3541|-> if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542| FastImageMode = FastImageNoCTM;
# 3543| } else if (strncasecmp(fastImage,"NoRotate",8)==0) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1022]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3541:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fastImage’ where non-null expected
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 3539| buff[fips.size] = 0;
# 3540| opvp_alloc_string(&fastImage, buff);
# 3541|-> if (strcasecmp(fastImage,"NoCTM")==0) {
# 3542| FastImageMode = FastImageNoCTM;
# 3543| } else if (strncasecmp(fastImage,"NoRotate",8)==0) {
Error: CPPCHECK_WARNING (CWE-401): [#def1023]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3568: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3566| switch (code) {
# 3567| case 0:
# 3568|-> buff = realloc(buff, mlps.size + 1);
# 3569| memcpy(buff, mlps.data, mlps.size);
# 3570| buff[mlps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1024]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3568:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3566| switch (code) {
# 3567| case 0:
# 3568|-> buff = realloc(buff, mlps.size + 1);
# 3569| memcpy(buff, mlps.data, mlps.size);
# 3570| buff[mlps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1025]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3569:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3567| case 0:
# 3568| buff = realloc(buff, mlps.size + 1);
# 3569|-> memcpy(buff, mlps.data, mlps.size);
# 3570| buff[mlps.size] = 0;
# 3571| opdev->globals.margins[0] = atof(buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1026]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3583: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3581| switch (code) {
# 3582| case 0:
# 3583|-> buff = realloc(buff, mtps.size + 1);
# 3584| memcpy(buff, mtps.data, mtps.size);
# 3585| buff[mtps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1027]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3583:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3581| switch (code) {
# 3582| case 0:
# 3583|-> buff = realloc(buff, mtps.size + 1);
# 3584| memcpy(buff, mtps.data, mtps.size);
# 3585| buff[mtps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1028]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3584:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3582| case 0:
# 3583| buff = realloc(buff, mtps.size + 1);
# 3584|-> memcpy(buff, mtps.data, mtps.size);
# 3585| buff[mtps.size] = 0;
# 3586| opdev->globals.margins[3] = atof(buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1029]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3598: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3596| switch (code) {
# 3597| case 0:
# 3598|-> buff = realloc(buff, mrps.size + 1);
# 3599| memcpy(buff, mrps.data, mrps.size);
# 3600| buff[mrps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1030]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3598:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3596| switch (code) {
# 3597| case 0:
# 3598|-> buff = realloc(buff, mrps.size + 1);
# 3599| memcpy(buff, mrps.data, mrps.size);
# 3600| buff[mrps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1031]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3599:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3597| case 0:
# 3598| buff = realloc(buff, mrps.size + 1);
# 3599|-> memcpy(buff, mrps.data, mrps.size);
# 3600| buff[mrps.size] = 0;
# 3601| opdev->globals.margins[2] = atof(buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1032]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3613: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3611| switch (code) {
# 3612| case 0:
# 3613|-> buff = realloc(buff, mbps.size + 1);
# 3614| memcpy(buff, mbps.data, mbps.size);
# 3615| buff[mbps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1033]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3613:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3611| switch (code) {
# 3612| case 0:
# 3613|-> buff = realloc(buff, mbps.size + 1);
# 3614| memcpy(buff, mbps.data, mbps.size);
# 3615| buff[mbps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1034]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3614:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3612| case 0:
# 3613| buff = realloc(buff, mbps.size + 1);
# 3614|-> memcpy(buff, mbps.data, mbps.size);
# 3615| buff[mbps.size] = 0;
# 3616| opdev->globals.margins[1] = atof(buff);
Error: CPPCHECK_WARNING (CWE-401): [#def1035]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3630: error[memleakOnRealloc]: Common realloc mistake: 'buff' nulled but not freed upon failure
# 3628| switch (code) {
# 3629| case 0:
# 3630|-> buff = realloc(buff, zmps.size + 1);
# 3631| memcpy(buff, zmps.data, zmps.size);
# 3632| buff[zmps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1036]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3630:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buff’
# 3628| switch (code) {
# 3629| case 0:
# 3630|-> buff = realloc(buff, zmps.size + 1);
# 3631| memcpy(buff, zmps.data, zmps.size);
# 3632| buff[zmps.size] = 0;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1037]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:3631:9: warning[-Wanalyzer-null-argument]: use of NULL ‘buff’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3629| case 0:
# 3630| buff = realloc(buff, zmps.size + 1);
# 3631|-> memcpy(buff, zmps.data, zmps.size);
# 3632| buff[zmps.size] = 0;
# 3633| if (strncasecmp(buff, "Auto", 4)) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1038]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c: scope_hint: In function ‘opvp_vector_dopath’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5067:16: warning[-Wanalyzer-malloc-leak]: leak of ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:59: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevcli.h:36: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxdevice.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:54: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5065| /* check page-in */
# 5066| if (opvp_check_in_page(opdev))
# 5067|-> return -1;
# 5068|
# 5069| if (gx_path_is_rectangle(ppath, &rect))
Error: CPPCHECK_WARNING (CWE-401): [#def1039]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5091: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5089| #ifdef OPVP_OPT_MULTI_PATH
# 5090| npoints = 1;
# 5091|-> points = realloc(points, sizeof(_fPoint));
# 5092| current = start;
# 5093| #endif
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1040]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5095:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5093| #endif
# 5094|
# 5095|-> points[0] = start;
# 5096|
# 5097| #ifdef OPVP_OPT_MULTI_PATH
Error: CPPCHECK_WARNING (CWE-401): [#def1041]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5100: error[memleakOnRealloc]: Common realloc mistake: 'opvp_p' nulled but not freed upon failure
# 5098| } else if (op != pop) {
# 5099| /* convert float to Fix */
# 5100|-> opvp_p = realloc(opvp_p, sizeof(opvp_point_t) * npoints);
# 5101| for (i = 0; i < npoints; i++) {
# 5102| OPVP_F2FIX(points[i].x, opvp_p[i].x);
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1042]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5100:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘opvp_p’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5098| } else if (op != pop) {
# 5099| /* convert float to Fix */
# 5100|-> opvp_p = realloc(opvp_p, sizeof(opvp_point_t) * npoints);
# 5101| for (i = 0; i < npoints; i++) {
# 5102| OPVP_F2FIX(points[i].x, opvp_p[i].x);
Error: CPPCHECK_WARNING (CWE-401): [#def1043]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5151: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5149| /* reset */
# 5150| npoints = 1;
# 5151|-> points = realloc(points, sizeof(_fPoint));
# 5152| points[0] = current;
# 5153| #endif
Error: CPPCHECK_WARNING (CWE-401): [#def1044]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5164: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5162| i = npoints;
# 5163| npoints += 1;
# 5164|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5165| points[i].x = fixed2float(vs[0]) / scale.x;
# 5166| points[i].y = fixed2float(vs[1]) / scale.y;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1045]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5164:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5162| i = npoints;
# 5163| npoints += 1;
# 5164|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5165| points[i].x = fixed2float(vs[0]) / scale.x;
# 5166| points[i].y = fixed2float(vs[1]) / scale.y;
Error: CPPCHECK_WARNING (CWE-401): [#def1046]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5191: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5189| i = npoints;
# 5190| npoints += 1;
# 5191|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5192| points[i].x = fixed2float(vs[0]) / scale.x;
# 5193| points[i].y = fixed2float(vs[1]) / scale.y;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1047]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5191:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5189| i = npoints;
# 5190| npoints += 1;
# 5191|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5192| points[i].x = fixed2float(vs[0]) / scale.x;
# 5193| points[i].y = fixed2float(vs[1]) / scale.y;
Error: CPPCHECK_WARNING (CWE-401): [#def1048]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5215: error[memleakOnRealloc]: Common realloc mistake: 'points' nulled but not freed upon failure
# 5213| i = npoints;
# 5214| npoints += 3;
# 5215|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5216| points[i ].x = fixed2float(vs[0]) / scale.x;
# 5217| points[i ].y = fixed2float(vs[1]) / scale.y;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def1049]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5215:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5213| i = npoints;
# 5214| npoints += 3;
# 5215|-> points = realloc(points, sizeof(_fPoint) * npoints);
# 5216| points[i ].x = fixed2float(vs[0]) / scale.x;
# 5217| points[i ].y = fixed2float(vs[1]) / scale.y;
Error: GCC_ANALYZER_WARNING (CWE-416): [#def1050]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5247:21: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
# 5245| case gs_pe_closepath:
# 5246| /* close path */
# 5247|-> code = (*vdev_proc(vdev, closepath))(
# 5248| vdev,
# 5249| points[0].x,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1051]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/opvp.h:68:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘points’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5102:17: note: in expansion of macro ‘OPVP_F2FIX’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5076:14: note: in expansion of macro ‘vdev_proc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfixed.h:124:26: note: in definition of macro ‘fixed2float’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/opvp.h:68:50: note: in definition of macro ‘OPVP_F2FIX’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/opvp.h:68:50: note: in definition of macro ‘OPVP_F2FIX’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/opvp.h:68:50: note: in definition of macro ‘OPVP_F2FIX’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:5102:17: note: in expansion of macro ‘OPVP_F2FIX’
# 66| /* convert macro */
# 67| #define OPVP_I2FIX(i,fix) (fix=i<<OPVP_FIX_FRACT_WIDTH)
# 68|-> #define OPVP_F2FIX(f,fix) (fix=((int)floor(f)<<OPVP_FIX_FRACT_WIDTH)\
# 69| |((int)((f-floor(f))*OPVP_FIX_FRACT_DENOM)\
# 70| &(OPVP_FIX_FRACT_DENOM-1)))
Error: CPPCHECK_WARNING: [#def1052]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1053]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnfs.c:502:45: warning[core.DivideZero]: Division by zero
# 500| /* Determine approximation and error for this pixel */
# 501| approx[colorant] = *from/divisor[colorant];
# 502|-> error = *from - (255*approx[colorant])/max_level[colorant];
# 503| /* The sign of 'error' is chosen such that 'error' is positive if
# 504| colorant intensity has to be added to the picture. */
Error: CPPCHECK_WARNING: [#def1054]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1055]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:47: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c: scope_hint: In function ‘eprn_read_media_data’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:447:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevprn.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/gdeveprn.h:187: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:59: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:268:6: note: in definition of macro ‘gs_alloc_byte_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:655:32: note: in expansion of macro ‘gs_malloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c: scope_hint: In function ‘eprn_read_media_data’
# 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-416): [#def1056]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:447:34: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘s’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:268:6: note: in definition of macro ‘gs_alloc_byte_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:655:32: note: in expansion of macro ‘gs_malloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c: scope_hint: In function ‘eprn_read_media_data’
# 445| */
# 446| if (s == NULL) s = strchr(buffer, '\0');
# 447|-> while (buffer < s && isspace(*(s-1))) s--;
# 448| *s = '\0';
# 449|
Error: CLANG_WARNING: [#def1057]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:1084:37: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1082|
# 1083| /* Leading edge */
# 1084|-> if ((rc = param_read_null(plist, (pname = "LeadingEdge"))) == 0) {
# 1085| if (eprn->leading_edge_set && dev->is_open) gs_closedevice(dev);
# 1086| eprn->leading_edge_set = false;
Error: CLANG_WARNING: [#def1058]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:1109:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1107| if ((rc = param_read_null(plist, (pname = "MediaConfigurationFile"))) == 0) {
# 1108| if (eprn->media_file != NULL && dev->is_open) gs_closedevice(dev);
# 1109|-> rc = eprn_set_media_data((eprn_Device *)dev, NULL, 0);
# 1110| }
# 1111| else if (rc < 0 && rc != gs_error_typecheck) last_error = rc;
Error: CLANG_WARNING: [#def1059]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnparm.c:1163:13: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1161| }
# 1162| else if (rc < 0 && rc != gs_error_typecheck) last_error = rc;
# 1163|-> else if ((rc = param_read_string(plist, pname, &string_value)) == 0) {
# 1164| /* Free old storage */
# 1165| if (eprn->pagecount_file != NULL) {
Error: CPPCHECK_WARNING: [#def1060]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1061]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:640:24: warning[core.NullDereference]: Dereference of undefined pointer value
# 638| /* Put the bit into all remaining pixels for this plane */
# 639| for (p = 0; p < shift; p++)
# 640|-> *ptr[j] = (*ptr[j] << 1) | bit;
# 641| }
# 642| }
Error: CLANG_WARNING: [#def1062]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:715:10: warning[core.DivideZero]: Division by zero
# 713| /* Loop over pixels within the input octet, starting at the leftmost
# 714| pixel (highest-order bits) */
# 715|-> p = 8/dev->color_info.depth - 1;
# 716| do {
# 717| eprn_Octet comp;
Error: CLANG_WARNING: [#def1063]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:726:20: warning[core.NullDereference]: Dereference of undefined pointer value
# 724| comp = pixel & comp_mask; /* black */
# 725| for (j = 0; j < black_planes; j++) {
# 726|-> *ptr[j] = (*ptr[j] << 1) | (comp & 1);
# 727| comp >>= 1;
# 728| }
Error: CLANG_WARNING: [#def1064]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:732:22: warning[core.NullDereference]: Dereference of undefined pointer value
# 730| comp = (pixel >> l*dev->eprn.bits_per_colorant) & comp_mask;
# 731| for (m = 0; m < non_black_planes; m++, j++) {
# 732|-> *ptr[j] = (*ptr[j] << 1) | (comp & 1);
# 733| comp >>= 1;
# 734| }
Error: CLANG_WARNING: [#def1065]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:815:18: warning[core.NullDereference]: Dereference of undefined pointer value
# 813| comp = pixel & comp_mask; /* black */
# 814| for (j = 0; j < black_planes; j++) {
# 815|-> *ptr[j] = (*ptr[j] << 1) | (comp & 1);
# 816| comp >>= 1;
# 817| }
Error: CLANG_WARNING: [#def1066]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:821:20: warning[core.NullDereference]: Dereference of undefined pointer value
# 819| comp = (pixel >> l*dev->eprn.bits_per_colorant) & comp_mask;
# 820| for (m = 0; m < non_black_planes; m++, j++) {
# 821|-> *ptr[j] = (*ptr[j] << 1) | (comp & 1);
# 822| comp >>= 1;
# 823| }
Error: CLANG_WARNING: [#def1067]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/eprnrend.c:908:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value due to array index out of bounds
# 906| for (j = 0; j < dev->eprn.output_planes; j++) {
# 907| if (length == 0) plane[j].length = 0;
# 908|-> else plane[j].length = ptr[from + j] - plane[j].str;
# 909| }
# 910|
Error: CPPCHECK_WARNING: [#def1068]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/gdeveprn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1069]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1070]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c: scope_hint: In function ‘ms_find_code_from_name’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c:308:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c:299:7: note: in expansion of macro ‘set_if’
# 306| flags |= flag;
# 307| s = t;
# 308|-> } while (*t != '\0');
# 309| }
# 310|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1071]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c: scope_hint: In function ‘add_substrings’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/mediasize.c:376:7: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 374| }
# 375| *code &= ~flag_list[j].code;
# 376|-> strcpy(buffer, flag_list[j].name);
# 377| buffer += l;
# 378| *length -= l;
Error: CPPCHECK_WARNING: [#def1072]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/pagecount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1073]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/pagecount.c: scope_hint: In function ‘lock_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/pagecount.c:67:8: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/pagecount.c: scope_hint: In function ‘lock_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:142: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/eprn/pagecount.c:25: included_from: Included from here.
/usr/include/stdio.h:873:12: note: argument 1 of ‘fileno’ must be non-null
# 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: CPPCHECK_WARNING: [#def1074]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1075]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:318:3: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'buffer' is still referred to by the stack variable 'string_value' upon returning to the caller. This will be a dangling reference
# 316| }
# 317|
# 318|-> return;
# 319| }
# 320|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1076]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:38: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c: scope_hint: In function ‘get_int_for_string’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:360:29: warning[-Wanalyzer-null-dereference]: 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): [#def1077]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:361:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
# 359|
# 360| while (s < t && isspace(*(t-1))) t--;
# 361|-> *t = '\0';
# 362| }
# 363|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1078]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c: scope_hint: In function ‘find_subdevice_name’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:493:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c: scope_hint: In function ‘find_subdevice_name’
# 491| assert(found != NULL);
# 492|
# 493|-> return found->name;
# 494| }
# 495|
Error: CLANG_WARNING: [#def1079]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1050:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1048| {
# 1049| bool temp;
# 1050|-> if ((rc = param_read_bool(plist, (pname = "Duplex"), &temp)) == 0 &&
# 1051| temp && dev->duplex_capability == Duplex_none) {
# 1052| if (dev->printer == pcl3_generic_new || dev->printer == pcl3_generic_old)
Error: CLANG_WARNING: [#def1080]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1070:39: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1068| {
# 1069| bool temp;
# 1070|-> if ((rc = param_read_bool(plist, (pname = "ManualFeed"), &temp)) == 0)
# 1071| dev->file_data.manual_feed = temp;
# 1072| else if (rc < 0) last_error = rc;
Error: CLANG_WARNING: [#def1081]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1107:36: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1105|
# 1106| /* Media destination */
# 1107|-> if ((rc = param_read_int(plist, (pname = "%MediaDestination"),
# 1108| &data->media_destination)) < 0) last_error = rc;
# 1109|
Error: CLANG_WARNING: [#def1082]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1111:36: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1109|
# 1110| /* Media source */
# 1111|-> if ((rc = param_read_int(plist, (pname = "%MediaSource"),
# 1112| &data->media_source)) < 0) last_error = rc;
# 1113| else if (rc == 0 && dev->is_open) gs_closedevice(device);
Error: CLANG_WARNING: [#def1083]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1178:37: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1176|
# 1177| /* Raster Graphics Quality */
# 1178|-> if ((rc = param_read_null(plist, (pname = "RasterGraphicsQuality"))) == 0)
# 1179| ; /* ignore */
# 1180| else if (rc < 0 &&
Error: CLANG_WARNING: [#def1084]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1197:39: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1195| {
# 1196| bool temp;
# 1197|-> if ((rc = param_read_bool(plist, (pname = "SendBlackLast"), &temp)) == 0)
# 1198| data->order_CMYK = temp;
# 1199| else if (rc < 0 ) last_error = rc;
Error: CLANG_WARNING: [#def1085]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:1232:39: warning[deadcode.DeadStores]: Although the value stored to 'pname' is used in the enclosing expression, the value is never actually read from 'pname'
# 1230| /* Tumble */
# 1231| if (is_generic_device(dev))
# 1232|-> if ((rc = param_read_bool(plist, (pname = "Tumble"), &dev->tumble)) < 0)
# 1233| last_error = rc;
# 1234|
Error: CPPCHECK_WARNING: [#def1086]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/pclcomp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1087]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/pclgen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1088]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/pclsize.c:123: warning[uninitvar]: Uninitialized variable: &key.ps
# 121|
# 122| key.mc = ms_without_flags(code) |( code & PCL_CARD_FLAG);
# 123|-> result = (const CodeEntry *)bsearch(&key, table->code_map, array_size(code_map),
# 124| sizeof(CodeEntry), cmp_by_size);
# 125|
Error: CPPCHECK_WARNING (CWE-457): [#def1089]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/pclsize.c:164: warning[uninitvar]: Uninitialized variable: &key.mc
# 162|
# 163| key.ps = code;
# 164|-> result = (const CodeEntry *)bsearch(&key, table->inverse_map,
# 165| array_size(code_map), sizeof(CodeEntry), cmp_by_code);
# 166| if (result == NULL) {
Error: CPPCHECK_WARNING: [#def1090]
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1091]
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c: scope_hint: In function ‘cups_print_pages’
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:2994:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c: scope_hint: In function ‘cups_print_pages’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:142: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:70: included_from: Included from here.
/usr/include/stdio.h:873:12: note: argument 1 of ‘fileno’ must be non-null
# 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: CLANG_WARNING: [#def1092]
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:3213:3: warning[deadcode.DeadStores]: Value stored to 'width_old' is never read
# 3211|
# 3212| sp_old = ((gx_device_printer *)pdev)->space_params;
# 3213|-> width_old = pdev->width;
# 3214| height_old = pdev->height;
# 3215| transp_old = cups->page_uses_transparency;
Error: CLANG_WARNING: [#def1093]
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:3214:3: warning[deadcode.DeadStores]: Value stored to 'height_old' is never read
# 3212| sp_old = ((gx_device_printer *)pdev)->space_params;
# 3213| width_old = pdev->width;
# 3214|-> height_old = pdev->height;
# 3215| transp_old = cups->page_uses_transparency;
# 3216| size_set = param_read_float_array(plist, ".MediaSize", &arrayval) == 0 ||
Error: CPPCHECK_WARNING: [#def1094]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev3852.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1095]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c: scope_hint: In function ‘t4693d_print_page’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:124:35: warning[-Wanalyzer-infinite-loop]: infinite loop
# 122| *p++ = (char)0x81;
# 123|
# 124|-> for (checksum = 0, i = 0; &header[i] != p; i++)
# 125| checksum += header[i];
# 126|
Error: CPPCHECK_WARNING: [#def1096]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1097]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:784:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 782| line_count = pdev->height - 1; /* default when LastLine == 0, FirstLine == 0 */
# 783| for (i = 0; i <= line_count; i++, lnum += step) {
# 784|-> if ((code = gdev_prn_get_bits(pdev, lnum, in, &data)) < 0)
# 785| goto done;
# 786| if (!nul)
Error: CPPCHECK_WARNING: [#def1098]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbj10.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1099]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1100]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1101]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:1150:13: warning[deadcode.DeadStores]: Although the value stored to 'ncode' is used in the enclosing expression, the value is never actually read from 'ncode'
# 1148| bjc_ditheringTypeStrings, ¶ms->ditheringType, code);
# 1149|
# 1150|-> switch (ncode = param_read_int(plist,
# 1151| oname = BJC_OPTION_MEDIAWEIGHT, ¶ms->mediaWeight)) {
# 1152| case 0:
Error: CLANG_WARNING: [#def1102]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:1204:13: warning[deadcode.DeadStores]: Value stored to 'ncode' is never read
# 1202| if ( hwra.data[0] <= 0 || hwra.data[1] <= 0 ||
# 1203| hwra.data[0] != hwra.data[1] )
# 1204|-> ncode = gs_error_rangecheck;
# 1205| else {
# 1206| #ifdef BJC_STRICT
Error: CLANG_WARNING: [#def1103]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:2104:5: warning[deadcode.DeadStores]: Value stored to 'databuff_size' is never read
# 2102|
# 2103| if (bits_per_pixel == 1) { /* Data printed direct from i/p */
# 2104|-> databuff_size = 0; /* so no data buffer required, */
# 2105| outbuff_size = plane_size * 4; /* but need separate output buffers */
# 2106| }
Error: CLANG_WARNING: [#def1104]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:2477:11: warning[deadcode.DeadStores]: Value stored to 'this_pass' is never read
# 2475| * current pass of the print head, we're
# 2476| * better off printing blanks. */
# 2477|-> this_pass -= num_blank_lines;
# 2478| if (combined_escapes) {
# 2479| gp_fputc('y', prn_stream); /* Clear current and seed rows */
Error: CLANG_WARNING: [#def1105]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:2494:15: warning[deadcode.DeadStores]: Value stored to 'num_blank_lines' is never read
# 2492| if (ptype == DNJ650C) {
# 2493| gp_fprintf (prn_stream, "\033*b%dY", num_blank_lines);
# 2494|-> num_blank_lines = 0;
# 2495| }
# 2496| else {
Error: CLANG_WARNING: [#def1106]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:2508:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 2506| gp_fprintf(prn_stream, "\033*b%dY", num_blank_lines);
# 2507| }
# 2508|-> memset(plane_data[1 - scan][0], 0, plane_size * num_comps);
# 2509| num_blank_lines = 0;
# 2510| this_pass = start_rows;
Error: CLANG_WARNING: [#def1107]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:2513:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2511| }
# 2512| { /* Printing non-blank lines */
# 2513|-> register byte *kP = plane_data[scan + 2][3];
# 2514| register byte *cP = plane_data[scan + 2][2];
# 2515| register byte *mP = plane_data[scan + 2][1];
Error: CLANG_WARNING: [#def1108]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:3242:26: warning[deadcode.DeadStores]: Although the value stored to 'endline' is used in the enclosing expression, the value is never actually read from 'endline'
# 3240|
# 3241| in = start + endline * 2;
# 3242|-> out = start + (endline *= 4);
# 3243|
# 3244| while (in > start) {
Error: CPPCHECK_WARNING: [#def1109]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcif.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1110]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1111]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:398:48: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 396|
# 397| /* eleminate trailing 0's */
# 398|-> while ((p_end > p_start) && (p_end[-1] == 0))
# 399| p_end--;
# 400|
Error: CLANG_WARNING: [#def1112]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:655:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 653|
# 654| gs_c_param_list_write(&alist, pdev->memory);
# 655|-> code = param_write_float_array((gs_param_list *)&alist, ".MediaSize", &pf_array);
# 656| gs_c_param_list_read(&alist);
# 657|
Error: CPPCHECK_WARNING: [#def1113]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcmykog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1114]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcslw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1115]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1116]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1117]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c: scope_hint: In function ‘mode2compress’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c:267:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘row’
# 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: CLANG_WARNING: [#def1118]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c:267:16: warning[core.NullDereference]: Dereference of null pointer
# 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: [#def1119]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdljm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1120]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdljm.c:217:21: warning[deadcode.DeadStores]: Value stored to 'num_blank_lines' is never read
# 215| if (num_blank_lines > 0)
# 216| gp_fputs("\033*b0W", prn_stream);
# 217|-> num_blank_lines = 0;
# 218| #else
# 219| for (; num_blank_lines; num_blank_lines--)
Error: CPPCHECK_WARNING: [#def1121]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdm24.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1122]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1123]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:979: warning[nullPointer]: Possible null pointer dereference: dh.data
# 977| code = 0;
# 978| for (i=0; i<dh.size; i++) {
# 979|-> val = dh.data[i];
# 980| if ((val >= '0') && (val <= '9'))
# 981| val = val - '0';
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1124]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c: scope_hint: In function ‘display_alloc_bitmap’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:1687:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf_space.bits’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:40: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:142:28: note: in expansion of macro ‘gs_log_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gserrors.h:143:34: note: in expansion of macro ‘gs_note_error’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:1541:9: note: in expansion of macro ‘return_error’
# 1685| display_size_buf_device(&buf_space, (gx_device *)ddev,
# 1686| NULL, ddev->height, false);
# 1687|-> ddev->zBitmapSize = buf_space.bits + buf_space.line_ptrs;
# 1688|
# 1689| if (ddev->callback->version_major > DISPLAY_VERSION_MAJOR_V2 ||
Error: CLANG_WARNING: [#def1125]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:1687:40: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 1685| display_size_buf_device(&buf_space, (gx_device *)ddev,
# 1686| NULL, ddev->height, false);
# 1687|-> ddev->zBitmapSize = buf_space.bits + buf_space.line_ptrs;
# 1688|
# 1689| if (ddev->callback->version_major > DISPLAY_VERSION_MAJOR_V2 ||
Error: CPPCHECK_WARNING: [#def1126]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1127]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1128]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevescp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1129]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfpng.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1130]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevhl7x.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1131]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevicov.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1132]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevifno.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1133]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevijs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1134]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevijs.c:1050:9: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1048| unsigned char *actual_data;
# 1049| ijs_client_begin_cmd (ijsdev->ctx, IJS_CMD_BEGIN_PAGE);
# 1050|-> status = ijs_client_send_cmd_wait(ijsdev->ctx);
# 1051|
# 1052| for (y = 0; y < ijs_height; y++) {
Error: CPPCHECK_WARNING: [#def1135]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevimgn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1136]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevimgn.c:259:15: warning[deadcode.DeadStores]: Value stored to 'hexList' during its initialization is never read
# 257| iWrite(gp_file *Out, byte Val)
# 258| { /* iWrite */
# 259|-> const char *hexList = "0123456789ABCDEF";
# 260|
# 261| /* if we are doing byte-stream, quote characters that would otherwise
Error: CLANG_WARNING: [#def1137]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevimgn.c:438:5: warning[deadcode.DeadStores]: Value stored to 'swatchLine' is never read
# 436|
# 437| /* get scan lines to fill swatches */
# 438|-> swatchLine = 0;
# 439| lastLine = VertBytesPerSw - 1;
# 440|
Error: CLANG_WARNING: [#def1138]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:197:5: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 195| return code;
# 196|
# 197|-> ecode = 0;
# 198| if ((code = gx_downscaler_write_params(plist, &jdev->downscale, 0)) < 0)
# 199| ecode = code;
Error: CLANG_WARNING: [#def1139]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:199:9: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 197| ecode = 0;
# 198| if ((code = gx_downscaler_write_params(plist, &jdev->downscale, 0)) < 0)
# 199|-> ecode = code;
# 200| if ((ecode = param_write_int(plist, "JPEGQ", &jdev->JPEGQ)) < 0)
# 201| code = ecode;
Error: CPPCHECK_WARNING: [#def1140]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevl31s.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1141]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevl31s.c:130: error[ctuPointerArith]: Pointer arithmetic overflow; 'buffer' buffer size is 4096
# 128| lj3100sw_output_data_byte(gp_file *prn_stream, char *buffer, char **pptr, int val)
# 129| {
# 130|-> if (*pptr >= buffer + BUFFERSIZE)
# 131| lj3100sw_flush_buffer(prn_stream, buffer, pptr);
# 132| *(*pptr)++ = val;
Error: CPPCHECK_WARNING: [#def1142]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlbp8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1143]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlxm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1144]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlxm.c:203:17: warning[deadcode.DeadStores]: Value stored to 'lnum' is never read
# 201| /* now l is the next non-blank scan line */
# 202| if (l >= pdev->height) {/* if there are no more bits on this page */
# 203|-> lnum = l;
# 204| break; /* end the loop and eject the page*/
# 205| }
Error: CPPCHECK_WARNING: [#def1145]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1146]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmiff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1147]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevo182.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1148]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevo182.c:117:23: warning[deadcode.DeadStores]: Although the value stored to 'inPtr' is used in the enclosing expression, the value is never actually read from 'inPtr'
# 115| if (*(inPtr += lineSize) & bitMask)
# 116| outByte += 0x20;
# 117|-> if (*(inPtr += lineSize) & bitMask)
# 118| outByte += 0x40;
# 119|
Error: CPPCHECK_WARNING: [#def1149]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevokii.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1150]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1151]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:541:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 539| const char *vname;
# 540|
# 541|-> if ((code = param_read_string_array(plist, "OutputIntent", &intent)) == 0) {
# 542| /* This device does not use the OutputIntent parameter.
# 543| We include this code just as a sample how to handle it.
Error: CPPCHECK_WARNING (CWE-457): [#def1152]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:1258: warning[uninitvar]: Uninitialized variable: raw
# 1256| if (x > end)
# 1257| outp -= 3;
# 1258|-> if (gp_fwrite(raw, 1, outp - raw, pstream) != outp - raw)
# 1259| return_error(gs_error_ioerror);
# 1260| }
Error: CPPCHECK_WARNING: [#def1153]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1154]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1155]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1156]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:609: error[uninitvar]: Uninitialized variable: buf
# 607|
# 608| do {
# 609|-> stream_cursor_write_init(&w, buf, sizeof(buf));
# 610| status = (*templat->process) (st, &r, &w, true);
# 611| stream_write(s, buf, (uint) (w.ptr + 1 - buf));
Error: CPPCHECK_WARNING: [#def1157]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1158]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c:1531:25: warning[core.DivideZero]: Division by zero
# 1529| maxim = max( c, max( m, y ) );
# 1530|
# 1531|-> c = ( 255 * c ) / maxim;
# 1532| m = ( 255 * m ) / maxim;
# 1533| y = ( 255 * y ) / maxim;
Error: CLANG_WARNING: [#def1159]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c:3164:71: warning[core.DivideZero]: Division by zero
# 3162| pixel = ( ( pixel - htone->mval ) * 2 - 1 ) / 2;
# 3163| else
# 3164|-> pixel = ( pixel - htone->mval ) * 255 / ( 255 - htone->mval );
# 3165| }
# 3166| else {
Error: CPPCHECK_WARNING: [#def1160]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1161]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1162]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1163]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1164]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:536:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 534| goto done;
# 535| }
# 536|-> code = 0; /* for normal path */
# 537| /* set up the output control */
# 538| png_set_write_fn(png_ptr, file, my_png_write, my_png_flush);
Error: CLANG_WARNING: [#def1165]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:622:9: warning[deadcode.DeadStores]: Value stored to 'valid' is never read
# 620| #endif
# 621| num_palette = num_colors;
# 622|-> valid |= PNG_INFO_PLTE;
# 623| for (i = 0; i < num_colors; i++) {
# 624| (*dev_proc(pdev, map_color_rgb)) ((gx_device *) pdev,
Error: CLANG_WARNING: [#def1166]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:920:5: warning[deadcode.DeadStores]: Value stored to 'ecode' is never read
# 918| code = param_write_int(plist, "BackgroundColor",
# 919| &(ppdev->background));
# 920|-> ecode = 0;
# 921| if ((ecode = gx_downscaler_write_params(plist, &ppdev->downscale, 0)) < 0)
# 922| code = ecode;
Error: CPPCHECK_WARNING: [#def1167]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1168]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:1458:50: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value
# 1456|
# 1457| for (; chan_idx < xc->num_channels; chan_idx++) {
# 1458|-> sep_num = xc->chnl_to_orig_sep[chan_idx] - NUM_CMYK_COMPONENTS - has_tags;
# 1459| separation_name = &(pdev->devn_params.separations.names[sep_num]);
# 1460| chan_names_len += (separation_name->size + 1);
Error: CPPCHECK_WARNING: [#def1169]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpxut.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1170]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevrinkj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1171]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevsj48.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1172]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1173]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2305:4: warning[deadcode.DeadStores]: Value stored to 'y' is never read
# 2303|
# 2304| k = stc_expand(sd,3, color & l); color >>= shift;
# 2305|-> y = stc_expand(sd,2, color & l); color >>= shift;
# 2306| m = stc_expand(sd,1, color & l); color >>= shift;
# 2307| c = stc_expand(sd,0, color & l);
Error: CLANG_WARNING: [#def1174]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2717:4: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2715| # undef stc_write_int
# 2716|
# 2717|-> code = param_write_string(plist,"escp_Init",&sd->stc.escp_init);
# 2718| code = param_write_string(plist,"escp_Release",&sd->stc.escp_release);
# 2719|
Error: CLANG_WARNING: [#def1175]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2718:4: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2716|
# 2717| code = param_write_string(plist,"escp_Init",&sd->stc.escp_init);
# 2718|-> code = param_write_string(plist,"escp_Release",&sd->stc.escp_release);
# 2719|
# 2720| if(sd->stc.dither != NULL) {
Error: CLANG_WARNING: [#def1176]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2806:4: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2804| * do not work any more. So read them here for heavens sake.
# 2805| */
# 2806|-> code = param_read_string(plist,"Version",&ps);
# 2807| code = param_read_int(plist,"BitsPerComponent",&i);
# 2808| code = param_read_string_array(plist,"Algorithms",&psa);
Error: CLANG_WARNING: [#def1177]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2807:4: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2805| */
# 2806| code = param_read_string(plist,"Version",&ps);
# 2807|-> code = param_read_int(plist,"BitsPerComponent",&i);
# 2808| code = param_read_string_array(plist,"Algorithms",&psa);
# 2809|
Error: CLANG_WARNING: [#def1178]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:2808:4: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2806| code = param_read_string(plist,"Version",&ps);
# 2807| code = param_read_int(plist,"BitsPerComponent",&i);
# 2808|-> code = param_read_string_array(plist,"Algorithms",&psa);
# 2809|
# 2810| /*
Error: CPPCHECK_WARNING: [#def1179]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1180]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1181]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1182]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc4.c:47:5: warning[deadcode.DeadStores]: Value stored to 'md' is never read
# 45| register long md, d;
# 46|
# 47|-> md = 16777216; /* plenty */
# 48|
# 49| /*
Error: CLANG_WARNING: [#def1183]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc4.c:111:10: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd'
# 109| dy = y*(y-(z>>1));
# 110| if ((d = dx2 + dy + dz2) < md) {md = d; p = colour[5];}
# 111|-> if ((d = dx + dy + dz) < md) {p = colour[4];}
# 112| return(p);
# 113| }
Error: CLANG_WARNING: [#def1184]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc4.c:167:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 165| }
# 166|
# 167|-> p = in;
# 168|
# 169| fb = below[2];
Error: CPPCHECK_WARNING: [#def1185]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1186]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtifs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1187]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtifs.c:477:9: warning[deadcode.DeadStores]: Value stored to 'filtered_count' is never read
# 475| for (row -= line_lag ; row < dev->height && code >= 0; row++)
# 476| {
# 477|-> filtered_count = min_feature_size_process(data, min_feature_data);
# 478| code = TIFFWriteScanline(tif, data, row, 0);
# 479| }
Error: CPPCHECK_WARNING: [#def1188]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtknk.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1189]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1190]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:1216:5: warning[deadcode.DeadStores]: Value stored to 'pdev_sep' is never read
# 1214| pdev = pdev->child;
# 1215| ppdev = (gx_device_printer *)pdev;
# 1216|-> pdev_sep = (tiffsep1_device *)pdev;
# 1217|
# 1218| ppdev->file = NULL;
Error: CLANG_WARNING: [#def1191]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:2512:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2510| }
# 2511| for (comp_num = 0; comp_num < num_comp; comp_num++ ) {
# 2512|-> int sep_num = map_comp_to_sep[comp_num];
# 2513|
# 2514| code = create_separation_file_name((tiffsep_device *)tfdev, name,
Error: CLANG_WARNING: [#def1192]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:2573:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2571| params.raster = bitmap_raster(width * pdev->color_info.depth);
# 2572|
# 2573|-> code = 0;
# 2574| for (comp_num = 0; comp_num < num_comp; comp_num++) {
# 2575| planes[comp_num] = gs_alloc_bytes(pdev->memory, raster_plane,
Error: CLANG_WARNING: [#def1193]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:2578:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2576| "tiffsep1_print_page");
# 2577| if (planes[comp_num] == NULL) {
# 2578|-> code = gs_error_VMerror;
# 2579| break;
# 2580| }
Error: CPPCHECK_WARNING: [#def1194]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevupd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def1195]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevupd.c:3517: error[integerOverflow]: Signed integer overflow for expression 'hv-lv'.
# 3515| upd->valbuf[i] = v;
# 3516| }
# 3517|-> scale = (float) comp->threshold / (float) (hv - lv);
# 3518| lv += (int32_t)(comp->threshold / (2*scale));
# 3519| for(i = icomp; i < upd->nvalbuf; i += upd->ncomp)
Error: CPPCHECK_WARNING: [#def1196]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1197]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:164: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 162| x_finalize, st_device_bbox, buffer);
# 163|
# 164|-> x_device(gs_x11_device,
# 165| std_device_color_stype_body(gx_device_X,
# 166| gdev_x_initialize_device_procs,
Error: CPPCHECK_WARNING (CWE-758): [#def1198]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:173: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 171| 24, 255, 256 ))
# 172|
# 173|-> x_device(gs_x11alpha_device,
# 174| std_device_dci_alpha_type_body(gx_device_X,
# 175| gdev_x_initialize_device_procs,
Error: CPPCHECK_WARNING (CWE-758): [#def1199]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:871: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 869| update_init(gx_device_X *xdev)
# 870| {
# 871|-> xdev->update.box.p.x = xdev->update.box.p.y = max_int_in_fixed;
# 872| xdev->update.box.q.x = xdev->update.box.q.y = min_int_in_fixed;
# 873| xdev->update.area = xdev->update.total = xdev->update.count = 0;
Error: CPPCHECK_WARNING (CWE-758): [#def1200]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:872: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 870| {
# 871| xdev->update.box.p.x = xdev->update.box.p.y = max_int_in_fixed;
# 872|-> xdev->update.box.q.x = xdev->update.box.q.y = min_int_in_fixed;
# 873| xdev->update.area = xdev->update.total = xdev->update.count = 0;
# 874| }
Error: CPPCHECK_WARNING (CWE-758): [#def1201]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:881: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 879| {
# 880| flush_text(xdev);
# 881|-> if (xdev->update.box.q.x == min_int_in_fixed || xdev->update.box.q.y == min_int_in_fixed)
# 882| return;
# 883| if (xdev->update.box.p.x == max_int_in_fixed || xdev->update.box.p.y == max_int_in_fixed)
Error: CPPCHECK_WARNING (CWE-758): [#def1202]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:883: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 881| if (xdev->update.box.q.x == min_int_in_fixed || xdev->update.box.q.y == min_int_in_fixed)
# 882| return;
# 883|-> if (xdev->update.box.p.x == max_int_in_fixed || xdev->update.box.p.y == max_int_in_fixed)
# 884| return;
# 885| if (xdev->update.count != 0) {
Error: CPPCHECK_WARNING: [#def1203]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1204]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxcf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1205]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxcmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1206]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxini.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1207]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gxfcopy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1208]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gxfcopy.c:515:13: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 513| if ((options & COPY_GLYPH_NO_OLD) ||
# 514| pcg->gdata.size != prefix_bytes + size ||
# 515|-> memcmp(pcg->gdata.data, prefix, prefix_bytes) ||
# 516| memcmp(pcg->gdata.data + prefix_bytes,
# 517| pgdata->bits.data, size)
Error: CLANG_WARNING: [#def1209]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gxfcopy.c:1478:23: warning[core.NullDereference]: Access to field 'used' results in a dereference of a null pointer (loaded from variable 'pcg')
# 1476| pmetrics[2] = (byte)(sb >> 8);
# 1477| pmetrics[3] = (byte)sb;
# 1478|-> pcg->used |= HAS_SBW0 << i;
# 1479| }
# 1480| factor = -factor; /* values are negated for WMode = 1 */
Error: CPPCHECK_WARNING (CWE-758): [#def1210]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gxfcopy.c:2205: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2203| code = uid_copy(&bfont->UID, mem, "gs_copy_font(UID)");
# 2204| if (code < 0) {
# 2205|-> uid_set_invalid(&bfont->UID);
# 2206| goto fail;
# 2207| }
Error: CPPCHECK_WARNING: [#def1211]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/minftrsz.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1212]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def1213]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:156: error[memleak]: Memory leak: alloced
# 154| result = (void *)(pad + (char *)alloced);
# 155| ((int *)result)[-1] = pad;
# 156|-> return result;
# 157| }
# 158|
Error: CLANG_WARNING: [#def1214]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:826:36: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 824| char *rslut = ctx->rs_lut;
# 825|
# 826|-> count[plane_idx] = src_p->length;
# 827| src_pixel = src_p->value;
# 828| iml[plane_idx] = lut[src_pixel];
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1215]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c: scope_hint: In function ‘even_better_compress_rll’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1406:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 1404| if (count > 0xffff - whole || val != last_val)
# 1405| {
# 1406|-> dst[rll_idx].length = count;
# 1407| dst[rll_idx].value = last_val;
# 1408| rll_idx++;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1216]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1424:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 1422| if (count >= 0xffff - whole || val != last_val)
# 1423| {
# 1424|-> dst[rll_idx].length = count;
# 1425| dst[rll_idx].value = last_val;
# 1426| rll_idx++;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1217]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1439:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 1437| }
# 1438| }
# 1439|-> dst[rll_idx].length = count;
# 1440| dst[rll_idx].value = last_val;
# 1441| rll_idx++;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1218]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c: scope_hint: In function ‘even_better_plane_new’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1551:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 1549| result = (EBPlaneCtx *)malloc (sizeof(EBPlaneCtx));
# 1550|
# 1551|-> result->source_width = source_width;
# 1552| result->dest_width = dest_width;
# 1553|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1219]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1569:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_lut’
# 1567| else
# 1568| nli = lut[i] >> (24 - EVEN_SHIFT);
# 1569|-> new_lut[i] = (1 << EVEN_SHIFT) - nli;
# 1570| }
# 1571|
Error: CLANG_WARNING: [#def1220]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1573:20: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'char', which is incompatible with sizeof operand type 'int'
# 1571|
# 1572| rb_lut = (int *)malloc ((ET_SRC_MAX + 1) * sizeof(int));
# 1573|-> rs_lut = (char *)malloc ((ET_SRC_MAX + 1) * sizeof(int));
# 1574|
# 1575| log2_levels = even_log2 (params->levels);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1221]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1594:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rs_lut’
# 1592|
# 1593| rs = eb_compute_randshift(nl, rs_base, do_shadows, params->levels);
# 1594|-> rs_lut[i] = rs;
# 1595|
# 1596| if (params->do_shadows)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1222]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1611:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rb_lut’
# 1609| }
# 1610| }
# 1611|-> rb_lut[i] = rb;
# 1612|
# 1613| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1223]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1639:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
# 1637| for (i = 0; i < dest_width; i++)
# 1638| {
# 1639|-> result->a_line[i] = 1;
# 1640| result->b_line[i] = 1;
# 1641| result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1224]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1640:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
# 1638| {
# 1639| result->a_line[i] = 1;
# 1640|-> result->b_line[i] = 1;
# 1641| result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);
# 1642| if (do_shadows)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1225]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1641:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)dest_width, 4)’
# 1639| result->a_line[i] = 1;
# 1640| result->b_line[i] = 1;
# 1641|-> result->iir_line[i] = -((rand () & 0x7fff) << 6) >> (24 - EVEN_SHIFT);
# 1642| if (do_shadows)
# 1643| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1226]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c: scope_hint: In function ‘even_better_new’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1686:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 1684| }
# 1685|
# 1686|-> result->source_width = params->source_width;
# 1687| result->dest_width = params->dest_width;
# 1688| result->n_planes = n_planes;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1227]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1697:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)n_planes * 4)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1695|
# 1696| result->strengths = (int *)malloc (sizeof(int) * n_planes);
# 1697|-> memcpy (result->strengths, params->strengths,
# 1698| sizeof(int) * n_planes);
# 1699|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1228]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/evenbetter-rll.c:1754:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)n_planes * 8)’
# 1752| result->plane_ctx = (EBPlaneCtx **)malloc(sizeof(EBPlaneCtx *) * n_planes);
# 1753| for (i = 0; i < n_planes; i++)
# 1754|-> result->plane_ctx[i] = even_better_plane_new (params, result, i);
# 1755| }
# 1756| return result;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1229]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-byte-stream.c: scope_hint: In function ‘rinkj_byte_stream_file_new’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-byte-stream.c:105:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 103|
# 104| result->super.write = rinkj_byte_stream_file_write;
# 105|-> result->f = f;
# 106|
# 107| return &result->super;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1230]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-byte-stream.c:107:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
# 105| result->f = f;
# 106|
# 107|-> return &result->super;
# 108| }
Error: CPPCHECK_WARNING: [#def1231]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1232]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-config.c: scope_hint: In function ‘rinkj_strdup_size’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-config.c:41:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 39|
# 40| result = malloc (size + 1);
# 41|-> memcpy (result, src, size);
# 42| result[size] = 0;
# 43| return result;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1233]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-device.c: scope_hint: In function ‘rinkj_device_set_param’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-device.c:45:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 43| /* This implementation is in terms of device_set, but we're going to
# 44| change the prototype of the device so this is native. */
# 45|-> memcpy (buf, key, keylen);
# 46| memcpy (buf + keylen, ": ", 2);
# 47| memcpy (buf + keylen + 2, value, value_size);
Error: CPPCHECK_WARNING: [#def1234]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1235]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle_dblx’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:586:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 584| s0 = src[i * 2] << pass;
# 585| s1 = src[i * 2 + 1] << pass;
# 586|-> dst[i] = (s0 & 0x80) | ((s0 & 0x20) << 1) | ((s0 & 8) << 2) | ((s0 & 2) << 3) |
# 587| ((s1 & 0x80) >> 4) | ((s1 & 0x20) >> 3) | ((s1 & 8) >> 2) | ((s1 & 2) >> 1);
# 588| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1236]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle_4pass_1bit’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:622:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 620| s2 = src[i * 4 + 2] << shift;
# 621| s3 = src[i * 4 + 3] << shift;
# 622|-> dst[i] = (s0 & 0x80) | ((s0 & 8) << 3) |
# 623| ((s1 & 0x80) >> 2) | ((s1 & 8) << 1) |
# 624| ((s2 & 0x80) >> 4) | ((s2 & 8) >> 1) |
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1237]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle_2pass_2bit’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:664:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 662| s0 = src[i * 2] << shift;
# 663| s1 = src[i * 2 + 1] << shift;
# 664|-> dst[i] = (s0 & 0xc0) | ((s0 & 0x0c) << 2) |
# 665| ((s1 & 0xc0) >> 4) | ((s1 & 0x0c) >> 2);
# 666| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1238]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:670:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 668| {
# 669| s0 = src[n_bytes - 1] << shift;
# 670|-> dst[i] = (s0 & 0xc0) | ((s0 & 0x0c) << 2);
# 671| }
# 672| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1239]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle_4pass_2bit’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:700:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 698| s2 = src[i * 4 + 2] << shift;
# 699| s3 = src[i * 4 + 3] << shift;
# 700|-> dst[i] = (s0 & 0xc0) | ((s1 & 0xc0) >> 2) |
# 701| ((s2 & 0xc0) >> 4) | ((s3 & 0xc0) >> 6);
# 702| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1240]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_1pass_dblx’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:724:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 722| {
# 723| unsigned char s = src[i];
# 724|-> dst[i * 2] = (((s & 0x80) >> 1) | ((s & 0x40) >> 2) |
# 725| ((s & 0x20) >> 3) | ((s & 0x10) >> 4)) * DOT;
# 726| dst[i * 2 + 1] = (((s & 8) << 3) | ((s & 4) << 2) |
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1241]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:737:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle’
# 735|
# 736| for (i = 0; i < n_bytes; i++)
# 737|-> dst[i] = (src[i] >> (1 - x_pass) & 0x55) * DOT;
# 738| }
# 739|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1242]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_sel_shuffle_dblx’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:752:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 750| s0 = src[i * 2] << pass;
# 751| s1 = src[i * 2 + 1] << pass;
# 752|-> dst[i] = (((s0 & 0x80) >> 1) | ((s0 & 8) << 1) |
# 753| ((s1 & 0x80) >> 5) | ((s1 & 0x8) >> 3)) * DOT;
# 754| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1243]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_shuffle’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:769:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dst’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 767| {
# 768| if (passes_per_scan == 1)
# 769|-> memcpy (dst, src, n_bytes);
# 770| else if (passes_per_scan == 2)
# 771| rinkj_escp_shuffle_2pass_2bit (dst, src, pass, n_bytes);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1244]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:787:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dst’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 785| {
# 786| if (passes_per_scan == 1)
# 787|-> memcpy (dst, src, n_bytes);
# 788| else if (passes_per_scan == 2)
# 789| rinkj_escp_shuffle_dblx (dst, src, pass, n_bytes);
Error: CLANG_WARNING: [#def1245]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:816:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 814| for (i = 0; i < n; i += run)
# 815| {
# 816|-> b = src[i];
# 817| for (run = 1; run < 129 && i + run < n; run++)
# 818| if (b != src[i + run])
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1246]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_compress_rle’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:816:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘src’
# 814| for (i = 0; i < n; i += run)
# 815| {
# 816|-> b = src[i];
# 817| for (run = 1; run < 129 && i + run < n; run++)
# 818| if (b != src[i + run])
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1247]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:834:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
# 832| break;
# 833| }
# 834|-> dst[j++] = run - 1;
# 835| memcpy (dst + j, src + i, run);
# 836| j += run;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1248]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_escp_flush’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:951:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘thisbuf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 949| z->passes_per_scan, z->bps, z->head_bps);
# 950| else
# 951|-> memset (thisbuf, 0, xsb_out);
# 952| z->buf_linevalid[bufy * z->num_chan + i] &= ~pass_mask;
# 953| #ifdef VERBOSE
Error: CLANG_WARNING: [#def1249]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:1032:7: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1030| if (data == NULL)
# 1031| {
# 1032|-> status = rinkj_escp_flush_bottom (z);
# 1033| /* todo: check error */
# 1034| status = rinkj_byte_stream_puts (z->out, "\f\033@");
Error: CLANG_WARNING: [#def1250]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:1034:7: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1032| status = rinkj_escp_flush_bottom (z);
# 1033| /* todo: check error */
# 1034|-> status = rinkj_byte_stream_puts (z->out, "\f\033@");
# 1035| /* todo: check error */
# 1036| status = rinkj_byte_stream_close (z->out);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1251]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c: scope_hint: In function ‘rinkj_epson870_new’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:1070:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 1068| result->super.init = rinkj_escp_init;
# 1069| result->super.init_happened = 0;
# 1070|-> result->width = 0;
# 1071| result->out = out;
# 1072|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1252]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-epson870.c:1084:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
# 1082| result->printer_weave = -1;
# 1083|
# 1084|-> return &result->super;
# 1085| }
Error: CPPCHECK_WARNING: [#def1253]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1254]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:172:24: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'uchar *', which is incompatible with sizeof operand type 'char *'
# 170| xsb = (xs * z->bps + 7) >> 3;
# 171|
# 172|-> out_data = (uchar **)malloc (n_planes * sizeof(char *));
# 173| out_buf = (uchar **)malloc (n_planes * sizeof(char *));
# 174| data_permuted = (const uchar **)malloc (n_planes * sizeof(char *));
Error: CLANG_WARNING: [#def1255]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:173:23: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'uchar *', which is incompatible with sizeof operand type 'char *'
# 171|
# 172| out_data = (uchar **)malloc (n_planes * sizeof(char *));
# 173|-> out_buf = (uchar **)malloc (n_planes * sizeof(char *));
# 174| data_permuted = (const uchar **)malloc (n_planes * sizeof(char *));
# 175|
Error: CLANG_WARNING: [#def1256]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:174:35: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'const uchar *', which is incompatible with sizeof operand type 'char *'
# 172| out_data = (uchar **)malloc (n_planes * sizeof(char *));
# 173| out_buf = (uchar **)malloc (n_planes * sizeof(char *));
# 174|-> data_permuted = (const uchar **)malloc (n_planes * sizeof(char *));
# 175|
# 176| for (i = 0; i < n_planes; i++)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1257]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c: scope_hint: In function ‘rinkj_screen_eb_write’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:178:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_data’
# 176| for (i = 0; i < n_planes; i++)
# 177| {
# 178|-> out_data[i] = malloc (xsb);
# 179| out_buf[i] = malloc (xs);
# 180| data_permuted[i] = (const uchar *)data[permutation[i]];
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1258]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:179:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out_buf’
# 177| {
# 178| out_data[i] = malloc (xsb);
# 179|-> out_buf[i] = malloc (xs);
# 180| data_permuted[i] = (const uchar *)data[permutation[i]];
# 181| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1259]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:180:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data_permuted’
# 178| out_data[i] = malloc (xsb);
# 179| out_buf[i] = malloc (xs);
# 180|-> data_permuted[i] = (const uchar *)data[permutation[i]];
# 181| }
# 182|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1260]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c: scope_hint: In function ‘rinkj_screen_eb_new’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:271:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 269| result->super.init = rinkj_screen_eb_init;
# 270| result->super.init_happened = 0;
# 271|-> result->dev_out = dev_out;
# 272| result->lut = NULL;
# 273| result->xscale = 1.0;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1261]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:278:10: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
# 276| result->bps = 1;
# 277|
# 278|-> return &result->super;
# 279| }
# 280|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1262]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c: scope_hint: In function ‘rinkj_screen_eb_set_lut’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/rinkj/rinkj-screen-eb.c:329:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (long unsigned int)i * 4’
# 327| double v;
# 328| v = 1.0 - lut[i];
# 329|-> z->lut[plane][i] = floor (0.5 + 0x1000000 * v);
# 330| }
# 331| }
Error: CPPCHECK_WARNING: [#def1263]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/doc_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1264]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/doc_common.c:530:13: warning[deadcode.DeadStores]: Value stored to 'l' during its initialization is never read
# 528| } else {
# 529| char *b, *u;
# 530|-> int l = length - 1;
# 531|
# 532| /* Real Unicode values should be at least 2 bytes. In fact I think the code assumes exactly
Error: CPPCHECK_WARNING: [#def1265]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevdocxw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1266]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1267]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:566: warning[uninitvar]: Uninitialized variable: key_buf
# 564| for (j = 0; j < key_size; j++)
# 565| key_buf[j] = key[j] ^ (byte)i;
# 566|-> s_arcfour_set_key(&sarc4, key_buf, key_size);
# 567| s_arcfour_process_buffer(&sarc4, data, data_size);
# 568| }
Error: CPPCHECK_WARNING (CWE-758): [#def1268]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:902: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 900| pdev->max_outline_depth = INITIAL_MAX_OUTLINE_DEPTH;
# 901| pdev->outline_levels[0].first.id = 0;
# 902|-> pdev->outline_levels[0].left = max_int;
# 903| pdev->outline_levels[0].first.action = 0;
# 904| pdev->outline_levels[0].last.action = 0;
Error: CPPCHECK_WARNING (CWE-758): [#def1269]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1619: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1617| return(gs_note_error(gs_error_ioerror));
# 1618| }
# 1619|-> if (pos & ASIDES_BASE_POSITION)
# 1620| pos += resource_pos - ASIDES_BASE_POSITION;
# 1621| pos -= pdev->OPDFRead_procset_length;
Error: CPPCHECK_WARNING (CWE-758): [#def1270]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1620: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1618| }
# 1619| if (pos & ASIDES_BASE_POSITION)
# 1620|-> pos += resource_pos - ASIDES_BASE_POSITION;
# 1621| pos -= pdev->OPDFRead_procset_length;
# 1622| if (pos == 0 && index == 0) {
Error: CPPCHECK_WARNING (CWE-758): [#def1271]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1656: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1654| }
# 1655|
# 1656|-> if (pos & ASIDES_BASE_POSITION)
# 1657| pos += resource_pos - ASIDES_BASE_POSITION;
# 1658| pos -= pdev->OPDFRead_procset_length;
Error: CPPCHECK_WARNING (CWE-758): [#def1272]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1657: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1655|
# 1656| if (pos & ASIDES_BASE_POSITION)
# 1657|-> pos += resource_pos - ASIDES_BASE_POSITION;
# 1658| pos -= pdev->OPDFRead_procset_length;
# 1659|
Error: CPPCHECK_WARNING (CWE-758): [#def1273]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1713: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1711|
# 1712| if (!pdev->doubleXref || objstm == 0) {
# 1713|-> if (pos & ASIDES_BASE_POSITION)
# 1714| pos += resource_pos - ASIDES_BASE_POSITION;
# 1715| pos -= pdev->OPDFRead_procset_length;
Error: CPPCHECK_WARNING (CWE-758): [#def1274]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:1714: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1712| if (!pdev->doubleXref || objstm == 0) {
# 1713| if (pos & ASIDES_BASE_POSITION)
# 1714|-> pos += resource_pos - ASIDES_BASE_POSITION;
# 1715| pos -= pdev->OPDFRead_procset_length;
# 1716|
Error: CLANG_WARNING: [#def1275]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdf.c:3341:13: warning[deadcode.DeadStores]: Value stored to 'length' is never read
# 3339| end_section++;
# 3340|
# 3341|-> length += (end_section - start_section) * (offs_bytes + 3);
# 3342|
# 3343| if (pdev->FirstObjectNumber == 1) {
Error: CPPCHECK_WARNING: [#def1276]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1277]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:82: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 80| 12000, /* MaxClipPathSize */ /* HP LaserJet 1320 hangs with 14000. */
# 81| 256000, /* MaxShadingBitmapSize */
# 82|-> PDF_DEVICE_MaxInlineImageSize, /* MaxInlineImageSize */
# 83| {0, 0, 0}, /* OwnerPassword */
# 84| {0, 0, 0}, /* UserPassword */
Error: CPPCHECK_WARNING: [#def1278]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1279]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfc.c:602: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 600| /* Find the legal range for the color components. */
# 601| for (j = 0; j < num_components; ++j)
# 602|-> cmin.paint.values[j] = (float)min_long,
# 603| cmax.paint.values[j] = (float)max_long;
# 604| gs_color_space_restrict_color(&cmin, base_space);
Error: CPPCHECK_WARNING (CWE-758): [#def1280]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfc.c:603: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 601| for (j = 0; j < num_components; ++j)
# 602| cmin.paint.values[j] = (float)min_long,
# 603|-> cmax.paint.values[j] = (float)max_long;
# 604| gs_color_space_restrict_color(&cmin, base_space);
# 605| gs_color_space_restrict_color(&cmax, base_space);
Error: CPPCHECK_WARNING: [#def1281]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1282]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfd.c:770:13: warning[core.NullDereference]: Access to field 'path_valid' results in a dereference of a null pointer (loaded from variable 'pcpath')
# 768| * the clip. However, see below about the path_list.
# 769| */
# 770|-> if (pcpath->path_valid && cpath_is_rectangle(pcpath, &rect)) {
# 771| /* Use unrounded coordinates. */
# 772| pprintg4(s, "%g %g %g %g re",
Error: CLANG_WARNING: [#def1283]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfd.c:2077:17: warning[deadcode.DeadStores]: Value stored to 's' during its initialization is never read
# 2075| gs_path_enum cenum;
# 2076| gdev_vector_dopath_state_t state;
# 2077|-> stream *s = pdev->strm;
# 2078| /*
# 2079| * Check for an empty clipping path.
Error: CPPCHECK_WARNING: [#def1284]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1285]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c: scope_hint: In function ‘pdf_xmp_time’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c:232:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ghostscript-10.03.1-build/ghostscript-10.03.1/base/std.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stdio_.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c:18: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stdpre.h:402:24: note: in definition of macro ‘min’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c:232:5: note: read of 29 bytes from after the end of ‘buf1’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfe.c:232:5: note: valid subscripts for ‘buf1’ are ‘[0]’ to ‘[10]’
# └──────────────────────────────────────────────────────────────────────┘
# ^ ^ ^ ^
# 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: CPPCHECK_WARNING: [#def1286]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1287]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:343:37: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 341| pprintg1(pdev->strm, "%g", psdf_round(pcc->paint.values[0], 255, 8));
# 342| for (i = 1; i < n; i++) {
# 343|-> pprintg1(pdev->strm, " %g", psdf_round(pcc->paint.values[i], 255, 8));
# 344| }
# 345| return 0;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1288]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c: scope_hint: In function ‘pdf_write_ccolor’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:343:65: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pcc.paint.values[i]’
# 341| pprintg1(pdev->strm, "%g", psdf_round(pcc->paint.values[0], 255, 8));
# 342| for (i = 1; i < n; i++) {
# 343|-> pprintg1(pdev->strm, " %g", psdf_round(pcc->paint.values[i], 255, 8));
# 344| }
# 345| return 0;
Error: CLANG_WARNING: [#def1289]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:392:53: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value
# 390| color_index = pdev->pcm_color_info_index;
# 391| pdf_set_process_color_model(pdev, 0);
# 392|-> psrc[0] = (unsigned short) (pcc->paint.values[0]*65535.0);;
# 393| conc[0] = ushort2frac(psrc[0]);
# 394|
Error: CLANG_WARNING: [#def1290]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:415:57: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value
# 413| pdf_set_process_color_model(pdev, 1);
# 414| for (i=0;i<3;i++) {
# 415|-> psrc[i] = (unsigned short) (pcc->paint.values[i]*65535.0);;
# 416| conc[i] = ushort2frac(psrc[i]);
# 417| }
Error: CLANG_WARNING: [#def1291]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:859:101: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value
# 857| }
# 858| for (j = 0;j < pdev->color_info.num_components;j++)
# 859|-> data_buff[(loop * pdev->color_info.num_components) + j] = (int)(cc1.paint.values[j] * 255);
# 860| }
# 861| }
Error: CLANG_WARNING: [#def1292]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:2481:5: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 2479| /* Use Black, Gray as the Default unless we are in RGB colormodel */
# 2480| /* (num_comp < 4) in which case we use Green (arbitrarily) */
# 2481|-> pprintld1(s, "<</Type/Halftone/HalftoneType 5/Default %ld 0 R\n",
# 2482| pdht->num_comp > 3 ? ht_ids[3] : ht_ids[1]);
# 2483| pprintld2(s, "/Red %ld 0 R/Cyan %ld 0 R", ht_ids[0], ht_ids[0]);
Error: CLANG_WARNING: [#def1293]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfg.c:2485:5: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 2483| pprintld2(s, "/Red %ld 0 R/Cyan %ld 0 R", ht_ids[0], ht_ids[0]);
# 2484| pprintld2(s, "/Green %ld 0 R/Magenta %ld 0 R", ht_ids[1], ht_ids[1]);
# 2485|-> pprintld2(s, "/Blue %ld 0 R/Yellow %ld 0 R", ht_ids[2], ht_ids[2]);
# 2486| if (pdht->num_comp > 3)
# 2487| pprintld2(s, "/Gray %ld 0 R/Black %ld 0 R", ht_ids[3], ht_ids[3]);
Error: CPPCHECK_WARNING: [#def1294]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1295]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:1374:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1372| pdf_make_bitmap_matrix(&bmat, -rect.p.x, -rect.p.y,
# 1373| pim->Width, pim->Height, height);
# 1374|-> if ((code = gs_matrix_invert(&pim->ImageMatrix, &mat)) < 0 ||
# 1375| (code = gs_matrix_multiply(&bmat, &mat, &mat)) < 0 ||
# 1376| (code = gs_matrix_multiply(&mat, pmat, &pie->mat)) < 0
Error: CLANG_WARNING: [#def1296]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:1375:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1373| pim->Width, pim->Height, height);
# 1374| if ((code = gs_matrix_invert(&pim->ImageMatrix, &mat)) < 0 ||
# 1375|-> (code = gs_matrix_multiply(&bmat, &mat, &mat)) < 0 ||
# 1376| (code = gs_matrix_multiply(&mat, pmat, &pie->mat)) < 0
# 1377| )
Error: CLANG_WARNING: [#def1297]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:1376:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1374| if ((code = gs_matrix_invert(&pim->ImageMatrix, &mat)) < 0 ||
# 1375| (code = gs_matrix_multiply(&bmat, &mat, &mat)) < 0 ||
# 1376|-> (code = gs_matrix_multiply(&mat, pmat, &pie->mat)) < 0
# 1377| )
# 1378| goto exit;
Error: CLANG_WARNING: [#def1298]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:2043:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2041| pie->writer.alt_writer_count--; /* For GC. */
# 2042| } else {
# 2043|-> code = pdf_end_image_binary(pdev, &pie->writer, data_height);
# 2044| code = pdf_end_abort_image(pdev, &pie->writer);
# 2045| pie->writer.alt_writer_count--; /* For GC. */
Error: CLANG_WARNING: [#def1299]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:2328:51: warning[core.NullDereference]: Dereference of null pointer
# 2326| if (DoMatte) {
# 2327| code = cos_dict_put_c_key_floats((gx_device_pdf *)dev,
# 2328|-> (cos_dict_t *)pmie->writer.pres->object,
# 2329| "/Matte", pixm->Matte,
# 2330| num_components);
Error: CLANG_WARNING: [#def1300]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:2779:36: warning[core.NullDereference]: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from field 'v_memory')
# 2777| pdepth++;
# 2778| }
# 2779|-> gs_free_object(pdev->pdf_memory->non_gc_memory, pdev->initial_pattern_states, "Freeing dangling pattern state stack");
# 2780| }
# 2781|
Error: CLANG_WARNING: [#def1301]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfi.c:2886:36: warning[core.NullDereference]: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from field 'v_memory')
# 2884| pdev->initial_pattern_states[pdev->PatternDepth - 1] = NULL;
# 2885| if (pdev->PatternDepth == 1) {
# 2886|-> gs_free_object(pdev->pdf_memory->non_gc_memory, pdev->initial_pattern_states, "Freeing dangling pattern state");
# 2887| pdev->initial_pattern_states = NULL;
# 2888| }
Error: CPPCHECK_WARNING: [#def1302]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1303]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfj.c:113:32: warning[core.UndefinedBinaryOperatorResult]: The right operand of '!=' is a garbage value
# 111|
# 112| for (i = 0; i < num_components * 2; ++i) {
# 113|-> if (pim->Decode[i] !=
# 114| (default_decode ? default_decode[i] : i & 1)
# 115| )
Error: CPPCHECK_WARNING: [#def1304]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1305]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c:81:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 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): [#def1306]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c:184: warning[uninitvar]: Uninitialized variable: in
# 182| for (j = 0; j < ncomp; ++j)
# 183| in[j] = (i & (1 << j) ? ranges[j].rmax : ranges[j].rmin);
# 184|-> if (cie_to_xyz(in, xyz, pcs, pgs, pciec) >= 0) {
# 185| double lab[3];
# 186|
Error: CLANG_WARNING: [#def1307]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c:279:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 277| goto error;
# 278|
# 279|-> code = cos_dict_put_c_key_real(pcd, "/Gamma", pcs->params.calgray.Gamma);
# 280|
# 281| code = cos_array_add_c_string(pca, "/CalGray");
Error: CPPCHECK_WARNING (CWE-457): [#def1308]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c:855: warning[uninitvar]: Uninitialized variable: in
# 853| in[j] = cache_arg(n % num_points, num_points - 1,
# 854| (pnt->ranges ? pnt->ranges + j : NULL));
# 855|-> cie_to_xyz(in, xyz, pcs, pgs, pciec);
# 856| /*
# 857| * NOTE: Due to an obscure provision of the ICC Profile
Error: CPPCHECK_WARNING (CWE-190): [#def1309]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfk.c:1043: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1041| set_uint32(p + 4, offset);
# 1042| set_uint32(p + 8, tables[i].length);
# 1043|-> offset += round_up(tables[i].length, 4);
# 1044| }
# 1045| set_uint32(header, offset);
Error: CPPCHECK_WARNING: [#def1310]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1311]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfm.c:1608:10: warning[deadcode.DeadStores]: Although the value stored to 'present' is used in the enclosing expression, the value is never actually read from 'present'
# 1606|
# 1607| if (!pdfmark_find_key("/Dest", pairs, count, &key) ||
# 1608|-> (present =
# 1609| pdfmark_make_dest(dest, pdev, "/Page", "/View", pairs, count, 1)) < 0
# 1610| )
Error: CPPCHECK_WARNING: [#def1312]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1313]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfo.c:1107:12: warning[deadcode.DeadStores]: Although the value stored to 'Last' is used in the enclosing expression, the value is never actually read from 'Last'
# 1105| *element = 0L;
# 1106|
# 1107|-> Next = Last = pcde;
# 1108|
# 1109| do {
Error: CPPCHECK_WARNING: [#def1314]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1315]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfp.c:751: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 749| pdev->HaveStrokeColor = false;
# 750| cl = (float)1.2; /* Instead pdev->CompatibilityLevel = 1.2; - see below. */
# 751|-> pdev->MaxInlineImageSize = max_long; /* Save printer's RAM from saving temporary image data.
# 752| Immediate images doen't need buffering. */
# 753| pdev->version = psdf_version_level2;
Error: CPPCHECK_WARNING: [#def1316]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1317]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfr.c:328: error[uninitvar]: Uninitialized variable: buf
# 326|
# 327| do {
# 328|-> stream_cursor_write_init(&w, buf, sizeof(buf));
# 329| status = (*s_PSSD_template.process)
# 330| ((stream_state *) & ss, &r, &w, true);
Error: CPPCHECK_WARNING: [#def1318]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdft.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1319]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1320]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:699: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 697|
# 698| if (s == pdev->asides.strm)
# 699|-> pos += ASIDES_BASE_POSITION;
# 700| return pos;
# 701| }
Error: CPPCHECK_WARNING (CWE-457): [#def1321]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:1016: error[uninitvar]: Uninitialized variable: key
# 1014| byte key[16];
# 1015|
# 1016|-> return s_arcfour_set_key(psarc4, key, pdf_object_key(pdev, object_id, key));
# 1017| }
# 1018|
Error: CPPCHECK_WARNING (CWE-457): [#def1322]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:1539: warning[uninitvar]: Uninitialized variable: *pprev
# 1537| for (i = 0; i < NUM_RESOURCE_CHAINS; i++) {
# 1538| pprev = pchain + i;
# 1539|-> for (; (pres = *pprev) != 0; ) {
# 1540| if (cond(pdev, pres)) {
# 1541| *pprev = pres->next;
Error: CLANG_WARNING: [#def1323]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:1742:57: warning[core.NullDereference]: Array access (via field 'ObjStmOffsets') results in a null pointer dereference
# 1740| pdev->strm = pdev->ObjStm.strm;
# 1741| code = pdf_open_obj(pdev, id, type);
# 1742|-> pdev->ObjStmOffsets[pdev->NumObjStmObjects * 2] = code;
# 1743| pdev->ObjStmOffsets[(pdev->NumObjStmObjects * 2) + 1] = pdf_stell(pdev);
# 1744| }
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1324]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c: scope_hint: In function ‘pdf_write_function’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:2991:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value.contents.object’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfu.c:20: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:254:13: note: in definition of macro ‘gs_alloc_struct’
# 2989| if (code < 0)
# 2990| return code;
# 2991|-> *pid = value.contents.object->id;
# 2992| return 0;
# 2993| }
Error: CPPCHECK_WARNING: [#def1325]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1326]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfv.c:963:29: warning[deadcode.DeadStores]: Although the value stored to 'flag' is used in the enclosing expression, the value is never actually read from 'flag'
# 961| case shading_type_Free_form_Gouraud_triangle:
# 962| {
# 963|-> while ((flag = shade_next_flag(&cs, 0)) >= 0){
# 964| code = cs.get_decoded(&cs, 0, NULL, &x);
# 965| if (code < 0)
Error: CPPCHECK_WARNING: [#def1327]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1328]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1329]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtc.c:568:23: warning[core.NullDereference]: Access to field 'FontDescriptor' results in a dereference of a null pointer (loaded from variable 'pdsubf')
# 566| }
# 567| if (subfont->FontType != ft_encrypted && subfont->FontType != ft_encrypted2) {
# 568|-> pfd = pdsubf->FontDescriptor;
# 569| code = pdf_resize_resource_arrays(pdev, pdsubf, cid + 1);
# 570| if (code < 0)
Error: CPPCHECK_WARNING: [#def1330]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1331]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtd.c:416: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 414| members &= ~GLYPH_INFO_BBOX;
# 415| } else {
# 416|-> desc.FontBBox.p.x = desc.FontBBox.p.y = max_int;
# 417| desc.FontBBox.q.x = desc.FontBBox.q.y = min_int;
# 418| }
Error: CPPCHECK_WARNING (CWE-758): [#def1332]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtd.c:417: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 415| } else {
# 416| desc.FontBBox.p.x = desc.FontBBox.p.y = max_int;
# 417|-> desc.FontBBox.q.x = desc.FontBBox.q.y = min_int;
# 418| }
# 419| /*
Error: CPPCHECK_WARNING (CWE-758): [#def1333]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtd.c:495: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 493| }
# 494| if (info.width[wmode].y != 0)
# 495|-> fixed_width = min_int;
# 496| else if (fixed_width == 0)
# 497| fixed_width = (int)info.width[wmode].x;
Error: CPPCHECK_WARNING (CWE-758): [#def1334]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtd.c:499: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 497| fixed_width = (int)info.width[wmode].x;
# 498| else if (info.width[wmode].x != fixed_width)
# 499|-> fixed_width = min_int;
# 500| if (desc.Flags & FONT_IS_SYMBOLIC)
# 501| continue; /* skip Roman-only computation */
Error: CPPCHECK_WARNING: [#def1335]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdte.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1336]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdte.c:766:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 764| }
# 765|
# 766|-> bbox.p.x = min(min(p0.x, p1.x), min(p2.x, p3.x));
# 767| bbox.p.y = min(min(p0.y, p1.y), min(p2.y, p3.y));
# 768| bbox.q.x = max(max(p0.x, p1.x), max(p2.x, p3.x));
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1337]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdte.c: scope_hint: In function ‘pdf_process_string’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdte.c:992:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gdata’
# 990| gs_glyph gdata_i, *gdata_p = (gs_glyph *)gdata;
# 991| if (penum->text.operation & TEXT_FROM_SINGLE_GLYPH) {
# 992|-> gdata_i = *gdata;
# 993| gdata_p = &gdata_i;
# 994| }
Error: CPPCHECK_WARNING: [#def1338]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1339]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘find_std_appearance’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:240:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘psf’
# 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): [#def1340]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘font_resource_alloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:400:13: warning[-Wanalyzer-null-argument]: use of NULL ‘widths’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfcache.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:284:13: note: in expansion of macro ‘uid_is_UniqueID’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘font_resource_alloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:394:16: note: in expansion of macro ‘gs_alloc_bytes’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 398| }
# 399| if (!is_CID_font)
# 400|-> memset(widths, 0, chars_count * sizeof(*widths));
# 401| memset(used, 0, size);
# 402| }
Error: CLANG_WARNING: [#def1341]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:468:36: warning[core.NullDereference]: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from field 'v_memory')
# 466| int ix;
# 467| for (ix = 0; ix <= 255;ix++)
# 468|-> gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.simple.Encoding[ix].data, "Free copied glyph name string");
# 469| gs_free_object(pdev->pdf_memory, pdfont->u.simple.Encoding, "Free simple Encoding");
# 470| pdfont->u.simple.Encoding = 0;
Error: CLANG_WARNING: [#def1342]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:512:36: warning[core.NullDereference]: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from field 'v_memory')
# 510| int ix;
# 511| for (ix = 0; ix <= 255;ix++)
# 512|-> gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.simple.Encoding[ix].data, "Free copied glyph name string");
# 513| gs_free_object(pdev->pdf_memory, pdfont->u.simple.Encoding, "Free simple Encoding");
# 514| pdfont->u.simple.Encoding = 0;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1343]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘font_resource_simple_alloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:595:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pfres’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘font_resource_simple_alloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:284:13: note: in expansion of macro ‘uid_is_UniqueID’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘font_resource_simple_alloc’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:389:30: note: in expansion of macro ‘gs_alloc_byte_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:421:5: note: in expansion of macro ‘gs_free_object’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:421:5: note: in expansion of macro ‘gs_free_object’
# 593| if (code < 0)
# 594| return code;
# 595|-> pfres->u.simple.FirstChar = 256;
# 596| pfres->u.simple.LastChar = -1;
# 597| pfres->u.simple.BaseEncoding = -1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1344]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c: scope_hint: In function ‘pdf_compute_BaseFont’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:979:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:135:12: note: in definition of macro ‘gs_free_object’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:979:13: note: in expansion of macro ‘uid_free’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:135:12: note: in definition of macro ‘gs_free_object’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:979:13: note: in expansion of macro ‘uid_free’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:135:12: note: in definition of macro ‘gs_free_object’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:979:13: note: in expansion of macro ‘uid_free’
# 977| /* Don't write a UID for subset fonts. */
# 978| if (uid_is_XUID(&pbfont->UID)) {
# 979|-> uid_free(&pbfont->UID, pbfont->memory, "gs_font_finalize");
# 980| }
# 981| uid_set_invalid(&pbfont->UID);
Error: CPPCHECK_WARNING (CWE-758): [#def1345]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.c:981: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 979| uid_free(&pbfont->UID, pbfont->memory, "gs_font_finalize");
# 980| }
# 981|-> uid_set_invalid(&pbfont->UID);
# 982| }
# 983| if (pdfont->FontType != ft_composite && pdsubf->FontDescriptor)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1346]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gx.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdti.c:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.h: scope_hint: In function ‘pdf_copy_string_to_encoding’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtf.h:129:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gnstr’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:243:36: note: in definition of macro ‘gs_alloc_bytes’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdti.c:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsmemory.h:243:36: note: in definition of macro ‘gs_alloc_bytes’
# 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: [#def1347]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdti.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1348]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdti.c:313:28: warning[core.NullDereference]: Access to field 'non_gc_memory' results in a dereference of a null pointer (loaded from field 'v_memory')
# 311| next = pcpo->char_next;
# 312| if(pcpo->char_name.size != 0 && pcpo->char_name.data) {
# 313|-> gs_free_object(pdev->pdf_memory->non_gc_memory, pcpo->char_name.data, "free storage for charproc naem");
# 314| /* This causes PCL some trouble, don't know why yet FIXME-MEMORY
# 315| gs_free_string(pdev->pdf_memory, (byte *)pcpo->char_name.data, pcpo->char_name.size, "Free CharProc name");*/
Error: CPPCHECK_WARNING: [#def1349]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1350]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1351]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:227: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 225| * comparefiles/Bug687044.ps, therefore we divide them by 2.
# 226| */
# 227|-> clip_box.p.x = clip_box.p.y = min_int / 2;
# 228| clip_box.q.x = clip_box.q.y = max_int / 2;
# 229| }
Error: CPPCHECK_WARNING (CWE-758): [#def1352]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:228: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 226| */
# 227| clip_box.p.x = clip_box.p.y = min_int / 2;
# 228|-> clip_box.q.x = clip_box.q.y = max_int / 2;
# 229| }
# 230| code = gx_clip_to_rectangle(penum_s->pgs, &clip_box);
Error: CPPCHECK_WARNING (CWE-457): [#def1353]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:2342: warning[uninitvar]: Uninitialized variable: s2->size
# 2340| strings_equal(const gs_const_string *s1, const gs_const_string *s2)
# 2341| {
# 2342|-> return s1->size == s2->size &&
# 2343| !memcmp(s1->data, s2->data, s1->size);
# 2344| }
Error: CLANG_WARNING: [#def1354]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:2391:9: warning[core.NullDereference]: Access to field 'FontType' results in a dereference of a null pointer (loaded from variable 'pdfont')
# 2389| pdf_find_glyph(pdf_font_resource_t *pdfont, gs_glyph glyph)
# 2390| {
# 2391|-> if (pdfont->FontType != ft_user_defined &&
# 2392| pdfont->FontType != ft_PDF_user_defined &&
# 2393| pdfont->FontType != ft_PCL_user_defined &&
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1355]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c: scope_hint: In function ‘pdf_find_glyph’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:2391:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdfont’
# 2389| pdf_find_glyph(pdf_font_resource_t *pdfont, gs_glyph glyph)
# 2390| {
# 2391|-> if (pdfont->FontType != ft_user_defined &&
# 2392| pdfont->FontType != ft_PDF_user_defined &&
# 2393| pdfont->FontType != ft_PCL_user_defined &&
Error: CPPCHECK_WARNING (CWE-758): [#def1356]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:3114: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 3112| if (penum->current_font->FontType == ft_PDF_user_defined) {
# 3113| if (!pdev->Scaled_accumulator) {
# 3114|-> if (pdev->width > max_int / 100 || pdev->height > max_int / 100)
# 3115| return_error(gs_error_rangecheck);
# 3116| pdev->width *= 100;
Error: CLANG_WARNING: [#def1357]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:3286:39: warning[core.NullDereference]: Access to field 'can_cache' results in a dereference of a null pointer (loaded from field 'pte_default')
# 3284|
# 3285| if (pdev->OCRStage == OCR_Rendering) {
# 3286|-> penum->pte_default->can_cache = 0;
# 3287| code = gs_text_process(penum->pte_default);
# 3288| pdev->OCR_char_code = penum->pte_default->returned.current_char;
Error: CLANG_WARNING: [#def1358]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtt.c:3660:21: warning[core.NullDereference]: Dereference of null pointer
# 3658| return code;
# 3659|
# 3660|-> pdfont->u.simple.s.type3.cached[cdata[pte->index] >> 3] |= 0x80 >> (cdata[pte->index] & 7);
# 3661| }
# 3662| size = pte->text.size - pte->index;
Error: CPPCHECK_WARNING: [#def1359]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdtw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1360]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsdi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1361]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsdp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1362]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsdp.c:688:5: warning[core.CallAndMessage]: Called function pointer is null (null dereference)
# 686| stream_CFE_state *const ss = (stream_CFE_state *) st;
# 687|
# 688|-> (*s_CFE_template.set_defaults) (st);
# 689| ss->K = -1;
# 690| ss->BlackIs1 = true;
Error: CLANG_WARNING: [#def1363]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsdp.c:1120:13: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1118| * standard device parameters.
# 1119| */
# 1120|-> ecode = code = param_read_bool(plist, "LockDistillerParams",
# 1121| ¶ms.LockDistillerParams);
# 1122|
Error: CPPCHECK_WARNING: [#def1364]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1365]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsds.c:526:59: warning[core.DivideZero]: Division by zero
# 524| memcpy(table + index, key, num_components);
# 525| }
# 526|-> byte_out = (byte_out << ss->BitsPerIndex) + index / num_components;
# 527| next_component = 0;
# 528| if (++(ss->x) == ss->Width) {
Error: CPPCHECK_WARNING: [#def1366]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsdu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1367]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1368]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf1.c:712:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 710| if (pfont->data.WeightVector.count != 0) {
# 711| for (i = 0; i < n; ++i) {
# 712|-> if ((code = pdata->procs.subr_data(pfont, i, false, &gdata)) >= 0) {
# 713| code = CheckSubrForMM(&gdata, pfont);
# 714| gs_glyph_data_free(&gdata, "write_Private(Subrs)");
Error: CLANG_WARNING: [#def1369]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf1.c:727:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 725|
# 726| for (i = 0; i < n; ++i)
# 727|-> if ((code = pdata->procs.subr_data(pfont, i, false, &gdata)) >= 0) {
# 728| char buf[50];
# 729|
Error: CLANG_WARNING: [#def1370]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf1.c:797:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 795| )
# 796| if (code == 0 &&
# 797|-> (code = pdata->procs.glyph_data(pfont, glyph, &gdata)) >= 0
# 798| ) {
# 799| ++num_chars;
Error: CLANG_WARNING: [#def1371]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf1.c:808:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 806| )
# 807| if (code == 0 &&
# 808|-> (code = pdata->procs.glyph_data(pfont, glyph, &gdata)) >= 0
# 809| ) {
# 810| gs_const_string gstr;
Error: CPPCHECK_WARNING: [#def1372]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1373]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:585:13: warning[deadcode.DeadStores]: Value stored to 'k' is never read
# 583| */
# 584| if (k > 16)
# 585|-> k = 16;
# 586| for (j = 0; j < uid_XUID_size(&pbfont->UID); ++j)
# 587| cff_put_int(pcw, uid_XUID_values(&pbfont->UID)[j]);
Error: CLANG_WARNING: [#def1374]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:839:14: warning[deadcode.DeadStores]: Although the value stored to 'gcode' is used in the enclosing expression, the value is never actually read from 'gcode'
# 837| gdata.memory = pfont->memory;
# 838| if (code == 0 &&
# 839|-> (gcode = pcw->glyph_data(pfont, glyph, &gdata, &pfd)) >= 0
# 840| ) {
# 841| int extra_lenIV;
Error: CLANG_WARNING: [#def1375]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:881:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 879| gdata.memory = pfont->memory;
# 880| if (code == 0 &&
# 881|-> (code = pcw->glyph_data(pfont, glyph, &gdata, &pfd)) >= 0
# 882| ) {
# 883| cff_put_CharString(pcw, gdata.bits.data, gdata.bits.size, pfd);
Error: CLANG_WARNING: [#def1376]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:1096:13: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1094| /* Determine whether format 0 or 3 is more efficient. */
# 1095| psf_enumerate_glyphs_reset(penum);
# 1096|-> while ((code = psf_enumerate_glyphs_next(penum, &glyph)) == 0) {
# 1097| int font_index;
# 1098|
Error: CLANG_WARNING: [#def1377]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:1133:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1131| case 3: /* ranges */
# 1132| put_card16(pcw, (size - 5) / 3);
# 1133|-> while ((code = psf_enumerate_glyphs_next(penum, &glyph)) == 0) {
# 1134| int font_index;
# 1135|
Error: CLANG_WARNING: [#def1378]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:1149:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1147| break;
# 1148| case 0: /* linear table */
# 1149|-> while ((code = psf_enumerate_glyphs_next(penum, &glyph)) == 0) {
# 1150| int font_index;
# 1151|
Error: CLANG_WARNING: [#def1379]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:1208:13: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1206| psf_enumerate_glyphs_begin(&genum, (gs_font *)pfont,
# 1207| NULL, 0, GLYPH_SPACE_NAME);
# 1208|-> while ((code = psf_enumerate_glyphs_next(&genum, &glyph)) != 1)
# 1209| number_of_glyphs++;
# 1210| subset.glyphs.subset_data = (gs_glyph *)gs_alloc_bytes(pfont->memory,
Error: CLANG_WARNING: [#def1380]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsf2.c:1688:24: warning[core.DivideZero]: Division by zero
# 1686| for (j = 0; j <= num_fonts; ++j)
# 1687| FDArray_offsets[j] = Private_offsets[j] = Subrs_offsets[j] =
# 1688|-> 0x7effffff / num_fonts * j + 0x1000000;
# 1689|
# 1690| /*
Error: CPPCHECK_WARNING: [#def1381]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsfm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1382]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def1383]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:130: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 128| put_u32(tab + 8, offset + 0x40000000);
# 129| put_u32(tab + 12, (ulong)length);
# 130|-> return offset + round_up(length, 4);
# 131| }
# 132|
Error: CLANG_WARNING: [#def1384]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:313:9: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 311| stream_write(s, cmap_initial_0, sizeof(cmap_initial_0));
# 312| for (i = 0; i <= 0xff; ++i)
# 313|-> sputc(s, (byte)entries[2 * i + 1]);
# 314| }
# 315| static void
Error: CLANG_WARNING: [#def1385]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:313:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 311| stream_write(s, cmap_initial_0, sizeof(cmap_initial_0));
# 312| for (i = 0; i <= 0xff; ++i)
# 313|-> sputc(s, (byte)entries[2 * i + 1]);
# 314| }
# 315| static void
Error: CPPCHECK_WARNING (CWE-758): [#def1386]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:495: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 493| int wmode)
# 494| {
# 495|-> int prev_width = min_int;
# 496| uint last_width = 0; /* pacify compilers */
# 497| double factor = pfont->data.unitsPerEm * (wmode ? -1 : 1);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1387]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c: scope_hint: In function ‘remove_table’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:749:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tab + 16’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfcid.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:828:5: note: in expansion of macro ‘READ_SFNTS’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:829:9: note: in expansion of macro ‘u32’
# 747|
# 748| if (!memcmp(tab, tag, 4)) {
# 749|-> memmove(tab, tab + 16, 16 * (*numTables - i - 1));
# 750| --*numTables;
# 751| } else
Error: CLANG_WARNING: [#def1388]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:928:11: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 926| /****** NO CHECKSUMS YET ******/
# 927| for (max_glyph = 0, glyf_length = 0;
# 928|-> (code = psf_enumerate_glyphs_next(penum, &glyph)) != 1;
# 929| ) {
# 930| uint glyph_index;
Error: CLANG_WARNING: [#def1389]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:938:14: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 936| if_debug1m('L', s->memory, "[L]glyph_index %u\n", glyph_index);
# 937| glyph_data.memory = pfont->memory;
# 938|-> if ((code = pfont->data.get_outline(pfont, glyph_index, &glyph_data)) >= 0) {
# 939| /* Since indexToLocFormat==0 assumes even glyph lengths,
# 940| round it up here. If later we choose indexToLocFormat==1,
Error: GCC_ANALYZER_WARNING (CWE-1335): [#def1390]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c: scope_hint: In function ‘psf_write_truetype_data’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:1111:22: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘4294967295’) >= precision of type (‘32’)
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:828:5: note: in expansion of macro ‘READ_SFNTS’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:829:9: note: in expansion of macro ‘u32’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxfont42.h:148:47: note: in definition of macro ‘READ_SFNTS’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:843:9: note: in expansion of macro ‘READ_SFNTS’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:844:17: note: in expansion of macro ‘u32’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:109:28: note: in definition of macro ‘u32’
# 1109| DO_NOTHING;
# 1110| --i;
# 1111|-> put_ushort(s, 16 << i); /* searchRange */
# 1112| put_ushort(s, i); /* entrySelectors */
# 1113| put_ushort(s, numTables * 16 - (16 << i)); /* rangeShift */
Error: CPPCHECK_WARNING (CWE-190): [#def1391]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:1129: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 1127|
# 1128| put_u32(entry + 8, offset);
# 1129|-> offset += round_up(length, 4);
# 1130| } else {
# 1131| entry[8] -= 0x40;
Error: CLANG_WARNING: [#def1392]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:1208:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1206|
# 1207| glyph_data.memory = pfont->memory;
# 1208|-> if ((code = pfont->data.get_outline(pfont,
# 1209| glyph & ~GS_GLYPH_TAG,
# 1210| &glyph_data)) >= 0
Error: CLANG_WARNING: [#def1393]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsft.c:1246:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1244| put_loca(s, offset, indexToLocFormat);
# 1245| glyph_data.memory = pfont->memory;
# 1246|-> if ((code = pfont->data.get_outline(pfont, glyph_index,
# 1247| &glyph_data)) >= 0
# 1248| ) {
Error: CPPCHECK_WARNING: [#def1394]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsfu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1395]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsfu.c:312:17: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 310| psf_enumerate_glyphs_begin(&genum, (gs_font *)pfont, NULL, 0,
# 311| GLYPH_SPACE_NAME);
# 312|-> while ((code = psf_enumerate_glyphs_next(&genum, &glyph)) != 1) {
# 313| if (gs_font_glyph_is_notdef(pfont, glyph)) {
# 314| notdef = glyph;
Error: CPPCHECK_WARNING: [#def1396]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsfx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1397]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpsfx.c:789:36: warning[deadcode.DeadStores]: Although the value stored to 'csp' is used in the enclosing expression, the value is never actually read from 'csp'
# 787| csp[-18] += csp[-16], csp[-17] += csp[-15];
# 788| memmove(csp - 16, csp - 14, sizeof(*csp) * 11);
# 789|-> cis.os_count -= 6, csp -= 6;
# 790| /*
# 791| * We could optimize by using [h]flex[1],
Error: CPPCHECK_WARNING: [#def1398]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1399]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c: scope_hint: In function ‘pclxl_set_color_palette’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:270:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette’
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:1731:5: note: in expansion of macro ‘fit_copy’
# 268| xdev->color_space = color_space;
# 269| xdev->palette.size = palette_size;
# 270|-> memcpy(xdev->palette.data, palette, palette_size);
# 271| }
# 272| }
Error: CPPCHECK_WARNING (CWE-190): [#def1400]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:720: error[integerOverflow]: Signed integer overflow for expression '-4'.
# 718| stream *s = pclxl_stream(xdev);
# 719| uint width_bytes = (width_bits + 7) >> 3;
# 720|-> uint num_bytes = ROUND_UP(width_bytes, 4) * height;
# 721| bool compress = num_bytes >= 8;
# 722| int i;
Error: CLANG_WARNING: [#def1401]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:773:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 771| goto ncfree;
# 772| }
# 773|-> r.ptr = r.limit;
# 774| code = (*s_RLE_template.process)
# 775| ((stream_state *) & rlstate, &r, &w, true);
Error: CLANG_WARNING: [#def1402]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:849:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 847| /* state.memory needs set for creation..... */
# 848| state.memory = jcdp->memory = state.jpeg_memory = xdev->v_memory;
# 849|-> if ((code = gs_jpeg_create_compress(&state)) < 0)
# 850| goto cleanup_and_use_rle;
# 851| /* .... and NULL after, so we don't try to free the stack based "state" */
Error: CLANG_WARNING: [#def1403]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:870:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 868| }
# 869| /* Set compression parameters. */
# 870|-> if ((code = gs_jpeg_set_defaults(&state)) < 0)
# 871| goto cleanup_and_use_rle;
# 872|
Error: CLANG_WARNING: [#def1404]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:2130:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2128| "pclxl_begin_image(rows)");
# 2129| if (pie == 0 || row_data == 0) {
# 2130|-> code = gs_note_error(gs_error_VMerror);
# 2131| goto fail;
# 2132| }
Error: CLANG_WARNING: [#def1405]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:2773:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2771| else if (code < 0) {
# 2772| if (param_read_null(plist, "MediaPosition") == 0) {
# 2773|-> code = 0;
# 2774| }
# 2775| }
Error: CPPCHECK_WARNING: [#def1406]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevtxtw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1407]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevtxtw.c:295:21: warning[core.NullDereference]: Dereference of null pointer
# 293| }
# 294| #endif
# 295|-> if (from->start.x < to->start.x) {
# 296| current = new_order = from;
# 297| from = from->next;
Error: CLANG_WARNING: [#def1408]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevtxtw.c:295:37: warning[core.NullDereference]: Dereference of null pointer
# 293| }
# 294| #endif
# 295|-> if (from->start.x < to->start.x) {
# 296| current = new_order = from;
# 297| from = from->next;
Error: CPPCHECK_WARNING: [#def1409]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1410]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:578:9: warning[deadcode.DeadStores]: Value stored to 'info' is never read
# 576| if (code < 0)
# 577| return gs_rethrow_code(code);
# 578|-> info = zip_look_up_file_info(xps_dev, filename);
# 579| }
# 580| else {
Error: CLANG_WARNING: [#def1411]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:640:9: warning[deadcode.DeadStores]: Value stored to 'info' is never read
# 638| if (code < 0)
# 639| return gs_rethrow_code(code);
# 640|-> info = zip_look_up_file_info(xps_dev, filename);
# 641| }
# 642| else {
Error: CLANG_WARNING: [#def1412]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:2145:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2143| pie->pcs = pcs;
# 2144| rc_increment(pcs);
# 2145|-> code = dev_proc(dev, get_profile)(dev, &(dev_profile));
# 2146| /* Just use the "default" profile for now */
# 2147| icc_profile = dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE];
Error: CLANG_WARNING: [#def1413]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:2293:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2291| return_error(gs_rethrow_code(code));
# 2292| }
# 2293|-> code = TIFFCheckpointDirectory(pie->tif);
# 2294|
# 2295| num_components = gs_color_space_num_components(pcs);
Error: CLANG_WARNING: [#def1414]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:2552:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2550| /* N.B. Write the final strip, if any. */
# 2551|
# 2552|-> code = TIFFWriteDirectory(pie->tif);
# 2553| xps_tiff_cleanup(pie);
# 2554|
Error: CPPCHECK_WARNING: [#def1415]
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/whitelst.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1416]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/astring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1417]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1418]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c: scope_hint: In function ‘boxer_feed’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:149:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
/usr/include/string.h:33: included_from: Included from here.
/usr/include/memory.h:29: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:3: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:6: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c: scope_hint: In function ‘boxer_feed’
# 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): [#def1419]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c: scope_hint: In function ‘boxer_margins’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:241:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
# 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): [#def1420]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c: scope_hint: In function ‘boxer_subdivide’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:289:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘boxer’
# 287| boxer_subdivide(boxer_t *boxer, boxer_t **boxer1, boxer_t **boxer2)
# 288| {
# 289|-> rectlist_t *list = boxer->list;
# 290| int num_h = 0, num_v = 0;
# 291| double max_h = 0, max_v = 0;
Error: CLANG_WARNING: [#def1421]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/boxer.c:460:2: warning[deadcode.DeadStores]: Value stored to 'split' is never read
# 458| return -1;
# 459| }
# 460|-> split = *psplit;
# 461|
# 462| ret = extract_subpage_subset(boxer->alloc, page, subpage, boxer->mediabox);
Error: CLANG_WARNING: [#def1422]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/docx.c:13: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/document.h:181:13: warning[core.NullDereference]: Dereference of null pointer
# 179| {
# 180| it->root = root;
# 181|-> it->next = root->base.next;
# 182|
# 183| return content_paragraph_iterator_next(it);
Error: CLANG_WARNING: [#def1423]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/odt.c:13: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/document.h:318:13: warning[core.NullDereference]: Dereference of null pointer
# 316| {
# 317| it->root = root;
# 318|-> it->next = root->base.next;
# 319|
# 320| return content_iterator_next(it);
Error: CPPCHECK_WARNING: [#def1424]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/docx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1425]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/extract.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1426]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/html.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1427]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1428]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:778: warning[uninitvar]: Uninitialized variables: inverse.a, inverse.b, inverse.c, inverse.d
# 776| }
# 777|
# 778|-> left = extract_matrix4_transform_point(inverse, left);
# 779| right = extract_matrix4_transform_point(inverse, right);
# 780| l = span->flags.wmode ? left.y : left.x;
Error: CLANG_WARNING: [#def1429]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:778:13: warning[core.CallAndMessage]: Passed-by-value struct argument contains uninitialized data (e.g., field: 'a')
# 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): [#def1430]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:889:46: warning[-Wmaybe-uninitialized]: ‘wmode0’ may be used uninitialized
# 889 | if (ctm0_set && (wmode != wmode0 || !matrices_are_compatible(&ctm, &ctm0, wmode0)))
# | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c: scope_hint: In function ‘join_content’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:862:34: note: ‘wmode0’ was declared here
# 862 | int wmode, wmode0;
# | ^~~~~~
# 887| /* If the ctm value differs from the first ctm0 we met for the current collection,
# 888| * flush the collection. */
# 889|-> if (ctm0_set && (wmode != wmode0 || !matrices_are_compatible(&ctm, &ctm0, wmode0)))
# 890| flush = 1;
# 891| break;
Error: CLANG_WARNING: [#def1431]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:1293:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1291| pointer if nmemb is zero. */
# 1292| /* coverity[var_deref_model] */
# 1293|-> qsort(tl_v.tablelines, tl_v.tablelines_num, sizeof(*tl_v.tablelines), tablelines_compare_x);
# 1294|
# 1295| if (0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1432]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c: scope_hint: In function ‘table_find’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:1293:9: warning[-Wanalyzer-null-argument]: use of NULL ‘tl_v.tablelines’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c: scope_hint: In function ‘table_find’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/memento.h:189: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/include/extract/alloc.h:15: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/include/extract/extract.h:4: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/join.c:1: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
# 1291| pointer if nmemb is zero. */
# 1292| /* coverity[var_deref_model] */
# 1293|-> qsort(tl_v.tablelines, tl_v.tablelines_num, sizeof(*tl_v.tablelines), tablelines_compare_x);
# 1294|
# 1295| if (0)
Error: CPPCHECK_WARNING: [#def1433]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-758): [#def1434]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/json.c:83:5: warning[-Wmissing-prototypes]: no previous prototype for ‘extract_document_to_json_content’
# 83 | int extract_document_to_json_content(
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 81| }
# 82|
# 83|-> int extract_document_to_json_content(
# 84| extract_alloc_t *alloc,
# 85| document_t *document,
Error: CPPCHECK_WARNING: [#def1435]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/odt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1436]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/xml.c:30:2: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 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: GCC_ANALYZER_WARNING (CWE-688): [#def1437]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/xml.c: scope_hint: In function ‘str_catl’
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/xml.c:30:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 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: [#def1438]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/zip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def1439]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/zip.c:114: error[integerOverflow]: Signed integer overflow for expression '(0100644<<16)+0'.
# 112| 0100644:0. (0100644 is S_IFREG (regular file) plus rw-r-r. See stat(2) for
# 113| details.) */
# 114|-> zip->file_attr_external = (0100644 << 16) + 0;
# 115| if (extract_strdup(alloc, "Artifex", &zip->archive_comment)) goto end;
# 116|
Error: CPPCHECK_WARNING (CWE-457): [#def1440]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/zip.c:236: error[uninitvar]: Uninitialized variable: buffer
# 234| /* Send the new compressed data to buffer. */
# 235| size_t bytes_written;
# 236|-> int e = extract_buffer_write(zip->buffer, buffer, zstream.next_out - buffer, &bytes_written);
# 237| if (o_compressed_length)
# 238| {
Error: CLANG_WARNING: [#def1441]
ghostscript-10.03.1-build/ghostscript-10.03.1/extract/src/zip.c:398:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 396| size_t data_length_compressed;
# 397| s_write_compressed(zip, data, data_length, &data_length_compressed);
# 398|-> cd_file->size_compressed = (int) data_length_compressed;
# 399|
# 400| /* Write data descriptor. */
Error: CPPCHECK_WARNING: [#def1442]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1443]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c:1367:5: warning[deadcode.DeadStores]: Value stored to 'Offset' is never read
# 1365| pdfi_seek(ctx, ctx->main_stream, 0, SEEK_END);
# 1366| ctx->main_stream_length = pdfi_tell(ctx->main_stream);
# 1367|-> Offset = BUF_SIZE;
# 1368| bytes = BUF_SIZE;
# 1369| pdfi_seek(ctx, ctx->main_stream, 0, SEEK_SET);
Error: CLANG_WARNING: [#def1444]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c:1368:5: warning[deadcode.DeadStores]: Value stored to 'bytes' is never read
# 1366| ctx->main_stream_length = pdfi_tell(ctx->main_stream);
# 1367| Offset = BUF_SIZE;
# 1368|-> bytes = BUF_SIZE;
# 1369| pdfi_seek(ctx, ctx->main_stream, 0, SEEK_SET);
# 1370|
Error: CLANG_WARNING: [#def1445]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c:1371:5: warning[deadcode.DeadStores]: Value stored to 'bytes' is never read
# 1369| pdfi_seek(ctx, ctx->main_stream, 0, SEEK_SET);
# 1370|
# 1371|-> bytes = Offset = min(BUF_SIZE - 1, ctx->main_stream_length);
# 1372|
# 1373| if (ctx->args.pdfdebug)
Error: CLANG_WARNING: [#def1446]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c:1577:13: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'str')
# 1575| if (pl > sl)
# 1576| break;
# 1577|-> if (*str == *pat && memcmp(str, pat, pl) == 0)
# 1578| found = true;
# 1579| else {
Error: CLANG_WARNING: [#def1447]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.c:1846:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1844| ctx->stack_top = ctx->stack_bot - 1;
# 1845| code = sizeof(pdf_obj *);
# 1846|-> code *= ctx->stack_size;
# 1847| ctx->stack_limit = ctx->stack_bot + ctx->stack_size;
# 1848|
Error: CPPCHECK_WARNING: [#def1448]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1449]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:242:5: warning[deadcode.DeadStores]: Value stored to 'xscale' is never read
# 240| if (code < 0) goto exit;
# 241|
# 242|-> xscale = yscale = 1.0;
# 243|
# 244| code = gs_translate(ctx->pgs, rect.p.x, rect.p.y);
Error: CLANG_WARNING: [#def1450]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:242:14: warning[deadcode.DeadStores]: Although the value stored to 'yscale' is used in the enclosing expression, the value is never actually read from 'yscale'
# 240| if (code < 0) goto exit;
# 241|
# 242|-> xscale = yscale = 1.0;
# 243|
# 244| code = gs_translate(ctx->pgs, rect.p.x, rect.p.y);
Error: CLANG_WARNING: [#def1451]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:474:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 472| return 0;
# 473|
# 474|-> code = pdfi_gsave(ctx);
# 475|
# 476| code = pdfi_setdash_impl(ctx, dash, 0);
Error: CLANG_WARNING: [#def1452]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:1489:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1487| if (code < 0) goto exit1;
# 1488|
# 1489|-> code = gs_translate(ctx->pgs, x, y);
# 1490| code = gs_moveto(ctx->pgs, 0, 0);
# 1491| code = gs_rotate(ctx->pgs, angle);
Error: CLANG_WARNING: [#def1453]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:1490:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1488|
# 1489| code = gs_translate(ctx->pgs, x, y);
# 1490|-> code = gs_moveto(ctx->pgs, 0, 0);
# 1491| code = gs_rotate(ctx->pgs, angle);
# 1492|
Error: CLANG_WARNING: [#def1454]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2052:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2050| y = text->y;
# 2051|
# 2052|-> code = pdfi_gsave(ctx);
# 2053| code = pdfi_gs_setgray(ctx, .75);
# 2054| code = pdfi_annot_display_simple_text(ctx, annot, x+1, y-1, string);
Error: CLANG_WARNING: [#def1455]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2053:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2051|
# 2052| code = pdfi_gsave(ctx);
# 2053|-> code = pdfi_gs_setgray(ctx, .75);
# 2054| code = pdfi_annot_display_simple_text(ctx, annot, x+1, y-1, string);
# 2055| if (code < 0) goto exit;
Error: CLANG_WARNING: [#def1456]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2056:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2054| code = pdfi_annot_display_simple_text(ctx, annot, x+1, y-1, string);
# 2055| if (code < 0) goto exit;
# 2056|-> code = pdfi_grestore(ctx);
# 2057|
# 2058| code = pdfi_annot_display_simple_text(ctx, annot, x, y, string);
Error: CLANG_WARNING: [#def1457]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2063:20: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2061| exit:
# 2062| code1 = pdfi_ET(ctx);
# 2063|-> if (code == 0) code = code1;
# 2064| pdfi_countdown(string);
# 2065| return 0;
Error: CLANG_WARNING: [#def1458]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2143:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2141|
# 2142| /* Draw frame in gray */
# 2143|-> code = pdfi_gsave(ctx);
# 2144| code = gs_translate(ctx->pgs, 1, -1);
# 2145| code = pdfi_gs_setgray(ctx, 0.75);
Error: CLANG_WARNING: [#def1459]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2144:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2142| /* Draw frame in gray */
# 2143| code = pdfi_gsave(ctx);
# 2144|-> code = gs_translate(ctx->pgs, 1, -1);
# 2145| code = pdfi_gs_setgray(ctx, 0.75);
# 2146| code = pdfi_annot_draw_stamp_frame(ctx);
Error: CLANG_WARNING: [#def1460]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2145:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2143| code = pdfi_gsave(ctx);
# 2144| code = gs_translate(ctx->pgs, 1, -1);
# 2145|-> code = pdfi_gs_setgray(ctx, 0.75);
# 2146| code = pdfi_annot_draw_stamp_frame(ctx);
# 2147| code = pdfi_grestore(ctx);
Error: CLANG_WARNING: [#def1461]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2146:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2144| code = gs_translate(ctx->pgs, 1, -1);
# 2145| code = pdfi_gs_setgray(ctx, 0.75);
# 2146|-> code = pdfi_annot_draw_stamp_frame(ctx);
# 2147| code = pdfi_grestore(ctx);
# 2148|
Error: CLANG_WARNING: [#def1462]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2147:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2145| code = pdfi_gs_setgray(ctx, 0.75);
# 2146| code = pdfi_annot_draw_stamp_frame(ctx);
# 2147|-> code = pdfi_grestore(ctx);
# 2148|
# 2149| /* Draw frame colored */
Error: CLANG_WARNING: [#def1463]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2200:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2198| if (code < 0) goto exit;
# 2199| }
# 2200|-> code = gs_stroke(ctx->pgs);
# 2201|
# 2202| /* Line ending
Error: CLANG_WARNING: [#def1464]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2319:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2317| code = gs_moveto(ctx->pgs, modrect.q.y, modrect.q.x);
# 2318| if (code < 0) goto exit;
# 2319|-> code = gs_rotate(ctx->pgs, 270.0);
# 2320| modrect.p.x = -annotrect.q.y;
# 2321| modrect.q.x = -annotrect.p.y;
Error: CLANG_WARNING: [#def1465]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2328:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2326| code = gs_moveto(ctx->pgs, modrect.q.x, modrect.p.y);
# 2327| if (code < 0) goto exit;
# 2328|-> code = gs_rotate(ctx->pgs, 180.0);
# 2329| modrect.p.x = -annotrect.q.x;
# 2330| modrect.q.x = -annotrect.p.x;
Error: CLANG_WARNING: [#def1466]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2338:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2336| code = gs_moveto(ctx->pgs, modrect.p.y, modrect.p.x);
# 2337| if (code < 0) goto exit;
# 2338|-> code = gs_rotate(ctx->pgs, 90.0);
# 2339| modrect.p.x = annotrect.p.y;
# 2340| modrect.q.x = annotrect.q.y;
Error: CLANG_WARNING: [#def1467]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2431:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2429| code = pdfi_gsave(ctx);
# 2430| if (code >= 0) {
# 2431|-> code = pdfi_gs_setgray(ctx, 0.5);
# 2432| code = gs_fill(ctx->pgs);
# 2433| code = pdfi_grestore(ctx);
Error: CLANG_WARNING: [#def1468]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2432:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2430| if (code >= 0) {
# 2431| code = pdfi_gs_setgray(ctx, 0.5);
# 2432|-> code = gs_fill(ctx->pgs);
# 2433| code = pdfi_grestore(ctx);
# 2434| } else
Error: CLANG_WARNING: [#def1469]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2433:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2431| code = pdfi_gs_setgray(ctx, 0.5);
# 2432| code = gs_fill(ctx->pgs);
# 2433|-> code = pdfi_grestore(ctx);
# 2434| } else
# 2435| goto exit;
Error: CLANG_WARNING: [#def1470]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:2892:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2890| if (code < 0) goto exit1;
# 2891|
# 2892|-> code = gs_setlinewidth(ctx->pgs, 0.05);
# 2893|
# 2894| /* Use Parent to get color */
Error: CLANG_WARNING: [#def1471]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:3292:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 3290| if (code < 0) goto exit1;
# 3291|
# 3292|-> code = gs_closepath(ctx->pgs);
# 3293|
# 3294| /* NOTE: The logic here seems a bit wonky. Why only set opacity if there was a fill?
Error: CLANG_WARNING: [#def1472]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:3449:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 3447| */
# 3448| if (AP != NULL) {
# 3449|-> code = pdfi_annot_draw_AP(ctx, field, AP);
# 3450| goto exit;
# 3451| }
Error: CLANG_WARNING: [#def1473]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:4213:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 4211|
# 4212| /* Notify the driver of the label name */
# 4213|-> code = (*dev_proc(device, dev_spec_op))
# 4214| (device, gxdso_pdf_form_name, labeldata, labellen);
# 4215|
Error: CLANG_WARNING: [#def1474]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:4220:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 4218| goto exit;
# 4219|
# 4220|-> code = pdfi_annot_position_AP(ctx, annot, (pdf_stream *)object);
# 4221| /* Draw the high-level form */
# 4222| code = pdfi_do_highlevel_form(ctx, ctx->page.CurrentPageDict, (pdf_stream *)object);
Error: CLANG_WARNING: [#def1475]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_annot.c:4227:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 4225|
# 4226| /* Get the object number (form_id) of the high level form */
# 4227|-> code = (*dev_proc(device, dev_spec_op))
# 4228| (device, gxdso_get_form_ID, &form_id, sizeof(int));
# 4229|
Error: CPPCHECK_WARNING: [#def1476]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_array.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1477]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1478]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1479]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c: scope_hint: In function ‘pdfi_make_gs_cmap’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c:861:13: warning[-Wanalyzer-null-argument]: use of NULL ‘ndlookups’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/base/scommon.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/strmio.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c:16: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c:818:9: note: in expansion of macro ‘gs_free_object’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 859| l = pdficmap->notdef_cmap_range.ranges;
# 860| for (i = 0; i < pdficmap->notdef_cmap_range.numrangemaps && l != NULL; i++) {
# 861|-> memcpy(&ndlookups[i], &l->range, sizeof(gx_cmap_lookup_range_t));
# 862| l = l->next;
# 863| }
Error: CLANG_WARNING: [#def1480]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_cmap.c:975:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 973| /* object_num can be zero if the dictionary was defined inline */
# 974| if (pdfi_cmap->object_num != 0) {
# 975|-> code = replace_cache_entry(ctx, (pdf_obj *)pdfi_cmap);
# 976| }
# 977| }
Error: CPPCHECK_WARNING: [#def1481]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1482]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:1055:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1053| *ppcs = pcs;
# 1054| } else {
# 1055|-> code = pdfi_gs_setcolorspace(ctx, pcs);
# 1056| rc_decrement_only_cs(pcs, "pdfi_create_iccprofile");
# 1057| }
Error: CLANG_WARNING: [#def1483]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:2043:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2041| * this with a gsave/grestore pair causes differences.
# 2042| */
# 2043|-> code = pdfi_gs_setcolorspace(ctx, pcs);
# 2044| *ppcs = pcs;
# 2045| pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
Error: CLANG_WARNING: [#def1484]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:2047:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2045| pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
# 2046| } else {
# 2047|-> code = pdfi_gs_setcolorspace(ctx, pcs);
# 2048| /* release reference from construction */
# 2049| rc_decrement_only_cs(pcs, "setseparationspace");
Error: CLANG_WARNING: [#def1485]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:2420:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2418| pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
# 2419| } else {
# 2420|-> code = pdfi_gs_setcolorspace(ctx, pcs);
# 2421| /* release reference from construction */
# 2422| rc_decrement_only_cs(pcs, "setdevicenspace");
Error: CLANG_WARNING: [#def1486]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:2685:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2683| goto exit;
# 2684|
# 2685|-> code = 0;
# 2686| if (pdfi_name_is(space, "G") || pdfi_name_is(space, "DeviceGray")) {
# 2687| if (pdfi_name_is(space, "G") && !inline_image) {
Error: CLANG_WARNING: [#def1487]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.c:20: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_colour.h:28:9: warning[core.NullDereference]: Access to field 'interpreter_data' results in a dereference of a null pointer (loaded from variable 'pcs')
# 26| static inline void pdfi_set_colourspace_name(pdf_context *ctx, gs_color_space *pcs, pdf_name *n)
# 27| {
# 28|-> if (pcs->interpreter_data != NULL) {
# 29| pdf_obj *o = (pdf_obj *)(pcs->interpreter_data);
# 30| if (o != NULL && pdfi_type_of(o) == PDF_NAME) {
Error: CPPCHECK_WARNING: [#def1488]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_deref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1489]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_dict.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1490]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_dict.c:236: error[ctunullpointer]: Null pointer dereference: Key
# 234| static int pdfi_dict_find_sorted(pdf_context *ctx, pdf_dict *d, const char *Key)
# 235| {
# 236|-> int start = 0, end = d->size - 1, middle = 0, keylen = strlen(Key);
# 237| pdf_name *test_key;
# 238|
Error: CPPCHECK_WARNING (CWE-476): [#def1491]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_dict.c:303: error[ctunullpointer]: Null pointer dereference: Key
# 301| int index = 0;
# 302|
# 303|-> Test = (char *)gs_alloc_bytes(ctx->memory, Key->length + 1, "pdfi_dict_find_key");
# 304| if (Test == NULL)
# 305| return_error(gs_error_VMerror);
Error: CLANG_WARNING: [#def1492]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_dict.c:303:48: warning[core.NullDereference]: Access to field 'length' results in a dereference of a null pointer (loaded from variable 'Key')
# 301| int index = 0;
# 302|
# 303|-> Test = (char *)gs_alloc_bytes(ctx->memory, Key->length + 1, "pdfi_dict_find_key");
# 304| if (Test == NULL)
# 305| return_error(gs_error_VMerror);
Error: CPPCHECK_WARNING: [#def1493]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1494]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:530:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 528| if (pagecount != ctx->num_pages) {
# 529| ctx->num_pages = pagecount;
# 530|-> code = pdfi_dict_put_int(ctx, (pdf_dict *)o1, "Count", ctx->num_pages);
# 531| pdfi_set_error(ctx, 0, NULL, E_PDF_BADPAGECOUNT, "pdfi_read_Pages", NULL);
# 532| }
Error: CLANG_WARNING: [#def1495]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1029:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1027| }
# 1028| }
# 1029|-> code = 0;
# 1030| }
# 1031| pdfi_countdown(typedict);
Error: CLANG_WARNING: [#def1496]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1599:5: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 1597| pdfi_countdown(name);
# 1598| pdfi_countdown(filespec);
# 1599|-> return code;
# 1600| }
# 1601|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1497]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c: scope_hint: In function ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1599:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘code’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1597:5: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c: scope_hint: In function ‘pdfi_doc_EmbeddedFiles_Names’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1598:5: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c:1598:5: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_doc.c: scope_hint: In function ‘pdfi_doc_EmbeddedFiles_Names’
# 1597| pdfi_countdown(name);
# 1598| pdfi_countdown(filespec);
# 1599|-> return code;
# 1600| }
# 1601|
Error: CPPCHECK_WARNING: [#def1498]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def1499]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fapi.c:767: error[uninitStructMember]: Uninitialized struct member: subrstring.length
# 765| if (pdfi_type_of(subrstring) == PDF_STRING) {
# 766| if (subrstring->length > 0) {
# 767|-> code = subrstring->length - leniv;
# 768| if (buf && buf_length >= code) {
# 769| if (ff->need_decrypt && pfont->data.lenIV >= 0) {
Error: CPPCHECK_WARNING: [#def1500]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1501]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_file.c:568:5: warning[deadcode.DeadStores]: Value stored to 'source' is never read
# 566| return code;
# 567| (*new_stream)->strm = source;
# 568|-> source = *new_stream;
# 569|
# 570| return 0;
Error: CLANG_WARNING: [#def1502]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_file.c:650:5: warning[deadcode.DeadStores]: Value stored to 'source' is never read
# 648| return code;
# 649| (*new_stream)->strm = source;
# 650|-> source = *new_stream;
# 651|
# 652| return 0;
Error: CLANG_WARNING: [#def1503]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_file.c:1268:32: warning[core.NullDereference]: Access to field 'original' results in a dereference of a null pointer (loaded from variable 'crypt_stream')
# 1266| }
# 1267|
# 1268|-> crypt_stream->original = SubFile_stream->original;
# 1269| gs_free_object(ctx->memory, SubFile_stream, "pdfi_filter");
# 1270|
Error: CLANG_WARNING: [#def1504]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_file.c:1455:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1453| &decompressed_stream, false);
# 1454| if (code >= 0) {
# 1455|-> code = pdfi_read_bytes(ctx, decompressed_Buffer, 1, decompressed_length, decompressed_stream);
# 1456| pdfi_close_file(ctx, decompressed_stream);
# 1457| code = pdfi_close_memory_stream(ctx, *Buffer, *new_pdf_stream);
Error: CPPCHECK_WARNING: [#def1505]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1506]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:75: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 73| file_size = sftell(s);
# 74| sfseek(s, 0, SEEK_SET);
# 75|-> if (file_size < 0 || file_size > max_int - poststringlen) {
# 76| code = gs_note_error(gs_error_ioerror);
# 77| } else {
Error: CPPCHECK_WARNING (CWE-562): [#def1507]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:146: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 144|
# 145| if (ctx->main_stream == NULL) {
# 146|-> ctx->main_stream = &fakemainstream;
# 147| }
# 148|
Error: CLANG_WARNING: [#def1508]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:681:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 679| code = sgets(sf, magic, 4, &nread);
# 680| if (code < 0 || nread < 4) {
# 681|-> code = 0;
# 682| sfclose(sf);
# 683| return 0;
Error: CLANG_WARNING: [#def1509]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:688:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 686| code = sfseek(sf, 0, SEEK_SET);
# 687| if (code < 0) {
# 688|-> code = 0;
# 689| sfclose(sf);
# 690| return 0;
Error: CLANG_WARNING: [#def1510]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:751:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 749| if (code == gs_error_VMerror)
# 750| break;
# 751|-> code = 0;
# 752| }
# 753| done:
Error: CPPCHECK_WARNING (CWE-457): [#def1511]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fmap.c:954: error[legacyUninitvar]: Uninitialized variable: mname
# 952| }
# 953| }
# 954|-> if (mname != NULL && pdfi_type_of(mname) == PDF_STRING && pdfi_fmap_file_exists(ctx, (pdf_string *)mname)) {
# 955| *mapname = mname;
# 956| (void)pdfi_dict_put(ctx, font_dict, ".Path", mname);
Error: CPPCHECK_WARNING: [#def1512]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1513]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:306:25: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 304| goto exit;
# 305| }
# 306|-> code = 0;
# 307| memcpy(fontfname, fsprefix, fsprefixlen);
# 308| }
Error: CLANG_WARNING: [#def1514]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:324:29: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 322| goto exit;
# 323| }
# 324|-> code = 0;
# 325| memcpy(fontfname + fsprefixlen, defcidfallack, defcidfallacklen);
# 326| }
Error: CLANG_WARNING: [#def1515]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:342:25: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 340| goto exit;
# 341| }
# 342|-> code = 0;
# 343| memcpy(fontfname + fsprefixlen, defcidfallack, defcidfallacklen);
# 344| }
Error: CLANG_WARNING: [#def1516]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:814:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 812| mapname = fontname;
# 813| pdfi_countup(mapname);
# 814|-> code = 0;
# 815| }
# 816| }
Error: CLANG_WARNING: [#def1517]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:874:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 872| }
# 873| else {
# 874|-> code = gs_note_error(gs_error_VMerror);
# 875| }
# 876| sfclose(s);
Error: CLANG_WARNING: [#def1518]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:1048:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1046| if (ppdffont == NULL) {
# 1047| if (fontfile != NULL) {
# 1048|-> code = pdfi_stream_to_buffer(ctx, (pdf_stream *) fontfile, &fbuf, &fbuflen);
# 1049| pdfi_countdown(fontfile);
# 1050| if (fbuflen == 0) {
Error: CLANG_WARNING: [#def1519]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:1058:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1056| gs_free_object(ctx->memory, fbuf, "pdfi_load_font(fbuf)");
# 1057| fbuf = NULL;
# 1058|-> code = gs_note_error(gs_error_invalidfont);
# 1059| }
# 1060| }
Error: CLANG_WARNING: [#def1520]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:1682:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1680| if (ind != NULL) *ind = (gs_encoding_index_t)code;
# 1681| gs_encoding = (unsigned char)code;
# 1682|-> code = 0;
# 1683|
# 1684| for (i = 0;i<256;i++) {
Error: CLANG_WARNING: [#def1521]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:2023:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2021| pdfi_cid_subst_nwp_table_t *substnwp = pcidfont->substnwp;
# 2022|
# 2023|-> code = gs_error_undefined;
# 2024| while (1) { /* Loop to make retrying with a substitute CID easier */
# 2025| /* Favour the ToUnicode if one exists */
Error: CPPCHECK_WARNING (CWE-758): [#def1522]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:2395: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2393| if (uid_is_XUID(&pfont->UID))
# 2394| xuidlen += uid_XUID_size(&pfont->UID);
# 2395|-> else if (uid_is_valid(&pfont->UID))
# 2396| xuidlen++;
# 2397|
Error: CPPCHECK_WARNING (CWE-758): [#def1523]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font.c:2413: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2411| uid_free(&pfont->UID, pfont->memory, "pdfi_font_generate_pseudo_XUID");
# 2412| }
# 2413|-> else if (uid_is_valid(&pfont->UID))
# 2414| xvalues[3] = pfont->UID.id;
# 2415|
Error: CPPCHECK_WARNING: [#def1524]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1525]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font0.c:71:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 69| }
# 70|
# 71|-> code = gs_error_undefined;
# 72| while (1) { /* Loop to make retrying with a substitute CID easier */
# 73| /* Favour the ToUnicode if one exists */
Error: CPPCHECK_WARNING: [#def1526]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1527]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c: scope_hint: In function ‘pop_pfb_filter’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c:360:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
# 358| pop_pfb_filter(gs_memory_t *mem, stream *s)
# 359| {
# 360|-> stream *src = s->strm;
# 361| byte *b = s->cbuf;
# 362|
Error: CLANG_WARNING: [#def1528]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c:633:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 631| pdfi_countdown(tounicode);
# 632| tounicode = NULL;
# 633|-> code = 0;
# 634| }
# 635| }
Error: CPPCHECK_WARNING (CWE-758): [#def1529]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c:694: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 692| if (uid_is_XUID(&t1f->pfont->UID))
# 693| uid_free(&t1f->pfont->UID, t1f->pfont->memory, "pdfi_read_type1_font");
# 694|-> uid_set_invalid(&t1f->pfont->UID);
# 695|
# 696| t1f->CharStrings = fpriv.u.t1.CharStrings;
Error: CPPCHECK_WARNING (CWE-758): [#def1530]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c:921: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 919| we cannot reliably use the UniqueID/XUID for copied fonts.
# 920| */
# 921|-> uid_set_invalid(&font->pfont->UID);
# 922|
# 923| if (ctx->args.ignoretounicode != true) {
Error: CLANG_WARNING: [#def1531]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1.c:934:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 932| pdfi_countdown(tmp);
# 933| tmp = NULL;
# 934|-> code = 0;
# 935| }
# 936| }
Error: CPPCHECK_WARNING: [#def1532]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font11.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1533]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font11.c:506: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 504| if (uid_is_XUID(&font->pfont->UID))
# 505| uid_free(&font->pfont->UID, font->pfont->memory, "pdfi_read_type1_font");
# 506|-> uid_set_invalid(&font->pfont->UID);
# 507| font->pfont->id = gs_next_ids(ctx->memory, 1);
# 508|
Error: CPPCHECK_WARNING: [#def1534]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1535]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:1244:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1242| }
# 1243|
# 1244|-> if ((code = u16(p, e, &count)) < 0)
# 1245| return NULL;
# 1246|
Error: CLANG_WARNING: [#def1536]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:1535:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1533| pdf_obj *gname;
# 1534|
# 1535|-> code = 0;
# 1536|
# 1537| lp = pdfi_find_cff_index(font->charstrings, font->cffend, 0, &s, &e);
Error: CLANG_WARNING: [#def1537]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:1601:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1599| return sid;
# 1600| }
# 1601|-> if ((code = pdfi_make_name_from_sid(ctx, &gname, font, offsets, sid)) < 0) {
# 1602| char buf[40];
# 1603| int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
Error: CLANG_WARNING: [#def1538]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:1637:22: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1635| if (code < 0) continue;
# 1636|
# 1637|-> if ((code = pdfi_make_name_from_sid(ctx, &gname, font, offsets, sid)) < 0) {
# 1638| char buf[40];
# 1639| int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
Error: CLANG_WARNING: [#def1539]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:1722:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1720| /* String index */
# 1721| pstore = p;
# 1722|-> p = pdfi_find_cff_index(p, e, 0, &strp, &stre);
# 1723|
# 1724| offsets.strings_off = pstore - font->cffdata;
Error: CPPCHECK_WARNING (CWE-758): [#def1540]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2101: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2099| /* We may want to do something clever with an XUID here */
# 2100| pfont->id = gs_next_ids(ctx->memory, 1);
# 2101|-> uid_set_invalid(&pfont->UID);
# 2102|
# 2103| /* The buildchar proc will be filled in by FAPI -
Error: CPPCHECK_WARNING (CWE-758): [#def1541]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2188: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2186| /* We may want to do something clever with an XUID here */
# 2187| pfont->id = gs_next_ids(ctx->memory, 1);
# 2188|-> uid_set_invalid(&pfont->UID);
# 2189|
# 2190| /* The buildchar proc will be filled in by FAPI -
Error: CPPCHECK_WARNING (CWE-758): [#def1542]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2266: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2264| /* We may want to do something clever with an XUID here */
# 2265| cffpriv->id = gs_next_ids(ctx->memory, 1);
# 2266|-> uid_set_invalid(&cffpriv->UID);
# 2267|
# 2268|
Error: CLANG_WARNING: [#def1543]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2373:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2371| gs_font_cid0 *pfont;
# 2372|
# 2373|-> code = pdfi_alloc_cff_cidfont(ctx, &cffcid, font_dict->object_num);
# 2374| pfont = (gs_font_cid0 *) cffcid->pfont;
# 2375| ppdfont = (pdf_font *) cffcid;
Error: CLANG_WARNING: [#def1544]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2373:61: warning[core.NullDereference]: Access to field 'object_num' results in a dereference of a null pointer (loaded from variable 'font_dict')
# 2371| gs_font_cid0 *pfont;
# 2372|
# 2373|-> code = pdfi_alloc_cff_cidfont(ctx, &cffcid, font_dict->object_num);
# 2374| pfont = (gs_font_cid0 *) cffcid->pfont;
# 2375| ppdfont = (pdf_font *) cffcid;
Error: CLANG_WARNING: [#def1545]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2374:42: warning[core.NullDereference]: Access to field 'pfont' results in a dereference of an undefined pointer value (loaded from variable 'cffcid')
# 2372|
# 2373| code = pdfi_alloc_cff_cidfont(ctx, &cffcid, font_dict->object_num);
# 2374|-> pfont = (gs_font_cid0 *) cffcid->pfont;
# 2375| ppdfont = (pdf_font *) cffcid;
# 2376|
Error: CPPCHECK_WARNING (CWE-758): [#def1546]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2530: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2528| if (uid_is_XUID(&cffcid->pfont->UID))
# 2529| uid_free(&cffcid->pfont->UID, cffcid->pfont->memory, "pdfi_read_type1_font");
# 2530|-> uid_set_invalid(&cffcid->pfont->UID);
# 2531| cffcid->pfont->id = gs_next_ids(ctx->memory, 1);
# 2532| }
Error: CLANG_WARNING: [#def1547]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2663:38: warning[core.NullDereference]: Access to field 'object_num' results in a dereference of a null pointer (loaded from variable 'font_dict')
# 2661| pfont->client_data = cffcid;
# 2662|
# 2663|-> cffcid->object_num = font_dict->object_num;
# 2664| cffcid->generation_num = font_dict->generation_num;
# 2665| cffcid->indirect_num = font_dict->indirect_num;
Error: CPPCHECK_WARNING (CWE-758): [#def1548]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2735: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2733| if (uid_is_XUID(&cffcid->pfont->UID))
# 2734| uid_free(&cffcid->pfont->UID, cffcid->pfont->memory, "pdfi_read_type1_font");
# 2735|-> uid_set_invalid(&cffcid->pfont->UID);
# 2736| cffcid->pfont->id = gs_next_ids(ctx->memory, 1);
# 2737| }
Error: CLANG_WARNING: [#def1549]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2743:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2741| pdf_obj *tounicode = NULL;
# 2742|
# 2743|-> code = pdfi_alloc_cff_font(ctx, &cfffont, font_dict != NULL ? font_dict->object_num : 0, false);
# 2744| pfont = (gs_font_type1 *) cfffont->pfont;
# 2745| ppdfont = (pdf_font *) cfffont;
Error: CLANG_WARNING: [#def1550]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2744:43: warning[core.NullDereference]: Access to field 'pfont' results in a dereference of an undefined pointer value (loaded from variable 'cfffont')
# 2742|
# 2743| code = pdfi_alloc_cff_font(ctx, &cfffont, font_dict != NULL ? font_dict->object_num : 0, false);
# 2744|-> pfont = (gs_font_type1 *) cfffont->pfont;
# 2745| ppdfont = (pdf_font *) cfffont;
# 2746|
Error: CPPCHECK_WARNING (CWE-758): [#def1551]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2861: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2859| if (uid_is_XUID(&cfffont->pfont->UID))
# 2860| uid_free(&cfffont->pfont->UID, cfffont->pfont->memory, "pdfi_read_type1_font");
# 2861|-> uid_set_invalid(&cfffont->pfont->UID);
# 2862| cfffont->pfont->id = gs_next_ids(ctx->memory, 1);
# 2863|
Error: CLANG_WARNING: [#def1552]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:2985:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2983|
# 2984| if (code >= 0 && fontfile != NULL) {
# 2985|-> code = pdfi_stream_to_buffer(ctx, (pdf_stream *) fontfile, &fbuf, &fbuflen);
# 2986| pdfi_countdown(fontfile);
# 2987| }
Error: CPPCHECK_WARNING (CWE-758): [#def1553]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:3110: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 3108| we cannot reliably use the UniqueID/XUID for copied fonts.
# 3109| */
# 3110|-> uid_set_invalid(&font->pfont->UID);
# 3111|
# 3112| if (ctx->args.ignoretounicode != true) {
Error: CLANG_WARNING: [#def1554]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font1C.c:3123:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 3121| pdfi_countdown(tmp);
# 3122| tmp = NULL;
# 3123|-> code = 0;
# 3124| }
# 3125| }
Error: CPPCHECK_WARNING (CWE-758): [#def1555]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font3.c:181: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 179| t3font->pfont->client_data = (void *)t3font;
# 180| t3font->pfont->id = gs_next_ids(ctx->memory, 1);
# 181|-> uid_set_UniqueID(&t3font->pfont->UID, no_UniqueID);
# 182|
# 183| *font = (pdf_font_type3 *)t3font;
Error: CLANG_WARNING: [#def1556]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font3.c:293:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 291| pdfi_countdown(tounicode);
# 292| tounicode = NULL;
# 293|-> code = 0;
# 294| }
# 295| }
Error: CPPCHECK_WARNING: [#def1557]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_font9.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1558]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1559]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:67:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 65| int code = pdfi_fapi_check_cmap_for_GID(pfont, (uint)chr, &ID);
# 66| if (code < 0 || ID == 0)
# 67|-> code = pdfi_fapi_check_cmap_for_GID(pfont, (uint)(chr | 0xf0 << 8), &ID);
# 68| g = (gs_glyph)ID;
# 69| }
Error: CLANG_WARNING: [#def1560]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:180:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 178| if (code < 0) {
# 179| cc = 0;
# 180|-> code = 0;
# 181| }
# 182| }
Error: CLANG_WARNING: [#def1561]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:225:25: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 223| if (code < 0) {
# 224| cc = (uint)glyph;
# 225|-> code = 0;
# 226| }
# 227| }
Error: CLANG_WARNING: [#def1562]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:461:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 459| (void)pdfi_dict_knownget_type(ctx, font_dict, "FontDescriptor", PDF_DICT, &fontdesc);
# 460|
# 461|-> if ((code = pdfi_alloc_tt_font(ctx, &font, false)) < 0) {
# 462| code = gs_note_error(gs_error_invalidfont);
# 463| goto error;
Error: CLANG_WARNING: [#def1563]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:525:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 523| pdfi_countdown(tounicode);
# 524| tounicode = NULL;
# 525|-> code = 0;
# 526| }
# 527| }
Error: CPPCHECK_WARNING (CWE-758): [#def1564]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:651: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 649| if (uid_is_XUID(&font->pfont->UID))
# 650| uid_free(&font->pfont->UID, font->pfont->memory, "pdfi_read_type1_font");
# 651|-> uid_set_invalid(&font->pfont->UID);
# 652|
# 653| code = pdfi_font_generate_pseudo_XUID(ctx, font_dict, font->pfont);
Error: CPPCHECK_WARNING (CWE-758): [#def1565]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:852: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 850| we cannot reliably use the UniqueID/XUID for copied fonts.
# 851| */
# 852|-> uid_set_invalid(&font->pfont->UID);
# 853|
# 854| if (ctx->args.ignoretounicode != true) {
Error: CLANG_WARNING: [#def1566]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontTT.c:865:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 863| pdfi_countdown(tmp);
# 864| tmp = NULL;
# 865|-> code = 0;
# 866| }
# 867| }
Error: CPPCHECK_WARNING: [#def1567]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1568]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontps.c:248:29: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 246| arr = (pdf_ps_stack_object_t *) gs_alloc_bytes(cs->pdfi_ctx->memory, size * sizeof(pdf_ps_stack_object_t), "pdfi_pscript_interpret(pdf_ps_stack_object_t");
# 247| if (arr == NULL) {
# 248|-> code = gs_note_error(gs_error_VMerror);
# 249| /* clean up the stack, including the mark object */
# 250| (void)pdf_ps_stack_pop(cs, size + 1);
Error: CLANG_WARNING: [#def1569]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_fontps.c:1215:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 1213| int code;
# 1214|
# 1215|-> if ((code = pdf_ps_stack_count(s)) < 4) {
# 1216| return 0;
# 1217| }
Error: CPPCHECK_WARNING: [#def1570]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_func.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1571]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_func.c:584:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 582| goto function_3_error;
# 583| }
# 584|-> code = 0;
# 585|
# 586| for (i = 0; i < params.k; ++i) {
Error: CPPCHECK_WARNING: [#def1572]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1573]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:519:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 517| * Because that's what gs does pdf_draw.ps/gsparamdict/OP
# 518| */
# 519|-> code = pdfi_dict_known(ctx, GS, "op", &known);
# 520| if (!known)
# 521| gs_setfilloverprint(ctx->pgs, b);
Error: CLANG_WARNING: [#def1574]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:1381:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1379| pdf_dict *halftone_dict = NULL;
# 1380|
# 1381|-> code = pdfi_dict_from_obj(ctx, (pdf_obj *)halftone_stream, &halftone_dict);
# 1382|
# 1383| ptp->thresholds.data = NULL;
Error: CLANG_WARNING: [#def1575]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:1745:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1743| }
# 1744| } while (code >= 0);
# 1745|-> code = 0;
# 1746|
# 1747| /* If we only had one component, it must be the Default, in which case we
Error: CLANG_WARNING: [#def1576]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:1881:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1879| pht->params.multiple.get_colorname_string = pdfi_separation_name_from_index;
# 1880|
# 1881|-> code = gs_sethalftone_prepare(ctx->pgs, pht, pdht);
# 1882|
# 1883| /* Transfer function pdht->order->transfer */
Error: CLANG_WARNING: [#def1577]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:1935:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1933| pht->params.multiple.get_colorname_string = pdfi_separation_name_from_index;
# 1934|
# 1935|-> code = gs_sethalftone_prepare(ctx->pgs, pht, pdht);
# 1936|
# 1937| /* Transfer function pdht->order->transfer */
Error: CLANG_WARNING: [#def1578]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:1989:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1987| pht->params.multiple.get_colorname_string = pdfi_separation_name_from_index;
# 1988|
# 1989|-> code = gs_sethalftone_prepare(ctx->pgs, pht, pdht);
# 1990|
# 1991| /* Transfer function pdht->order->transfer */
Error: CLANG_WARNING: [#def1579]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:2172:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2170| if (igs->SMask) {
# 2171| pdfi_gstate_smask_free(igs);
# 2172|-> code = pdfi_trans_end_smask_notify(ctx);
# 2173| }
# 2174| goto exit;
Error: CPPCHECK_WARNING (CWE-457): [#def1580]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_gstate.c:2338: warning[uninitvar]: Uninitialized variable: code
# 2336| }
# 2337| }
# 2338|-> return code;
# 2339| }
# 2340|
Error: CPPCHECK_WARNING: [#def1581]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1582]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:261:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 259| data = gs_alloc_bytes(ctx->memory, data_buf_len, "pdfi_scan_jpxfilter (data)");
# 260| if (!data) {
# 261|-> code = gs_note_error(gs_error_VMerror);
# 262| goto exit;
# 263| }
Error: CLANG_WARNING: [#def1583]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:274:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 272| if (box_len <= 0 || box_len > avail) {
# 273| dmprintf1(ctx->memory, "WARNING: invalid JPX header, box_len=0x%x\n", box_len+8);
# 274|-> code = gs_note_error(gs_error_syntaxerror);
# 275| goto exit;
# 276| }
Error: CLANG_WARNING: [#def1584]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:285:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 283| if (avail <= 0) {
# 284| info->no_data = true;
# 285|-> code = gs_note_error(gs_error_ioerror);
# 286| goto exit;
# 287| }
Error: CLANG_WARNING: [#def1585]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:299:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 297| box_len -= 8;
# 298| if (box_val != K4('i','h','d','r')) {
# 299|-> code = gs_note_error(gs_error_syntaxerror);
# 300| goto exit;
# 301| }
Error: CLANG_WARNING: [#def1586]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:303:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 301| }
# 302| if (box_len != LEN_IHDR) {
# 303|-> code = gs_note_error(gs_error_syntaxerror);
# 304| goto exit;
# 305| }
Error: CLANG_WARNING: [#def1587]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:329:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 327| box_len -= 8;
# 328| if (box_len <= 0) {
# 329|-> code = gs_note_error(gs_error_syntaxerror);
# 330| goto exit;
# 331| }
Error: CLANG_WARNING: [#def1588]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:341:17: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 339| data = gs_alloc_bytes(ctx->memory, data_buf_len, "pdfi_scan_jpxfilter (data)");
# 340| if (!data) {
# 341|-> code = gs_note_error(gs_error_VMerror);
# 342| goto exit;
# 343| }
Error: CLANG_WARNING: [#def1589]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:570:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 568| if (ctx->args.pdfstoponwarning)
# 569| goto errorExit;
# 570|-> code = 0;
# 571| }
# 572| } else {
Error: CLANG_WARNING: [#def1590]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:902:9: warning[deadcode.DeadStores]: Value stored to 'bytes_avail' is never read
# 900| bytes_used = used[main_plane];
# 901| bytes_left -= bytes_used;
# 902|-> bytes_avail -= bytes_used;
# 903| }
# 904|
Error: CLANG_WARNING: [#def1591]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:1072:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1070| goto exit;
# 1071| savedoffset = pdfi_tell(ctx->main_stream);
# 1072|-> code = pdfi_gsave(ctx);
# 1073|
# 1074| /* Disable SMask for inner image */
Error: CLANG_WARNING: [#def1592]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:1584:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1582|
# 1583| /* Copy everything from the image_dict */
# 1584|-> code = pdfi_dict_copy(ctx, dict, image_dict);
# 1585| fake_smask->stream_offset = image_stream->stream_offset;
# 1586|
Error: CLANG_WARNING: [#def1593]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_image.c:2504:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 2502| if (code < 0) goto exit1;
# 2503|
# 2504|-> code = pdfi_dict_known(ctx, form_dict, "BBox", &known);
# 2505| if (known) {
# 2506| code = pdfi_dict_get_type(ctx, form_dict, "BBox", PDF_ARRAY, (pdf_obj **)&BBox);
Error: CPPCHECK_WARNING: [#def1594]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_int.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1595]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_int.c:239: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 237| pdf_num *num;
# 238| int code = 0, malformed = false, doubleneg = false, recovered = false, negative = false, overflowed = false;
# 239|-> int int_val = 0, tenth_max_int = max_int / 10, tenth_max_uint = max_uint / 10;
# 240|
# 241| pdfi_skip_white(ctx, s);
Error: CLANG_WARNING: [#def1596]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_int.c:898:9: warning[deadcode.DeadStores]: Value stored to 'key' is never read
# 896| if (ctx->args.pdfstoponerror)
# 897| return_error(gs_error_syntaxerror);
# 898|-> key = (index >= 255 ? TOKEN_TOO_LONG : TOKEN_INVALID_KEY);
# 899| index = 0;
# 900| Buffer[0] = 0;
Error: CPPCHECK_WARNING: [#def1597]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_mark.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1598]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_mark.c:704:27: warning[core.NullDereference]: Access to field 'length' results in a dereference of a null pointer (loaded from variable 'Str')
# 702| break;
# 703| }
# 704|-> if (i > min && len2 < Str->length) {
# 705| code = gs_note_error(gs_error_undefined);
# 706| goto error;
Error: CLANG_WARNING: [#def1599]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_mark.c:974:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 972| * Sample: ~/work/samples/tests_private/pdf/sumatra/1874_-_clicking_ToC_link_crashes.pdf
# 973| */
# 974|-> code = pdfi_resolve_indirect_loop_detect(ctx, (pdf_obj *)dict, (pdf_obj *)A_dict, true);
# 975| delete_A = false;
# 976| code = 0;
Error: CLANG_WARNING: [#def1600]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_mark.c:1292:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 1290| }
# 1291|
# 1292|-> code = pdfi_pdfmark_from_dict(ctx, Info, NULL, "DOCINFO");
# 1293| exit:
# 1294| pdfi_countdown(Info);
Error: CPPCHECK_WARNING: [#def1601]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1602]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1603]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:61:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘page_dict’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:764:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:765:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:765:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:928:5: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:930:5: note: in expansion of macro ‘pdfi_countup’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/ghostpdf.h:31: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_int.h:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:18: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:60:9: note: in expansion of macro ‘pdfi_type_of’
# 59|
# 60| if (pdfi_type_of(o) == PDF_INDIRECT) {
# 61|-> if (((pdf_indirect_ref *)o)->ref_object_num == page_dict->object_num)
# 62| return_error(gs_error_circular_reference);
# 63|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1604]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:100:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘page_dict’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:764:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:765:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:765:9: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:928:5: note: in expansion of macro ‘pdfi_countdown’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:930:5: note: in expansion of macro ‘pdfi_countup’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c: scope_hint: In function ‘pdfi_process_page_contents’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:60:9: note: in expansion of macro ‘pdfi_type_of’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:89:17: note: in expansion of macro ‘pdfi_type_of’
# 98| goto page_error;
# 99| } else {
# 100|-> if (r->ref_object_num == page_dict->object_num) {
# 101| pdfi_countdown(r);
# 102| code = gs_note_error(gs_error_circular_reference);
Error: CLANG_WARNING: [#def1605]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:224:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 222| if (code < 0) {
# 223| pdfi_set_warning(ctx, code, NULL, W_PDF_BAD_MEDIABOX, "pdfi_get_media_size", NULL);
# 224|-> code = gs_erasepage(ctx->pgs);
# 225| return 0;
# 226| }
Error: CLANG_WARNING: [#def1606]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:287:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 285| if (code < 0) {
# 286| pdfi_set_warning(ctx, code, NULL, W_PDF_BAD_MEDIABOX, "pdfi_get_media_size", NULL);
# 287|-> code = gs_erasepage(ctx->pgs);
# 288| return 0;
# 289| }
Error: CLANG_WARNING: [#def1607]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:358:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 356| pdfi_countdown(a);
# 357| pdfi_set_warning(ctx, code, NULL, W_PDF_BAD_MEDIABOX, "pdfi_get_media_size", NULL);
# 358|-> code = gs_erasepage(ctx->pgs);
# 359| return 0;
# 360| }
Error: CLANG_WARNING: [#def1608]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:368:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 366| memcpy(ctx->page.Size, d, 4 * sizeof(double));
# 367|
# 368|-> code = pdfi_dict_get_int(ctx, page_dict, "Rotate", &rotate);
# 369|
# 370| rotate = rotate % 360;
Error: CLANG_WARNING: [#def1609]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:454:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 452| gs_translate(ctx->pgs, d[0] * -1, d[1] * -1);
# 453|
# 454|-> code = gs_erasepage(ctx->pgs);
# 455| return 0;
# 456| }
Error: CLANG_WARNING: [#def1610]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_page.c:670:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 668| a = NULL;
# 669| }
# 670|-> code = 0;
# 671|
# 672| code = pdfi_dict_get(ctx, page_dict, "Rotate", &o);
Error: CPPCHECK_WARNING: [#def1611]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_path.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1612]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_pattern.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1613]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_pattern.c:462:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 460| #endif
# 461| pdfi_set_warning(ctx, code, NULL, W_PDF_BADPATTERN, "pdfi_setpattern_type1", "Pattern has no Resources dictionary");
# 462|-> code = 0;
# 463| } else
# 464| goto exit;
Error: CPPCHECK_WARNING: [#def1614]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_repair.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1615]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_repair.c:149:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 147| goto exit;
# 148| }
# 149|-> offset = pdfi_unread_tell(ctx);
# 150| outer_saved_offset[0] = outer_saved_offset[1] = outer_saved_offset[2] = 0;
# 151| do {
Error: CLANG_WARNING: [#def1616]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_repair.c:156:13: warning[deadcode.DeadStores]: Value stored to 'object_num' is never read
# 154| outer_saved_offset[2] = pdfi_unread_tell(ctx);
# 155|
# 156|-> object_num = 0;
# 157|
# 158| code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
Error: CPPCHECK_WARNING: [#def1617]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def1618]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:402:9: warning[-Wstringop-overflow=]: ‘pdf_compute_hardened_hash_r6’ accessing 16 bytes in a region of size 8
# 402 | pdf_compute_hardened_hash_r6(password, pwlen,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 403 | (ownerkey ? O : U) + 40,
# | ~~~~~~~~~~~~~~~~~~~~~~~~
# 404 | (ownerkey ? U : NULL), hash);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:402:9: note: referencing argument 3 of type ‘unsigned char[16]’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:402:9: note: referencing argument 5 of type ‘unsigned char[32]’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c: scope_hint: In function ‘check_owner_password_R6.constprop.0’
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:324:1: note: in a call to function ‘pdf_compute_hardened_hash_r6’
# 324 | pdf_compute_hardened_hash_r6(unsigned char *password, int pwlen, unsigned char salt[16], unsigned char *ownerkey, unsigned char hash[32])
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 400| (ownerkey ? O : U) + 32,
# 401| ownerkey ? U : NULL, validationkey);
# 402|-> pdf_compute_hardened_hash_r6(password, pwlen,
# 403| (ownerkey ? O : U) + 40,
# 404| (ownerkey ? U : NULL), hash);
Error: CLANG_WARNING: [#def1619]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:796:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 794| EKey->data[j] = Key[j] ^ i;
# 795| }
# 796|-> code = pdfi_apply_Arc4_filter(ctx, EKey, stream, &arc4_stream);
# 797| sfread(Buffer, 1, 32, arc4_stream->s);
# 798| pdfi_close_file(ctx, arc4_stream);
Error: CLANG_WARNING: [#def1620]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_sec.c:815:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 813| goto error;
# 814|
# 815|-> code = pdfi_apply_Arc4_filter(ctx, EKey, stream, &arc4_stream);
# 816| pdfi_countdown(EKey);
# 817| EKey = NULL;
Error: CPPCHECK_WARNING: [#def1621]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_shading.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1622]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_stack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1623]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_text.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1624]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_text.c:765:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 763|
# 764| /* Capture the current position, in case we need it for clipping */
# 765|-> code = gs_currentpoint(ctx->pgs, &initial_point);
# 766|
# 767| Trmode = gs_currenttextrenderingmode(ctx->pgs);
Error: CPPCHECK_WARNING: [#def1625]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1626]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c:482:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 480| return_error(gs_error_undefined);
# 481|
# 482|-> code = pdfi_gsave(ctx);
# 483| bbox.p.x = ctx->page.Size[0];
# 484| bbox.p.y = ctx->page.Size[1];
Error: CLANG_WARNING: [#def1627]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c:517:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 515| goto exit;
# 516|
# 517|-> code = pdfi_gsave(ctx);
# 518| code = pdfi_dict_knownget_type(ctx, form_dict, "BBox", PDF_ARRAY, (pdf_obj **)&BBox);
# 519| if (code < 0)
Error: CLANG_WARNING: [#def1628]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c:776:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 774| state->saveStrokeAlpha = gs_getstrokeconstantalpha(ctx->pgs);
# 775| state->saveFillAlpha = gs_getfillconstantalpha(ctx->pgs);
# 776|-> code = gs_setfillconstantalpha(ctx->pgs, 1.0);
# 777| code = gs_setstrokeconstantalpha(ctx->pgs, 1.0);
# 778| }
Error: CLANG_WARNING: [#def1629]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c:868:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 866|
# 867| if (state->GroupPushed) {
# 868|-> code = pdfi_trans_end_simple_group(ctx);
# 869| code = gs_setstrokeconstantalpha(ctx->pgs, state->saveStrokeAlpha);
# 870| code = gs_setfillconstantalpha(ctx->pgs, state->saveFillAlpha);
Error: CLANG_WARNING: [#def1630]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_trans.c:869:9: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 867| if (state->GroupPushed) {
# 868| code = pdfi_trans_end_simple_group(ctx);
# 869|-> code = gs_setstrokeconstantalpha(ctx->pgs, state->saveStrokeAlpha);
# 870| code = gs_setfillconstantalpha(ctx->pgs, state->saveFillAlpha);
# 871| }
Error: CPPCHECK_WARNING: [#def1631]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_xref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1632]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_xref.c:532:21: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 530| /* TODO: Not positive this will actually have a length -- just use 0 */
# 531| pdfi_set_error_var(ctx, 0, NULL, E_PDF_BADSTREAM, "pdfi_read_xref_stream_dict", "Xref Stream object %u missing mandatory keyword /Length\n", obj_num);
# 532|-> code = 0;
# 533| Length = 0;
# 534| }
Error: CPPCHECK_WARNING: [#def1633]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1634]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c:623:38: warning[core.NullDereference]: Dereference of null pointer
# 621| {
# 622| dsc->page[dsc->page_count].ordinal = ordinal;
# 623|-> dsc->page[dsc->page_count].label =
# 624| dsc_alloc_string(dsc, label, (int)strlen(label)+1);
# 625| dsc->page[dsc->page_count].begin = 0;
Error: CLANG_WARNING: [#def1635]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c:1364:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 1362|
# 1363| if (dsc->file_length &&
# 1364|-> (dsc->macbin->resource_begin + dsc->macbin->resource_length
# 1365| > dsc->file_length)) {
# 1366| return CDSC_ERROR;
Error: CLANG_WARNING: [#def1636]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c:1369:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 1367| }
# 1368| if (dsc->file_length &&
# 1369|-> (dsc->macbin->data_begin + dsc->macbin->data_length
# 1370| > dsc->file_length)) {
# 1371| return CDSC_ERROR;
Error: CLANG_WARNING: [#def1637]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c:1374:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 1372| }
# 1373|
# 1374|-> dsc->doseps_end = dsc->macbin->data_begin + dsc->macbin->data_length;
# 1375|
# 1376| header = 26 + entries * 12;
Error: CLANG_WARNING: [#def1638]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dscparse.c:3832:32: warning[core.NullDereference]: Dereference of null pointer
# 3830| code = dsc_add_page(dsc, 1, composite);
# 3831| else if (dsc->page_count == 1)
# 3832|-> dsc->page[0].label =
# 3833| dsc_alloc_string(dsc, composite, (int)strlen(composite)+1);
# 3834| if (code != CDSC_OK)
Error: CLANG_WARNING: [#def1639]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dxmain.c:1046:32: warning[deadcode.DeadStores]: Value stored to 'devicen' during its initialization is never read
# 1044| int num_visible = 0;
# 1045| int show_gray = 0;
# 1046|-> IMAGE_DEVICEN *devicen = img->devicen;
# 1047| for (j=0; j<IMAGE_DEVICEN_MAX; j++) {
# 1048| if (img->devicen[j].used) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1640]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dxmain.c: scope_hint: In function ‘main’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dxmain.c:1206:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nargv’
# 1204| nargc = argc + 1;
# 1205| nargv = (char **)malloc(nargc * sizeof(char *));
# 1206|-> nargv[0] = argv[0];
# 1207| nargv[1] = dformat;
# 1208| memcpy(&nargv[2], &argv[1], (argc-1) * sizeof(char *));
Error: CLANG_WARNING: [#def1641]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/dxmain.c:1250:19: warning[unix.Malloc]: Potential leak of memory pointed to by 'nargv'
# 1248| }
# 1249|
# 1250|-> exit_status = 0;
# 1251| switch (code) {
# 1252| case 0:
Error: CPPCHECK_WARNING: [#def1642]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ialloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1643]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1644]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iapi.h:395: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 393| * param is set without this flag (or on device init). Not valid
# 394| * for get_typed_param. */
# 395|-> gs_spt_more_to_come = 1<<31
# 396| } gs_set_param_type;
# 397| /* gs_spt_parsed allows for a string such as "<< /Foo 0 /Bar true >>" or
Error: CPPCHECK_WARNING: [#def1645]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idict.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1646]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idict.c:326: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 324| */
# 325|
# 326|-> if (expt < sizeof(long) * 8 || pkey->value.realval == min_long)
# 327| i = (int)pkey->value.realval;
# 328| else
Error: CPPCHECK_WARNING (CWE-758): [#def1647]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idict.c:329: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 327| i = (int)pkey->value.realval;
# 328| else
# 329|-> i = (int)(mant * min_long); /* MSVC 6.00.8168.0 cannot compile this */
# 330| hash = (uint)i * 30503; /* with -O2 as a single expression */
# 331| }
Error: CPPCHECK_WARNING (CWE-457): [#def1648]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idict.c:816: error[uninitvar]: Uninitialized variable: *(&dnew.keys)
# 814| else
# 815| gs_free_ref_array(mem, &pdict->keys, "dict_resize(old keys)");
# 816|-> ref_assign(&pdict->keys, &dnew.keys);
# 817| ref_assign(&pdict->values, &dnew.values);
# 818| r_store_attrs(&pdict->values, a_all | a_executable, orig_attrs);
Error: CPPCHECK_WARNING: [#def1649]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idisp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1650]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1651]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c:198: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 196| break;
# 197| case t_real:
# 198|-> if (pa.value.realval < min_int ||
# 199| pa.value.realval > max_int ||
# 200| pa.value.realval != (int)pa.value.realval
Error: CPPCHECK_WARNING (CWE-758): [#def1652]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c:199: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 197| case t_real:
# 198| if (pa.value.realval < min_int ||
# 199|-> pa.value.realval > max_int ||
# 200| pa.value.realval != (int)pa.value.realval
# 201| )
Error: CPPCHECK_WARNING (CWE-758): [#def1653]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c:341: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 339|
# 340| if (pdict == 0) {
# 341|-> uid_set_invalid(puid);
# 342| return defaultval;
# 343| }
Error: CPPCHECK_WARNING (CWE-758): [#def1654]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c:378: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 376| /* and if it is, the legal range is 0 to 2^24-1. */
# 377| if (dict_find_string(pdict, "UniqueID", &puniqueid) <= 0) {
# 378|-> uid_set_invalid(puid);
# 379| return defaultval;
# 380| } else {
Error: CPPCHECK_WARNING (CWE-758): [#def1655]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idparam.c:389: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 387| /* Treat 0 as equivalent to -1 (no UniqueID). */
# 388| if (puniqueid->value.intval == 0) {
# 389|-> uid_set_invalid(puid);
# 390| return defaultval;
# 391| } else
Error: CPPCHECK_WARNING: [#def1656]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/idstack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1657]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def1658]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.is_thread_safe
# 529| next = mem->saved;
# 530| mem->saved = prev;
# 531|-> mem->previous_status = total;
# 532| if_debug3m('6', (const gs_memory_t *)mem,
# 533| "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",
Error: CPPCHECK_WARNING (CWE-909): [#def1659]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.limit
# 529| next = mem->saved;
# 530| mem->saved = prev;
# 531|-> mem->previous_status = total;
# 532| if_debug3m('6', (const gs_memory_t *)mem,
# 533| "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",
Error: CPPCHECK_WARNING (CWE-909): [#def1660]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c:531: error[uninitStructMember]: Uninitialized struct member: total.max_used
# 529| next = mem->saved;
# 530| mem->saved = prev;
# 531|-> mem->previous_status = total;
# 532| if_debug3m('6', (const gs_memory_t *)mem,
# 533| "[6]"PRI_INTPTR" previous allocated=%lu, used=%lu\n",
Error: CPPCHECK_WARNING (CWE-457): [#def1661]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c:539: warning[uninitvar]: Uninitialized variables: total.limit, total.max_used, total.is_thread_safe
# 537| }
# 538| mem = space_memories[ispace];
# 539|-> mem->previous_status = total;
# 540| mem->gc_allocated = mem->allocated + total.allocated;
# 541| if_debug3m('6', (const gs_memory_t *)mem,
Error: CPPCHECK_WARNING (CWE-190): [#def1662]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igc.c:1196: error[integerOverflow]: Signed integer overflow for expression '-((((((8-1)|(8-1)|(8-1))+1)-1)|((1<<3)-1)|((1<<1)-1))+1)'.
# 1194| !(*procs->set_reloc) (pre, reloc, size))
# 1195| ) { /* Free object */
# 1196|-> reloc += sizeof(obj_header_t) + obj_align_round(size);
# 1197| if ((finalize = pre->o_type->finalize) != 0) {
# 1198| if_debug2m('u', gcst->heap, "[u]GC finalizing %s "PRI_INTPTR"\n",
Error: CPPCHECK_WARNING: [#def1663]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igcref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def1664]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igcstr.c:67: error[integerOverflow]: Signed integer overflow for expression '-(1<<(2+3))'.
# 65| {
# 66| uint offset = ptr - cp->sbase;
# 67|-> bword *bp = (bword *) (cp->smark + ((offset & -bword_bits) >> 3));
# 68| uint bn = offset & (bword_bits - 1);
# 69| bword m = bword_1s << bn;
Error: CPPCHECK_WARNING (CWE-190): [#def1665]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igcstr.c:97: error[integerOverflow]: Signed integer overflow for expression '-(1<<(2+3))'.
# 95| m = bword_1s, left -= bword_bits - bn, bp++;
# 96| if (left >= bword_bits * 5) {
# 97|-> memset(bp, 0, (left & -bword_bits) >> 3);
# 98| bp += left >> bword_log2_bits;
# 99| left &= bword_bits - 1;
Error: CLANG_WARNING: [#def1666]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/igcstr.c:348:21: warning[deadcode.DeadStores]: Value stored to 'from' during its initialization is never read
# 346| byte *hi = cp->climit;
# 347| byte *lo = cp->ctop;
# 348|-> const byte *from = hi;
# 349| byte *to = hi;
# 350| const byte *bp = cp->smark + cp->smark_size;
Error: CPPCHECK_WARNING: [#def1667]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iinit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1668]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1669]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imain.c:1403:32: warning[core.NullDereference]: Dereference of null pointer
# 1401| /* This will release all memory, close all open files, etc. */
# 1402| if (minst->init_done >= 1) {
# 1403|-> gs_memory_t *mem_raw = i_ctx_p->memory.current->non_gc_memory;
# 1404| i_plugin_holder *h = i_ctx_p->plugin_list;
# 1405|
Error: CPPCHECK_WARNING: [#def1670]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1671]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c:685: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 683|
# 684| (void)sscanf((const char *)arg, "%ld", &msize);
# 685|-> if (msize <= 0 || msize > max_long >> 10) {
# 686| outprintf(minst->heap, "-K<numK> must have 1 <= numK <= %ld\n",
# 687| max_long >> 10);
Error: CPPCHECK_WARNING (CWE-758): [#def1672]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c:687: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 685| if (msize <= 0 || msize > max_long >> 10) {
# 686| outprintf(minst->heap, "-K<numK> must have 1 <= numK <= %ld\n",
# 687|-> max_long >> 10);
# 688| return gs_error_Fatal;
# 689| }
Error: CLANG_WARNING: [#def1673]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c:853:31: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
# 851| if ((strchr(eqp, '#') == NULL) && (strchr(eqp, '.') == NULL) &&
# 852| (strchr(eqp, 'e') == NULL) && (strchr(eqp, 'E') == NULL) &&
# 853|-> ((i = sscanf((const char *)eqp, "%"PRIi64, &num)) == 1)) {
# 854| char suffix = eqp[strlen(eqp) - 1];
# 855|
Error: CLANG_WARNING: [#def1674]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c:1462:17: warning[deadcode.DeadStores]: Value stored to 'vers' during its initialization is never read
# 1460| const char *rtd_url = "https://ghostscript.readthedocs.io/en";
# 1461| const char *latest_ver="latest";
# 1462|-> const char *vers = latest_ver;
# 1463| const char *gs_str = "gs";
# 1464| const char *gs = "";
Error: CLANG_WARNING: [#def1675]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/imainarg.c:1464:17: warning[deadcode.DeadStores]: Value stored to 'gs' during its initialization is never read
# 1462| const char *vers = latest_ver;
# 1463| const char *gs_str = "gs";
# 1464|-> const char *gs = "";
# 1465| uint blen = sizeof(buffer);
# 1466|
Error: CPPCHECK_WARNING: [#def1676]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-190): [#def1677]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iname.c:111: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
# 109| for (i = -1; i < NT_1CHAR_SIZE; i++) {
# 110| uint ncnt = NT_1CHAR_FIRST + i;
# 111|-> uint nidx = name_count_to_index(ncnt);
# 112| name *pname = names_index_ptr_inline(nt, nidx);
# 113| name_string_t *pnstr = names_index_string_inline(nt, nidx);
Error: CPPCHECK_WARNING (CWE-190): [#def1678]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iname.c:180: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
# 178| uint hash = *ptr + NT_1CHAR_FIRST;
# 179|
# 180|-> nidx = name_count_to_index(hash);
# 181| pname = names_index_ptr_inline(nt, nidx);
# 182| goto mkn;
Error: CPPCHECK_WARNING (CWE-190): [#def1679]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iname.c:345: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
# 343| /* We can make the test much more efficient if we want.... */
# 344| for (i = 0; i < nt_sub_size; ++i)
# 345|-> if (name_index_to_count((si << nt_log2_sub_size) + i) >=
# 346| nt->perm_count)
# 347| ssub->strings[i].mark = 0;
Error: CPPCHECK_WARNING (CWE-190): [#def1680]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iname.c:586: error[integerOverflow]: Signed integer overflow for expression '-(1<<(8+(4>=2)))'.
# 584| nbase = 1, keep = true; /* don't free name 0 */
# 585| for (;; --ncnt) {
# 586|-> uint nidx = name_count_to_index(ncnt);
# 587| name_string_t *pnstr = &ssub->strings[nidx & nt_sub_index_mask];
# 588|
Error: CPPCHECK_WARNING: [#def1681]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/interp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1682]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def1683]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iparam.c:667: error[invalidLifetime]: Using object that points to local variable 'elt' that is out of scope.
# 665| if (code < 0) {
# 666| gs_free_object(plist->memory, psv, "ref_param_read_string_array");
# 667|-> return (*loc.presult = code);
# 668| }
# 669| pvalue->data = psv;
Error: CPPCHECK_WARNING: [#def1684]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ireclaim.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1685]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ireclaim.c:121:19: warning[deadcode.DeadStores]: Although the value stored to 'mem' is used in the enclosing expression, the value is never actually read from 'mem'
# 119|
# 120| memories[0] = dmem->space_system;
# 121|-> memories[1] = mem = dmem->space_global;
# 122| nmem = 2;
# 123| if (lmem != dmem->space_global)
Error: CLANG_WARNING: [#def1686]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ireclaim.c:168:9: warning[deadcode.DeadStores]: Value stored to 'dmem' is never read
# 166| gs_unregister_root((gs_memory_t *)lmem, r, "i_ctx_p root");
# 167| i_ctx_p = ctxp;
# 168|-> dmem = &i_ctx_p->memory;
# 169| }
# 170|
Error: CPPCHECK_WARNING: [#def1687]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1688]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c:727:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c: scope_hint: In function ‘alloc_restore_all’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iastate.h:25: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c:883:71: note: in expansion of macro ‘idmemory’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/isave.c: scope_hint: In function ‘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): [#def1689]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c: scope_hint: In function ‘gs_scan_token’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:540:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pstate.s_pdepth’
# 538| /* sstate.s_scan_type == scanning_none. */
# 539| sstate.s_pstack = pstate->s_pstack;
# 540|-> sstate.s_pdepth = pstate->s_pdepth;
# 541| ref_assign(&sstate.s_file, &pstate->s_file);
# 542| sstate.s_options = pstate->s_options;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1690]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:817:21: warning[-Wanalyzer-null-argument]: use of NULL ‘sptr’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:21: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:544:5: note: in expansion of macro ‘s_begin_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:322:4: note: in expansion of macro ‘s_end_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:320:39: note: in expansion of macro ‘spgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:323:4: note: in expansion of macro ‘s_begin_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:320:39: note: in expansion of macro ‘spgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 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: GCC_ANALYZER_WARNING (CWE-476): [#def1691]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:944:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sptr’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:544:5: note: in expansion of macro ‘s_begin_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:322:4: note: in expansion of macro ‘s_end_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:320:39: note: in expansion of macro ‘spgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:323:4: note: in expansion of macro ‘s_begin_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/stream.h:320:39: note: in expansion of macro ‘spgetc_inline’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:549:11: note: in expansion of macro ‘sgetc_inline’
# 942| goto do_name;
# 943| }
# 944|-> if (*(sptr + 1) == '-') {
# 945| sptr++;
# 946| } else
Error: CLANG_WARNING: [#def1692]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscan.c:1148:21: warning[deadcode.DeadStores]: Value stored to 'retcode' is never read
# 1146| if (retcode == 1) {
# 1147| ref_mark_new(myref);
# 1148|-> retcode = 0;
# 1149| } else if (retcode != gs_error_syntaxerror) {
# 1150| dynamic_free(&sstate.s_da);
Error: CPPCHECK_WARNING: [#def1693]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1694]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c: scope_hint: In function ‘scan_bos’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:183:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:180:5: note: in expansion of macro ‘s_begin_inline’
# 181| {
# 182| uint rcnt = rlimit - p;
# 183|-> uint top_size = p[1];
# 184| uint hsize, size;
# 185|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1695]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c: scope_hint: In function ‘scan_bin_scalar’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:282:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:281:5: note: in expansion of macro ‘s_begin_inline’
# 280|
# 281| s_begin_inline(s, p, rlimit);
# 282|-> wanted = bin_token_bytes[*p - MIN_BIN_TOKEN_TYPE] - 1;
# 283| switch (*p) {
# 284| case BT_INT8:
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1696]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c: scope_hint: In function ‘scan_bos_continue’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:531:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscanbin.c:517:5: note: in expansion of macro ‘s_begin_inline’
# 529| return scan_Refill;
# 530| }
# 531|-> if (p[2] != 0) { /* reserved, must be 0 */
# 532| scan_bos_error(pstate, "non-zero unused field");
# 533| return_error(gs_error_syntaxerror);
Error: CPPCHECK_WARNING: [#def1697]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1698]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:103: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 101| }
# 102|
# 103|-> max_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MAX_PS_INT32 : MAX_PS_INT;
# 104| min_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MIN_PS_INT32 : MIN_PS_INT;
# 105|
Error: CPPCHECK_WARNING (CWE-758): [#def1699]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:103: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 101| }
# 102|
# 103|-> max_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MAX_PS_INT32 : MAX_PS_INT;
# 104| min_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MIN_PS_INT32 : MIN_PS_INT;
# 105|
Error: CPPCHECK_WARNING (CWE-758): [#def1700]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:104: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 102|
# 103| max_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MAX_PS_INT32 : MAX_PS_INT;
# 104|-> min_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MIN_PS_INT32 : MIN_PS_INT;
# 105|
# 106| max_scan = scanner_options & SCAN_PDF_UNSIGNED && sign >= 0 ? ~((ps_int)0) : max_ps_int_scan;
Error: CPPCHECK_WARNING (CWE-758): [#def1701]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:104: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 102|
# 103| max_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MAX_PS_INT32 : MAX_PS_INT;
# 104|-> min_ps_int_scan = scanner_options & SCAN_CPSI_MODE ? MIN_PS_INT32 : MIN_PS_INT;
# 105|
# 106| max_scan = scanner_options & SCAN_PDF_UNSIGNED && sign >= 0 ? ~((ps_int)0) : max_ps_int_scan;
Error: CLANG_WARNING: [#def1702]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:231:5: warning[deadcode.DeadStores]: Value stored to 'exp10' is never read
# 229| /* Accumulate a double in dval. */
# 230| l2d:
# 231|-> exp10 = 0;
# 232| for (;;) {
# 233| dval = dval * 10 + d;
Error: CPPCHECK_WARNING (CWE-758): [#def1703]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iscannum.c:278: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 276| break;
# 277| }
# 278|-> if (WOULD_OVERFLOW(ival, d, max_int)) {
# 279| dval = (double)ival;
# 280| goto fd;
Error: CPPCHECK_WARNING: [#def1704]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/istack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1705]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def1706]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iutil.c: scope_hint: In function ‘obj_cvp’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iutil.c:540:5: warning[-Wundef]: "DEBUG" is not defined, evaluates to 0
# 540 | #if DEBUG
# | ^~~~~
# 538| }
# 539| /* Internal operator, no name. */
# 540|-> #if DEBUG
# 541| gs_snprintf(buf, sizeof(buf), "@"PRI_INTPTR, (intptr_t) op->value.opproc);
# 542| #else
Error: CPPCHECK_WARNING: [#def1707]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/psapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1708]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1709]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:307: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 305| if (sizeof(ps_int) != 4 && gs_currentcpsimode(imemory)) {
# 306| double ab = (double)op[-1].value.intval * op->value.intval;
# 307|-> if (ab > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 308| make_real(op - 1, ab);
# 309| else if (ab < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
Error: CPPCHECK_WARNING (CWE-758): [#def1710]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:309: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 307| if (ab > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 308| make_real(op - 1, ab);
# 309|-> else if (ab < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
# 310| make_real(op - 1, ab);
# 311| else
Error: CPPCHECK_WARNING (CWE-758): [#def1711]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:411: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 409| if (sizeof(ps_int) && gs_currentcpsimode(imemory)) {
# 410| int tmpval;
# 411|-> if ((op->value.intval == 0) || (op[-1].value.intval == (ps_int)MIN_PS_INT32 && op->value.intval == -1)) {
# 412| /* Anomalous boundary case: -MININT / -1, fail. */
# 413| return_error(gs_error_undefinedresult);
Error: CPPCHECK_WARNING (CWE-758): [#def1712]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:419: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 417| }
# 418| else {
# 419|-> if ((op->value.intval == 0) || (op[-1].value.intval == MIN_PS_INT && op->value.intval == -1)) {
# 420| /* Anomalous boundary case: -MININT / -1, fail. */
# 421| return_error(gs_error_undefinedresult);
Error: CPPCHECK_WARNING (CWE-758): [#def1713]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:438: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 436| check_type(*op, t_integer);
# 437| check_type(op[-1], t_integer);
# 438|-> if (op->value.intval == 0 || op[-1].value.intval == MIN_PS_INT)
# 439| return_error(gs_error_undefinedresult);
# 440| op[-1].value.intval %= op->value.intval;
Error: CPPCHECK_WARNING (CWE-758): [#def1714]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:460: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 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: CPPCHECK_WARNING (CWE-758): [#def1715]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:461: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 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
# 463| op->value.intval = -op->value.intval;
Error: CPPCHECK_WARNING (CWE-758): [#def1716]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:466: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 464| }
# 465| else {
# 466|-> if (op->value.intval == MIN_PS_INT)
# 467| make_real(op, -(float)MIN_PS_INT);
# 468| else
Error: CPPCHECK_WARNING (CWE-758): [#def1717]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarith.c:467: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 465| else {
# 466| if (op->value.intval == MIN_PS_INT)
# 467|-> make_real(op, -(float)MIN_PS_INT);
# 468| else
# 469| op->value.intval = -op->value.intval;
Error: CPPCHECK_WARNING: [#def1718]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zarray.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1719]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1720]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:431: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 429| /* Check that the UniqueIDs match. This is part of the */
# 430| /* Adobe protection scheme, but we may as well emulate it. */
# 431|-> if (uid_is_valid(&pfont->UID) &&
# 432| !dict_check_uid_param(op, &pfont->UID)
# 433| )
Error: CPPCHECK_WARNING (CWE-758): [#def1721]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:434: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 432| !dict_check_uid_param(op, &pfont->UID)
# 433| )
# 434|-> uid_set_invalid(&pfont->UID);
# 435| if (uid_is_valid(&pfont->UID)) {
# 436| const gs_font *pfont0 = (const gs_font *)pfont;
Error: CPPCHECK_WARNING (CWE-758): [#def1722]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:435: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 433| )
# 434| uid_set_invalid(&pfont->UID);
# 435|-> if (uid_is_valid(&pfont->UID)) {
# 436| const gs_font *pfont0 = (const gs_font *)pfont;
# 437|
Error: CPPCHECK_WARNING (CWE-758): [#def1723]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:443: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 441| return code; /* Must not happen. */
# 442| if (code)
# 443|-> uid_set_invalid(&pfont->UID);
# 444| }
# 445| return 0;
Error: CPPCHECK_WARNING (CWE-758): [#def1724]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:486: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 484| make_null(&pdata->CharStrings);
# 485| /* Fill in members normally set by build_gs_simple_font. */
# 486|-> uid_set_invalid(&uid);
# 487| init_gs_simple_font(pfont, bbox, &uid);
# 488| pfont->encoding_index = ENCODING_INDEX_UNKNOWN;
Error: CPPCHECK_WARNING (CWE-758): [#def1725]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:573: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 571| return code;
# 572| if ((options & bf_UniqueID_ignored) && uid_is_UniqueID(&uid))
# 573|-> uid_set_invalid(&uid);
# 574| code = build_gs_font(i_ctx_p, op, (gs_font **) ppfont, ftype, pstype,
# 575| pbuild, options);
Error: CLANG_WARNING: [#def1726]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:645:22: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 643| gs_c_glyph_name(gs_c_known_encode((gs_char)i, index), &rstr);
# 644| if (rstr.size == fstrs[i].size &&
# 645|-> !memcmp(rstr.data, fstrs[i].data, rstr.size)
# 646| )
# 647| continue;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1727]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c: scope_hint: In function ‘copy_font_name’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:981:5: warning[-Wanalyzer-null-argument]: use of NULL ‘fname.value.bytes’ where non-null expected
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ghost.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:20: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:499:31: note: in expansion of macro ‘r_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:742:10: note: in expansion of macro ‘r_has_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:836:17: note: in expansion of macro ‘r_ptr’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/store.h:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/files.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/icstate.h:30: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ostack.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/oper.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:21: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ialloc.h:30:33: note: in expansion of macro ‘iimemory’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:853:40: note: in expansion of macro ‘imemory’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/store.h:236:3: note: in expansion of macro ‘make_tasv’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/store.h:240:3: note: in expansion of macro ‘make_string’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbfont.c:713:9: note: in expansion of macro ‘make_empty_string’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 979| if (size > gs_font_name_max)
# 980| size = gs_font_name_max;
# 981|-> memcpy(&pfstr->chars[0], pfname->value.const_bytes, size);
# 982| /* Following is only for debugging printout. */
# 983| pfstr->chars[size] = 0;
Error: CPPCHECK_WARNING: [#def1728]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zbseq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1729]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1730]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar.c:821:17: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 819|
# 820| pop(npop);
# 821|-> op = osp;
# 822| glyph_ref(imemory, glyph, &cnref);
# 823| if (pfont->FontType == ft_CID_TrueType) {
Error: CPPCHECK_WARNING: [#def1731]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1732]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c:314:9: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 312| icont:
# 313| code = type1_continue_dispatch(i_ctx_p, &cxs, opstr, &other_subr, 4);
# 314|-> op = osp; /* OtherSubrs might change it */
# 315| switch (code) {
# 316| case 0: /* all done */
Error: CLANG_WARNING: [#def1733]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c:410:9: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 408| ref_assign(&cnref, op - 1);
# 409| code = type1_continue_dispatch(i_ctx_p, pcxs, op, &other_subr, 4);
# 410|-> op = osp; /* OtherSubrs might change it */
# 411| switch (code) {
# 412| default: /* code < 0 or done, error */
Error: CLANG_WARNING: [#def1734]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c:445:12: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 443| bbox_getsbw_continue(i_ctx_t *i_ctx_p)
# 444| {
# 445|-> os_ptr op = osp;
# 446| ref other_subr;
# 447| gs_type1exec_state *pcxs = r_ptr(esp, gs_type1exec_state);
Error: CLANG_WARNING: [#def1735]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c:555:5: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 553| code = type1_continue_dispatch(i_ctx_p, &cxs, opstr, &other_subr,
# 554| (psbpt ? 6 : 4));
# 555|-> op = osp; /* OtherSubrs might have altered it */
# 556| switch (code) {
# 557| case 0: /* all done */
Error: CLANG_WARNING: [#def1736]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar1.c:586:9: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 584| npop -= 4; /* nobbox_fill/stroke handles the rest */
# 585| pop(npop);
# 586|-> op -= npop;
# 587| op_type1_free(i_ctx_p);
# 588| }
Error: CPPCHECK_WARNING: [#def1737]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1738]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zchar42.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1739]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcharout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1740]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcharx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1741]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1742]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcid.c:48: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 46| pcidsi->Ordering.data = pordering->value.const_bytes;
# 47| pcidsi->Ordering.size = r_size(pordering);
# 48|-> code = dict_int_param(prcidsi, "Supplement", 0, max_int, -1,
# 49| &pcidsi->Supplement);
# 50| return (code < 0 ? code : 0);
Error: CPPCHECK_WARNING: [#def1743]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1744]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcie.c:855:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 853| (intptr_t) pcache, pcache->params.base, pcache->params.factor);
# 854| if (replicate ||
# 855|-> (code = float_params(op, gx_cie_cache_size, &pcache->values[0])) < 0
# 856| ) {
# 857| /* We might have underflowed the current stack block. */
Error: CLANG_WARNING: [#def1745]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcie.c:993:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 991| if_debug3m('c', imemory, "[c]icc_sample_proc "PRI_INTPTR" base=%g, factor=%g:\n",
# 992| (intptr_t) pcache, pcache->params.base, pcache->params.factor);
# 993|-> if ((code = float_params(op, gx_cie_cache_size, &pcache->values[0])) < 0) {
# 994| /* We might have underflowed the current stack block. */
# 995| /* Handle the parameters one-by-one. */
Error: CPPCHECK_WARNING: [#def1746]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1747]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:330:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 328|
# 329| /* pass the color to the graphic library */
# 330|-> if ((code = gs_setcolor(igs, &cc)) >= 0) {
# 331|
# 332| if (n_comps > n_numeric_comps) {
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1748]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c: scope_hint: In function ‘setcmykspace’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:1723:17: warning[-Wanalyzer-infinite-loop]: infinite loop
# 1721|
# 1722| do {
# 1723|-> switch (*stage) {
# 1724| case 0:
# 1725| if (istate->use_cie_color.value.boolval && !CIESubst) {
Error: CLANG_WARNING: [#def1749]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:3826:12: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 3824| static int sepbasecolor(i_ctx_t * i_ctx_p, ref *space, int base, int *stage, int *cont, int *stack_depth)
# 3825| {
# 3826|-> os_ptr op = osp; /* required by "push" macro */
# 3827| int use, code;
# 3828|
Error: CLANG_WARNING: [#def1750]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:4119:12: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 4117| static int setdevicenspace(i_ctx_t * i_ctx_p, ref *devicenspace, int *stage, int *cont, int CIESubst)
# 4118| {
# 4119|-> os_ptr op = osp; /* required by "push" macro */
# 4120| int code = 0, num_components, i;
# 4121| ref namesarray, proc, sname, tname, sref;
Error: CLANG_WARNING: [#def1751]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:4194:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 4192| */
# 4193| devn_cs = gs_currentcolorspace_inline(igs);
# 4194|-> code = array_get(imemory, devicenspace, 4, &sref);
# 4195|
# 4196| devn_cs->params.device_n.subtype = gs_devicen_DeviceN;
Error: CLANG_WARNING: [#def1752]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:4646:13: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 4644| static int devicenbasecolor(i_ctx_t * i_ctx_p, ref *space, int base, int *stage, int *cont, int *stack_depth)
# 4645| {
# 4646|-> os_ptr op = osp; /* required by "push" macro */
# 4647| int code, use, n_comp;
# 4648| ref narray;
Error: CLANG_WARNING: [#def1753]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:4807:13: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 4805| op = osp;
# 4806| if (i == (int)ep[csme_hival].value.intval) { /* All done. */
# 4807|-> code = gs_setcolorspace(igs, pcs);
# 4808| rc_decrement_only_cs(pcs, "indexed_cont");
# 4809| ref_stack_pop(&e_stack, num_csme);
Error: CLANG_WARNING: [#def1754]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:5046:20: warning[deadcode.DeadStores]: Value stored to 'ep' during its initialization is never read
# 5044| */
# 5045| if (pcs->params.indexed.use_proc) {
# 5046|-> es_ptr ep = ++esp;
# 5047| ref proc;
# 5048|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1755]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c: scope_hint: In function ‘checkrangeab’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:5466:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value[1]’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ghost.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:20: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:512:3: note: in expansion of macro ‘_REF_HAS_MASKED_TYPE_ATTRS’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:5450:14: note: in expansion of macro ‘r_is_array’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:5452:13: note: in expansion of macro ‘r_size’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:499:31: note: in expansion of macro ‘r_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:5459:17: note: in expansion of macro ‘r_has_type’
# 5464| return_error(gs_error_typecheck);
# 5465| }
# 5466|-> if (value[1] < value[0] || value[3] < value[2] )
# 5467| return_error(gs_error_rangecheck);
# 5468| }
Error: CLANG_WARNING: [#def1756]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6657:13: warning[core.NullDereference]: Access to field 'runtransformproc' results in a dereference of an undefined pointer value (loaded from variable 'obj')
# 6655| }
# 6656| }
# 6657|-> if (obj->runtransformproc) {
# 6658| code = obj->runtransformproc(i_ctx_p, &istate->colorspace[0].array, &usealternate, &stage, &stack_depth);
# 6659| make_int(&ep[-3], stack_depth);
Error: CPPCHECK_WARNING (CWE-457): [#def1757]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6686: warning[uninitvar]: Uninitialized variable: obj
# 6684|
# 6685| /* Remove our next continuation and our data */
# 6686|-> obj->numcomponents(i_ctx_p, parr, &i);
# 6687| /* This would be better done sooner, but we need the color space object first */
# 6688| check_op(i);
Error: CLANG_WARNING: [#def1758]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6712:12: warning[deadcode.DeadStores]: Value stored to 'op' during its initialization is never read
# 6710| ref arr, *parr = &arr;
# 6711| es_ptr ep = esp, pdepth, pstage, pCIESubst;
# 6712|-> os_ptr op = osp;
# 6713| int i, code = 0, stage, cont, CIESubst = 0;
# 6714| unsigned int depth;
Error: CLANG_WARNING: [#def1759]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6754:16: warning[core.NullDereference]: Access to field 'setproc' results in a dereference of an undefined pointer value (loaded from variable 'obj')
# 6752| }
# 6753|
# 6754|-> code = obj->setproc(i_ctx_p, parr, &stage, &cont, CIESubst);
# 6755| make_int(pstage, stage);
# 6756| if (code != 0) {
Error: CLANG_WARNING: [#def1760]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6812:5: warning[deadcode.DeadStores]: Value stored to 'ep' is never read
# 6810| */
# 6811| check_estack(1);
# 6812|-> ep = esp;
# 6813| /* May need to push a /Device... name on the stack so make sure we have space */
# 6814| check_ostack(1);
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1761]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c: scope_hint: In function ‘setdevicecolor_cont’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor.c:6819:9: warning[-Wanalyzer-infinite-loop]: infinite loop
# 6817|
# 6818| do {
# 6819|-> switch(stage) {
# 6820| case 0:
# 6821| make_int(pstage, ++stage);
Error: CPPCHECK_WARNING: [#def1762]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcolor1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1763]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcontrol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1764]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcrd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1765]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zcssepr.c:145: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 143|
# 144| check_op(1);
# 145|-> code = int_param(op, max_int, ¶m);
# 146|
# 147| if (code < 0 || (code = gs_setoverprintmode(igs, param)) < 0)
Error: CPPCHECK_WARNING: [#def1766]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zdevice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1767]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zdevice2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1768]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zdict.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1769]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zdscpars.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1770]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfaes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1771]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1772]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfarc4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1773]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid.c:49: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 47| check_type(*op, t_dictionary);
# 48| if ((code = cid_font_system_info_param(&pdata->CIDSystemInfo, op)) < 0 ||
# 49|-> (code = dict_int_param(op, "CIDCount", 0, max_int, -1,
# 50| &pdata->CIDCount)) < 0
# 51| )
Error: CPPCHECK_WARNING: [#def1774]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1775]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c: scope_hint: In function ‘get_index’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:57:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pgd.bits.size’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ghost.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:19: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:499:31: note: in expansion of macro ‘r_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:80:9: note: in expansion of macro ‘r_has_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:499:31: note: in expansion of macro ‘r_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:108:22: note: in expansion of macro ‘r_has_type’
# 55| int i;
# 56|
# 57|-> if (pgd->bits.size < count)
# 58| return_error(gs_error_rangecheck);
# 59| *pval = 0;
Error: CLANG_WARNING: [#def1776]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:57:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 55| int i;
# 56|
# 57|-> if (pgd->bits.size < count)
# 58| return_error(gs_error_rangecheck);
# 59| *pval = 0;
Error: CLANG_WARNING: [#def1777]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid0.c:133:25: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 131| goto err;
# 132| if (!r_has_type(&rstr, t_string)) {
# 133|-> code = gs_note_error(gs_error_typecheck);
# 134| goto err;
# 135| }
Error: CPPCHECK_WARNING: [#def1778]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1779]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcid1.c:176:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 174| gdata.memory = pfont->memory;
# 175| if (wmode >= skip >> 2 ||
# 176|-> (code = pfcid->cidata.orig_procs.get_outline(pfont, glyph_index, &gdata)) < 0 ||
# 177| gdata.bits.size < skip
# 178| )
Error: CPPCHECK_WARNING: [#def1780]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1781]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfcmap.c:408:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 406| check_type(*op, t_dictionary);
# 407| check_dict_write(*op);
# 408|-> if ((code = dict_find_string(op, "CMapName", &pcmapname)) <= 0) {
# 409| code = gs_note_error(gs_error_rangecheck);
# 410| goto fail;
Error: CPPCHECK_WARNING (CWE-758): [#def1782]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfdecode.c:265: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 263| &bpc)) < 0 ||
# 264| (bpc & (bpc - 1)) != 0 ||
# 265|-> (code = dict_int_param(op, "Columns", 1, max_int, 1,
# 266| &ppds->Columns)) < 0
# 267| )
Error: CPPCHECK_WARNING: [#def1783]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1784]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:249:9: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 247| * more information.
# 248| */
# 249|-> if (pname.iodev && pname.iodev->dtype == iodev_dtype_stdio) {
# 250| bool statement = (strcmp(pname.iodev->dname, "%statementedit%") == 0);
# 251| bool lineedit = (strcmp(pname.iodev->dname, "%lineedit%") == 0);
Error: CLANG_WARNING: [#def1785]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:355:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 353| if (code < 0)
# 354| return code;
# 355|-> if (pname.iodev == iodev_default(imemory)) {
# 356| if ((code = check_file_permissions(i_ctx_p, pname.fname, pname.len,
# 357| pname.iodev, "PermitFileControl")) < 0 &&
Error: CLANG_WARNING: [#def1786]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:489:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 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: CLANG_WARNING: [#def1787]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:489:26: warning[core.UndefinedBinaryOperatorResult]: The right operand of '!=' is a garbage value
# 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: CLANG_WARNING: [#def1788]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:679:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 677| return code;
# 678| iodev_dflt = iodev_default(imemory);
# 679|-> if (pname.iodev == NULL)
# 680| pname.iodev = iodev_dflt;
# 681| if (pname.iodev != iodev_dflt) { /* Non-OS devices don't have search paths (yet). */
Error: CLANG_WARNING: [#def1789]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:683:15: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 681| if (pname.iodev != iodev_dflt) { /* Non-OS devices don't have search paths (yet). */
# 682| code = zopen_file(i_ctx_p, &pname, "r", &s, imemory);
# 683|-> if (s == NULL) code = gs_note_error(gs_error_undefinedfilename);
# 684| if (code >= 0) {
# 685| code = ssetfilename(s, op->value.const_bytes, r_size(op));
Error: CLANG_WARNING: [#def1790]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfile.c:1082:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1080| if (open_file == iodev_os_open_file) {
# 1081| code = check_file_permissions(i_ctx_p, pfn->fname, pfn->len, pfn->iodev,
# 1082|-> file_access[0] == 'r' ? "PermitFileReading" : "PermitFileWriting");
# 1083|
# 1084| if (code < 0 && !file_is_tempfile(i_ctx_p,
Error: CPPCHECK_WARNING: [#def1791]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfileio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1792]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfilter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1793]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfilter.c:143: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 141|
# 142| check_dict_read(*dop);
# 143|-> if ((code = dict_int_param(dop, "Width", 1, max_int, PWG_default_width, width)) < 0)
# 144| return code;
# 145| if ((code = dict_int_param(dop, "BPP", 1, 120, PWG_default_bpp, bpp)) < 0)
Error: CPPCHECK_WARNING (CWE-758): [#def1794]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfilter.c:198: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 196| * zero. Thus we are doing the same.
# 197| */
# 198|-> if ((code = dict_int_param(op, "EODCount", 0, max_int, 0, &count)) < 0)
# 199| return code;
# 200| if (dict_find_string(op, "EODString", &sop) <= 0)
Error: CPPCHECK_WARNING: [#def1795]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfimscale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1796]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfjpx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1797]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfjpx.c:138:46: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 136| }
# 137| /* else guess based on the number of components */
# 138|-> if (state.colorspace == gs_jpx_cs_unset &&
# 139| dict_find_string(csdict, "N", &nref) > 0) {
# 140| if_debug1m('w', imemory, "[w] JPX image has an external %"PRIpsint
Error: CPPCHECK_WARNING: [#def1798]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1799]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c:119:29: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 117| check_op(1);
# 118| code = font_param(op, &pfont);
# 119|-> if (code < 0 || (code = gs_setfont(igs, pfont)) < 0)
# 120| return code;
# 121| pop(1);
Error: CLANG_WARNING: [#def1800]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c:228:24: warning[core.NullDereference]: Access to field 'is_resource' results in a dereference of an undefined pointer value (loaded from variable 'pfont')
# 226| if (code < 0)
# 227| return code;
# 228|-> pfont->is_resource = true;
# 229| pop(1);
# 230| return 0;
Error: CLANG_WARNING: [#def1801]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c:339:24: warning[core.NullDereference]: Access to field 'client_data' results in a dereference of an undefined pointer value (loaded from variable 'oldfont')
# 337| ref olddict;
# 338|
# 339|-> olddict = *pfont_dict(oldfont);
# 340| *pfont_dict(oldfont) = *fp;
# 341| code = gs_makefont(ifont_dir, oldfont, pmat, &newfont);
Error: CPPCHECK_WARNING (CWE-758): [#def1802]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c:529: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 527| n > 0; pair++, n--
# 528| )
# 529|-> if (!fm_pair_is_free(pair)) {
# 530| #if 0
# 531| /* We disabled this code portion because
Error: CPPCHECK_WARNING (CWE-758): [#def1803]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont.c:548: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 546| alloc_is_since_save((char *)pair->font, save)
# 547| ) {
# 548|-> if (!uid_is_valid(&pair->UID))
# 549| gs_clean_fm_pair(pdir, pair);
# 550| /* Don't discard pairs with a surviving UID. */
Error: CPPCHECK_WARNING: [#def1804]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1805]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1806]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont1.c:435:5: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 433| gs_type1_data *pdata1)
# 434| {
# 435|-> const ref *pprivate = pfr->Private;
# 436| int code;
# 437|
Error: CPPCHECK_WARNING (CWE-758): [#def1807]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont1.c:476: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 474| * if it weren't for this, the only legal values should be 0 or 1.
# 475| */
# 476|-> if ((code = dict_int_param(pprivate, "LanguageGroup", min_int, max_int, 0, &pdata1->LanguageGroup)) < 0)
# 477| return code;
# 478| if ((code = pdata1->OtherBlues.count = dict_float_array_param(mem, pprivate, "OtherBlues",
Error: CPPCHECK_WARNING: [#def1808]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1809]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont2.c:1430: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1428| unsigned int c, u;
# 1429| const int ext16 = ~0 << 15; /* sign extension constant */
# 1430|-> const int ext32 = ~0 << 31; /* sign extension constant */
# 1431|
# 1432| if ((code = card8(&c, data, p, pe)) < 0)
Error: CLANG_WARNING: [#def1810]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont2.c:2223:25: warning[deadcode.DeadStores]: Value stored to 'control' is never read
# 2221| break;
# 2222| case 36: /* FDArray 12 36 number -, Font DICT (FD) INDEX offset (0) */
# 2223|-> control = 0;
# 2224| if (--op_i < 0)
# 2225| return_error(gs_error_stackunderflow);
Error: CLANG_WARNING: [#def1811]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont2.c:2230:25: warning[deadcode.DeadStores]: Value stored to 'control' is never read
# 2228| continue;
# 2229| case 37: /* FDSelect 12 37 number -, FDSelect offset (0) */
# 2230|-> control = 0;
# 2231| if (--op_i < 0)
# 2232| return_error(gs_error_stackunderflow);
Error: CLANG_WARNING: [#def1812]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont2.c:2713:18: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 2711| if (sid < 0)
# 2712| return sid;
# 2713|-> if ((code = make_name_from_sid(i_ctx_p, &name, strings, data, sid)) < 0) {
# 2714| char buf[40];
# 2715| int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
Error: CPPCHECK_WARNING: [#def1813]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont42.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1814]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfont42.c:122:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 120| if (code < 0)
# 121| return code;
# 122|-> return define_gs_font(i_ctx_p, (gs_font *)pfont);
# 123| }
# 124|
Error: CPPCHECK_WARNING: [#def1815]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfontenum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1816]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfontenum.c:68:12: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 66| results = NULL;
# 67| elements = 0;
# 68|-> while((code = gp_enumerate_fonts_next(enum_state, &fontname, &path )) > 0) {
# 69| fontenum_t *r;
# 70|
Error: CPPCHECK_WARNING: [#def1817]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zform.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1818]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1819]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfrsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1820]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfrsd.c:142: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 140| os_ptr op = osp;
# 141| os_ptr source_op = op - 1;
# 142|-> long length = max_long;
# 143| bool close_source;
# 144| int code;
Error: CPPCHECK_WARNING (CWE-758): [#def1821]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfrsd.c:381: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 379| s->state = (stream_state *)ss;
# 380| s->file_offset = 0;
# 381|-> s->file_limit = S_FILE_LIMIT_MAX;
# 382| s->close_at_eod = false;
# 383| s->read_id = 1;
Error: CPPCHECK_WARNING: [#def1822]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfsample.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1823]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfunc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1824]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfunc.c:66:12: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 64| if (code < 0)
# 65| return code;
# 66|-> code = make_function_proc(i_ctx_p, op, pfn);
# 67| if (code < 0)
# 68| gs_function_free(pfn, true, imemory);
Error: CPPCHECK_WARNING (CWE-758): [#def1825]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfunc.c:199: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 197| return_error(gs_error_limitcheck);
# 198| check_type(*op, t_dictionary);
# 199|-> code = dict_int_param(op, "FunctionType", 0, max_int, -1, &type);
# 200| if (code < 0)
# 201| return code;
Error: CPPCHECK_WARNING: [#def1826]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zfunc4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1827]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgeneric.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1828]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def1829]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c:53:1: warning[-Wunused-function]: ‘zcurrent_real’ defined but not used
# 53 | zcurrent_real(i_ctx_t *i_ctx_p, double (*current_proc)(const gs_gstate *))
# | ^~~~~~~~~~~~~
# 51|
# 52| static int
# 53|-> zcurrent_real(i_ctx_t *i_ctx_p, double (*current_proc)(const gs_gstate *))
# 54| {
# 55| os_ptr op = osp;
Error: COMPILER_WARNING (CWE-1164): [#def1830]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c:95:1: warning[-Wunused-function]: ‘zcurrent_uint’ defined but not used
# 95 | zcurrent_uint(i_ctx_t *i_ctx_p, uint (*current_proc)(const gs_gstate *))
# | ^~~~~~~~~~~~~
# 93|
# 94| static int
# 95|-> zcurrent_uint(i_ctx_t *i_ctx_p, uint (*current_proc)(const gs_gstate *))
# 96| {
# 97| os_ptr op = osp;
Error: CPPCHECK_WARNING (CWE-758): [#def1831]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c:249: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 247|
# 248| check_op(1);
# 249|-> code = int_param(op, max_int, ¶m);
# 250|
# 251| if (code < 0 || (code = gs_setlinecap(igs, (gs_line_cap) param)) < 0)
Error: CPPCHECK_WARNING (CWE-758): [#def1832]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c:277: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 275|
# 276| check_op(1);
# 277|-> code = int_param(op, max_int, ¶m);
# 278|
# 279| if (code < 0 || (code = gs_setlinejoin(igs, (gs_line_join) param)) < 0)
Error: CPPCHECK_WARNING (CWE-758): [#def1833]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zgstate.c:414: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 412|
# 413| check_type(*op, t_integer);
# 414|-> if (op->value.intval < -1 || op->value.intval > max_int)
# 415| return_error(gs_error_rangecheck);
# 416| code = gs_setcurvejoin(igs, (int)op->value.intval);
Error: CPPCHECK_WARNING: [#def1834]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1835]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1836]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:355:9: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 353| odict5 = *op;
# 354| ref_stack_pop(&o_stack, 2);
# 355|-> op = osp;
# 356| esp += 5;
# 357| make_mark_estack(esp - 4, es_other, sethalftone_cleanup);
Error: CLANG_WARNING: [#def1837]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:395:45: warning[core.NullDereference]: Access to field 'transfer' results in a dereference of a null pointer (loaded from variable 'porder')
# 393| check_estack(zcolor_remap_one_estack);
# 394| code = zcolor_remap_one(i_ctx_p, tprocs + j,
# 395|-> porder->transfer, igs,
# 396| zcolor_remap_one_finish);
# 397| op = osp;
Error: CLANG_WARNING: [#def1838]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:397:21: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 395| porder->transfer, igs,
# 396| zcolor_remap_one_finish);
# 397|-> op = osp;
# 398| }
# 399| break;
Error: CLANG_WARNING: [#def1839]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:461:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 459| final_mask.data = NULL;
# 460|
# 461|-> if ((code = dict_find_string(op, "OutputType", &out_type_name)) > 0) {
# 462| ref namestr;
# 463|
Error: CLANG_WARNING: [#def1840]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:476:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 474| return gs_error_undefined;
# 475| }
# 476|-> if ((code = dict_int_param(op, "Angle", 0, 360, 0, ¶ms.targ_scr_ang)) < 0)
# 477| return gs_error_undefined;
# 478| if ((code = dict_int_param(op, "Frequency", 1, 0x7fff, 75, ¶ms.targ_lpi)) < 0)
Error: CLANG_WARNING: [#def1841]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:478:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 476| if ((code = dict_int_param(op, "Angle", 0, 360, 0, ¶ms.targ_scr_ang)) < 0)
# 477| return gs_error_undefined;
# 478|-> if ((code = dict_int_param(op, "Frequency", 1, 0x7fff, 75, ¶ms.targ_lpi)) < 0)
# 479| return gs_error_undefined;
# 480| if ((code = dict_float_param(op, "HResolution", 300., &tmp_float)) < 0)
Error: CLANG_WARNING: [#def1842]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:496:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 494| if (code == 0)
# 495| params.targ_size_spec = true;
# 496|-> if ((code = dict_int_param(op, "DotShape", 0, CUSTOM - 1, 0, (int *)(¶ms.spot_type))) < 0)
# 497| return gs_error_undefined;
# 498| if ((code = dict_bool_param(op, "Holladay", false, ¶ms.holladay)) < 0)
Error: CLANG_WARNING: [#def1843]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zht2.c:498:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 496| if ((code = dict_int_param(op, "DotShape", 0, CUSTOM - 1, 0, (int *)(¶ms.spot_type))) < 0)
# 497| return gs_error_undefined;
# 498|-> if ((code = dict_bool_param(op, "Holladay", false, ¶ms.holladay)) < 0)
# 499| return gs_error_undefined;
# 500|
Error: CPPCHECK_WARNING: [#def1844]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1845]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c: scope_hint: In function ‘seticc’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:231:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘picc_profile’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ghost.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:21: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:540:3: note: in expansion of macro ‘_REF_HAS_MASKED_TYPE_ATTRS’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/oper.h:73:9: note: in expansion of macro ‘r_has_type_attrs’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/oper.h:77:3: note: in expansion of macro ‘check_type_access’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/files.h:63:5: note: in expansion of macro ‘check_read_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:79:5: note: in expansion of macro ‘check_read_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:22: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/oper.h:77:3: note: in expansion of macro ‘check_type_access’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/files.h:63:5: note: in expansion of macro ‘check_read_type’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:79:5: note: in expansion of macro ‘check_read_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/icstate.h:30: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ostack.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/oper.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/files.h:67:3: note: in expansion of macro ‘check_read_known_file_else’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/files.h:64:5: note: in expansion of macro ‘check_read_known_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:79:5: note: in expansion of macro ‘check_read_file’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:32: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:118:62: note: in expansion of macro ‘igs’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:127:71: note: in expansion of macro ‘igs’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gscspace.h:24: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxcspace.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsnamecl.h:23: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/iref.h:26: included_from: Included from here.
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:166:7: note: in expansion of macro ‘RC_DO_ADJUST’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:175:3: note: in expansion of macro ‘rc_adjust_’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:181:3: note: in expansion of macro ‘rc_adjust’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:228:9: note: in expansion of macro ‘rc_decrement’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:175:3: note: in expansion of macro ‘rc_adjust_’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:181:3: note: in expansion of macro ‘rc_adjust’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:228:9: note: in expansion of macro ‘rc_decrement’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:168:9: note: in expansion of macro ‘rc_free_struct’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:175:3: note: in expansion of macro ‘rc_adjust_’
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gsrefct.h:181:3: note: in expansion of macro ‘rc_adjust’
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zicc.c:228:9: note: in expansion of macro ‘rc_decrement’
# 229| if (code >= 0) {
# 230| /* Save this colorspace in the iccprofile_cache */
# 231|-> gsicc_add_cs(igs, pcs, picc_profile->hashcode);
# 232| /* should be an integer, but if for some reason it isn't, don't update */
# 233| if (phashval && r_has_type(phashval, t_integer))
Error: CPPCHECK_WARNING: [#def1846]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1847]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage.c:65: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 63| check_type(*op, t_dictionary);
# 64| check_dict_read(*op);
# 65|-> code = dict_int_param(op, "Width", 0, max_int_in_fixed/2, -1, &pim->Width);
# 66| if (code < 0)
# 67| return code;
Error: CPPCHECK_WARNING (CWE-758): [#def1848]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage.c:68: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 66| if (code < 0)
# 67| return code;
# 68|-> code = dict_int_param(op, "Height", 0, max_int_in_fixed/2, -1, &pim->Height);
# 69| if (code < 0)
# 70| return code;
Error: CLANG_WARNING: [#def1849]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage.c:168:10: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 166| return code;
# 167| pim->format =
# 168|-> (pip->MultipleDataSources ? gs_image_format_component_planar :
# 169| gs_image_format_chunky);
# 170| return dict_bool_param(op, "CombineWithColor", false,
Error: CPPCHECK_WARNING (CWE-758): [#def1850]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage.c:509: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 507|
# 508| for (;;) {
# 509|-> uint min_avail = max_int;
# 510| gs_const_string plane_data[GS_IMAGE_MAX_COMPONENTS];
# 511| int code;
Error: CPPCHECK_WARNING: [#def1851]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zimage3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1852]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ziodev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1853]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ziodev2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1854]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ziodevsc.c:153: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 151| s->file_modes = s->modes;
# 152| s->file_offset = 0;
# 153|-> s->file_limit = S_FILE_LIMIT_MAX;
# 154| s->save_close = s_std_null;
# 155| make_file(&ref_stdin, a_readonly | avm_system, s->read_id, s);
Error: CPPCHECK_WARNING (CWE-758): [#def1855]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ziodevsc.c:230: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 228| s->file_modes = s->modes;
# 229| s->file_offset = 0; /* in case we switch to reading later */
# 230|-> s->file_limit = S_FILE_LIMIT_MAX;
# 231| s->save_close = s->procs.flush;
# 232| make_file(&ref_stdout, a_write | avm_system, s->write_id, s);
Error: CPPCHECK_WARNING (CWE-758): [#def1856]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ziodevsc.c:301: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 299| s->file_modes = s->modes;
# 300| s->file_offset = 0; /* in case we switch to reading later */
# 301|-> s->file_limit = S_FILE_LIMIT_MAX;
# 302| s->save_close = s->procs.flush;
# 303| make_file(&ref_stderr, a_write | avm_system, s->write_id, s);
Error: CPPCHECK_WARNING: [#def1857]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1858]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmatrix.c:118:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 116| double trans[2];
# 117|
# 118|-> if ((code = num_params(op, 2, trans)) >= 0) {
# 119| code = gs_translate(igs, trans[0], trans[1]);
# 120| if (code < 0)
Error: CLANG_WARNING: [#def1859]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmatrix.c:149:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 147| double scale[2];
# 148|
# 149|-> if ((code = num_params(op, 2, scale)) >= 0) {
# 150| code = gs_scale(igs, scale[0], scale[1]);
# 151| if (code < 0)
Error: CLANG_WARNING: [#def1860]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmatrix.c:180:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 178| double ang;
# 179|
# 180|-> if ((code = real_param(op, &ang)) >= 0) {
# 181| code = gs_rotate(igs, ang);
# 182| if (code < 0)
Error: CPPCHECK_WARNING: [#def1861]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmedia2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1862]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmedia2.c:56: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 54| os_ptr pkeys = op; /* *const */
# 55| int policy_default;
# 56|-> float best_mismatch = (float)max_long; /* adhoc */
# 57| float mepos_penalty;
# 58| float mbest = best_mismatch;
Error: CLANG_WARNING: [#def1863]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmedia2.c:196:51: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value
# 194| if (best_mismatch + mepos_penalty < mbest ||
# 195| (r_has_type(&match.match_key, t_integer) &&
# 196|-> match.match_key.value.intval > aelt.key.value.intval)) {
# 197| reset_match(&match);
# 198| match.match_key = aelt.key;
Error: CPPCHECK_WARNING (CWE-758): [#def1864]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmedia2.c:240: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 238| os_ptr op = osp;
# 239| gs_matrix mat;
# 240|-> float ignore_mismatch = (float)max_long;
# 241| gs_point media_size;
# 242| int orient;
Error: CPPCHECK_WARNING: [#def1865]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1866]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc.c:370:22: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 368| check_type(*op, t_integer);
# 369| str = gp_strerror((int)op->value.intval);
# 370|-> if (str == 0 || (len = strlen(str)) == 0) {
# 371| make_false(op);
# 372| return 0;
Error: CPPCHECK_WARNING: [#def1867]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1868]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc1.c:97:65: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 95| if (code < 0)
# 96| return code;
# 97|-> if (gs_is_path_control_active(imemory) != 0 && state.cstate != 55665) {
# 98| return_error(gs_error_rangecheck);
# 99| }
Error: CPPCHECK_WARNING (CWE-758): [#def1869]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc1.c:121: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 119| if ((code = dict_uint_param(op, "seed", 0, 0xffff, 0x10000,
# 120| &cstate)) < 0 ||
# 121|-> (code = dict_int_param(op, "lenIV", 0, max_int, 4,
# 122| &state.lenIV)) < 0 ||
# 123| (code = dict_bool_param(op, "eexec", false,
Error: CPPCHECK_WARNING: [#def1870]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1871]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1872]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc3.c:110:37: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 108| if (obj_eq(imemory, &top->proc1, &top->proc2)) {
# 109| /* Names don't match strings. */
# 110|-> if (r_type(&top->proc1) != r_type(&top->proc2) &&
# 111| (r_type(&top->proc1) == t_name ||
# 112| r_type(&top->proc2) == t_name)
Error: CLANG_WARNING: [#def1873]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zmisc3.c:118:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 116| continue;
# 117| }
# 118|-> if (r_is_array(&top->proc1) && r_is_array(&top->proc2) &&
# 119| r_size(&top->proc1) == r_size(&top->proc2) &&
# 120| top < stack + (MAX_DEPTH - 1)
Error: CPPCHECK_WARNING: [#def1874]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpaint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1875]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpath1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1876]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpath1.c:219:5: warning[deadcode.DeadStores]: Value stored to 'op' is never read
# 217| push_op_estack(path_continue);
# 218| pop(4);
# 219|-> op -= 4;
# 220| return o_push_estack;
# 221| }
Error: CPPCHECK_WARNING: [#def1877]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpcolor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1878]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpdf_r6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1879]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpdfops.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1880]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zpdfops.c:1442: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1440| check_op(2);
# 1441|
# 1442|-> code = int_param(op, max_int, &num_pages);
# 1443| if (code < 0)
# 1444| return code;
Error: CPPCHECK_WARNING: [#def1881]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zrelbit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1882]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zshade.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1883]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zshade.c:620: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 618| ¶ms.Decode, ¶ms.Function, mem)) < 0 ||
# 619| (code = check_indexed_vs_function(i_ctx_p, op, params.ColorSpace, params.Function)) < 0 ||
# 620|-> (code = dict_int_param(op, "VerticesPerRow", 2, max_int, 0,
# 621| ¶ms.VerticesPerRow)) < 0 ||
# 622| (code = gs_shading_LfGt_init(ppsh, ¶ms, mem)) < 0
Error: CPPCHECK_WARNING: [#def1884]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zstack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1885]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zstring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1886]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zstring.c:39: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 37|
# 38| check_op(1);
# 39|-> check_int_leu(*op, max_int);
# 40| size = (uint)op->value.intval;
# 41| sbody = ialloc_bytes(size, ".bytestring");
Error: CPPCHECK_WARNING: [#def1887]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztoken.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1888]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztrans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1889]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztrans.c:525: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 523| }
# 524| /* Get the PageSpotColors value from the userdict, if it is defined */
# 525|-> code = dict_int_param(puserdict, "PageSpotColors", -1, max_int, -1, &spot_color_count);
# 526| if (code < 0)
# 527| return code;
Error: CPPCHECK_WARNING: [#def1890]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztype.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1891]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztype.c:293: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 291| return_error(gs_error_rangecheck);
# 292| if (sizeof(ps_int) != 4 && gs_currentcpsimode(imemory)) {
# 293|-> if ((double)fval > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 294| return_error(gs_error_rangecheck);
# 295| else if ((double)fval < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
Error: CPPCHECK_WARNING (CWE-758): [#def1892]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztype.c:295: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 293| if ((double)fval > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 294| return_error(gs_error_rangecheck);
# 295|-> else if ((double)fval < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
# 296| return_error(gs_error_rangecheck);
# 297| else {
Error: CPPCHECK_WARNING (CWE-758): [#def1893]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztype.c:418: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 416| ival = (ps_uint)fval;
# 417| if (sizeof(ps_int) != 4 && gs_currentcpsimode(imemory)) {
# 418|-> if ((double)fval > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 419| return_error(gs_error_rangecheck);
# 420| else if ((double)fval < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
Error: CPPCHECK_WARNING (CWE-758): [#def1894]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/ztype.c:420: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 418| if ((double)fval > (double)MAX_PS_INT32) /* (double)0x7fffffff */
# 419| return_error(gs_error_rangecheck);
# 420|-> else if ((double)fval < (double)MIN_PS_INT32) /* (double)(int)0x80000000 */
# 421| return_error(gs_error_rangecheck);
# 422| }
Error: CPPCHECK_WARNING: [#def1895]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zupath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1896]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zupath.c:210: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 208| gx_device_init_on_stack((gx_device *) phdev, (const gx_device *)&gs_hit_device,
# 209| imemory);
# 210|-> phdev->width = phdev->height = max_int;
# 211| gx_device_fill_in_procs(phdev);
# 212| gx_set_device_only(igs, phdev);
Error: CPPCHECK_WARNING (CWE-457): [#def1897]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zupath.c:633: error[uninitvar]: Uninitialized variable: pts.x
# 631| const double *fts[6];
# 632|
# 633|-> fts[0] = &pts[0].x;
# 634| fts[1] = &pts[0].y;
# 635| fts[2] = &pts[1].x;
Error: CLANG_WARNING: [#def1898]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zupath.c:855:10: warning[deadcode.DeadStores]: Although the value stored to 'code' is used in the enclosing expression, the value is never actually read from 'code'
# 853| gs_matrix mat;
# 854|
# 855|-> if ((code = read_matrix(imemory, op, &mat)) >= 0) {
# 856| if ((code = upath_append(op - 1, i_ctx_p, upath_compat)) >= 0) {
# 857| if (pmat)
Error: CPPCHECK_WARNING: [#def1899]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1900]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:209: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 207| return stat.max_vm & 0x7fffffff;
# 208| /* else clamp at the maximum positive value for the size_t size signed integer */
# 209|-> val = min(stat.max_vm, MAX_VM_THRESHOLD);
# 210| return val;
# 211| }
Error: CPPCHECK_WARNING (CWE-758): [#def1901]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:244: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 242| {
# 243| /* Extensions */
# 244|-> {"MaxGlobalVM", MIN_VM_THRESHOLD, MAX_VM_THRESHOLD, current_MaxGlobalVM, set_MaxGlobalVM}
# 245| };
# 246|
Error: CPPCHECK_WARNING (CWE-758): [#def1902]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:249: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 247| static const long_param_def_t system_long_params[] =
# 248| {
# 249|-> {"BuildTime", min_long, max_long, current_BuildTime, NULL},
# 250| {"MaxFontCache", 0, MAX_UINT_PARAM, current_MaxFontCache, set_MaxFontCache},
# 251| {"CurFontCache", 0, MAX_UINT_PARAM, current_CurFontCache, NULL},
Error: CPPCHECK_WARNING (CWE-758): [#def1903]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:252: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 250| {"MaxFontCache", 0, MAX_UINT_PARAM, current_MaxFontCache, set_MaxFontCache},
# 251| {"CurFontCache", 0, MAX_UINT_PARAM, current_CurFontCache, NULL},
# 252|-> {"Revision", min_long, max_long, current_Revision, NULL},
# 253| {"PageCount", min_long, max_long, current_PageCount, NULL}
# 254| };
Error: CPPCHECK_WARNING (CWE-758): [#def1904]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:253: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 251| {"CurFontCache", 0, MAX_UINT_PARAM, current_CurFontCache, NULL},
# 252| {"Revision", min_long, max_long, current_Revision, NULL},
# 253|-> {"PageCount", min_long, max_long, current_PageCount, NULL}
# 254| };
# 255|
Error: CPPCHECK_WARNING (CWE-758): [#def1905]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:448: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 446| return stat.max_vm & 0x7fffffff;
# 447| /* else clamp at the maximun positive value for the size_t size signed integer */
# 448|-> val = min(stat.max_vm, MAX_VM_THRESHOLD);
# 449| return val;
# 450| }
Error: CPPCHECK_WARNING (CWE-758): [#def1906]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:623: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 621| static const size_t_param_def_t user_size_t_params[] =
# 622| {
# 623|-> {"MaxLocalVM", MIN_VM_THRESHOLD, MAX_VM_THRESHOLD, current_MaxLocalVM, set_MaxLocalVM}
# 624| };
# 625|
Error: CPPCHECK_WARNING (CWE-758): [#def1907]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:628: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 626| static const i64_param_def_t user_i64_params[] =
# 627| {
# 628|-> {"VMThreshold", -1, MAX_VM_THRESHOLD, current_VMThreshold, set_vm_threshold},
# 629| };
# 630|
Error: CPPCHECK_WARNING (CWE-758): [#def1908]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:635: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 633| {"JobTimeout", 0, MAX_UINT_PARAM,
# 634| current_JobTimeout, set_JobTimeout},
# 635|-> {"MaxFontItem", MIN_INT_PARAM, MAX_UINT_PARAM,
# 636| current_MaxFontItem, set_MaxFontItem},
# 637| {"MinFontCompress", MIN_INT_PARAM, MAX_UINT_PARAM,
Error: CPPCHECK_WARNING (CWE-758): [#def1909]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:637: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 635| {"MaxFontItem", MIN_INT_PARAM, MAX_UINT_PARAM,
# 636| current_MaxFontItem, set_MaxFontItem},
# 637|-> {"MinFontCompress", MIN_INT_PARAM, MAX_UINT_PARAM,
# 638| current_MinFontCompress, set_MinFontCompress},
# 639| {"MaxOpStack", -1, max_long,
Error: CPPCHECK_WARNING (CWE-758): [#def1910]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:639: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 637| {"MinFontCompress", MIN_INT_PARAM, MAX_UINT_PARAM,
# 638| current_MinFontCompress, set_MinFontCompress},
# 639|-> {"MaxOpStack", -1, max_long,
# 640| current_MaxOpStack, set_MaxOpStack},
# 641| {"MaxDictStack", -1, max_long,
Error: CPPCHECK_WARNING (CWE-758): [#def1911]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:641: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 639| {"MaxOpStack", -1, max_long,
# 640| current_MaxOpStack, set_MaxOpStack},
# 641|-> {"MaxDictStack", -1, max_long,
# 642| current_MaxDictStack, set_MaxDictStack},
# 643| {"MaxExecStack", -1, max_long,
Error: CPPCHECK_WARNING (CWE-758): [#def1912]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zusparam.c:643: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 641| {"MaxDictStack", -1, max_long,
# 642| current_MaxDictStack, set_MaxDictStack},
# 643|-> {"MaxExecStack", -1, max_long,
# 644| current_MaxExecStack, set_MaxExecStack},
# 645| {"VMReclaim", -2, 0,
Error: CPPCHECK_WARNING: [#def1913]
ghostscript-10.03.1-build/ghostscript-10.03.1/psi/zvmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-704): [#def1914]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:7:1: warning[-Wlto-type-mismatch]: type of ‘gs_display_device’ does not match original declaration
# 7 | device_(gs_display_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:133:25: note: type ‘const struct gx_device_display’ should match type ‘struct gx_device’
# 133 | const gx_device_display gs_display_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdsp.c:133:25: note: ‘gs_display_device’ was previously declared here
# 5| #endif
# 6| #ifdef device_
# 7|-> device_(gs_display_device)
# 8| #endif
# 9| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def1915]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:10:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11_device’ does not match original declaration
# 10 | device2_(gs_x11_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:164:1: note: type ‘const struct gx_device_X’ should match type ‘const struct gx_device’
# 164 | x_device(gs_x11_device,
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:164:1: note: ‘gs_x11_device’ was previously declared here
# 8| #endif
# 9| #ifdef device2_
# 10|-> device2_(gs_x11_device)
# 11| device2_(gs_x11alpha_device)
# 12| device2_(gs_x11cmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def1916]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:11:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11alpha_device’ does not match original declaration
# 11 | device2_(gs_x11alpha_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:173:1: note: type ‘const struct gx_device_X’ should match type ‘const struct gx_device’
# 173 | x_device(gs_x11alpha_device,
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevx.c:173:1: note: ‘gs_x11alpha_device’ was previously declared here
# 9| #ifdef device2_
# 10| device2_(gs_x11_device)
# 11|-> device2_(gs_x11alpha_device)
# 12| device2_(gs_x11cmyk_device)
# 13| device2_(gs_x11cmyk2_device)
Error: COMPILER_WARNING (CWE-704): [#def1917]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:12:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk_device’ does not match original declaration
# 12 | device2_(gs_x11cmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:601:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 601 | const gx_device_X_wrapper gs_x11cmyk_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:601:27: note: ‘gs_x11cmyk_device’ was previously declared here
# 10| device2_(gs_x11_device)
# 11| device2_(gs_x11alpha_device)
# 12|-> device2_(gs_x11cmyk_device)
# 13| device2_(gs_x11cmyk2_device)
# 14| device2_(gs_x11cmyk4_device)
Error: COMPILER_WARNING (CWE-704): [#def1918]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:13:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk2_device’ does not match original declaration
# 13 | device2_(gs_x11cmyk2_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:610:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 610 | const gx_device_X_wrapper gs_x11cmyk2_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:610:27: note: ‘gs_x11cmyk2_device’ was previously declared here
# 11| device2_(gs_x11alpha_device)
# 12| device2_(gs_x11cmyk_device)
# 13|-> device2_(gs_x11cmyk2_device)
# 14| device2_(gs_x11cmyk4_device)
# 15| device2_(gs_x11cmyk8_device)
Error: COMPILER_WARNING (CWE-704): [#def1919]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:14:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk4_device’ does not match original declaration
# 14 | device2_(gs_x11cmyk4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:619:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 619 | const gx_device_X_wrapper gs_x11cmyk4_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:619:27: note: ‘gs_x11cmyk4_device’ was previously declared here
# 12| device2_(gs_x11cmyk_device)
# 13| device2_(gs_x11cmyk2_device)
# 14|-> device2_(gs_x11cmyk4_device)
# 15| device2_(gs_x11cmyk8_device)
# 16| device2_(gs_x11gray2_device)
Error: COMPILER_WARNING (CWE-704): [#def1920]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:15:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11cmyk8_device’ does not match original declaration
# 15 | device2_(gs_x11cmyk8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:628:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 628 | const gx_device_X_wrapper gs_x11cmyk8_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:628:27: note: ‘gs_x11cmyk8_device’ was previously declared here
# 13| device2_(gs_x11cmyk2_device)
# 14| device2_(gs_x11cmyk4_device)
# 15|-> device2_(gs_x11cmyk8_device)
# 16| device2_(gs_x11gray2_device)
# 17| device2_(gs_x11gray4_device)
Error: COMPILER_WARNING (CWE-704): [#def1921]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:16:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11gray2_device’ does not match original declaration
# 16 | device2_(gs_x11gray2_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:776:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 776 | const gx_device_X_wrapper gs_x11gray2_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:776:27: note: ‘gs_x11gray2_device’ was previously declared here
# 14| device2_(gs_x11cmyk4_device)
# 15| device2_(gs_x11cmyk8_device)
# 16|-> device2_(gs_x11gray2_device)
# 17| device2_(gs_x11gray4_device)
# 18| device2_(gs_x11mono_device)
Error: COMPILER_WARNING (CWE-704): [#def1922]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:17:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11gray4_device’ does not match original declaration
# 17 | device2_(gs_x11gray4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:786:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 786 | const gx_device_X_wrapper gs_x11gray4_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:786:27: note: ‘gs_x11gray4_device’ was previously declared here
# 15| device2_(gs_x11cmyk8_device)
# 16| device2_(gs_x11gray2_device)
# 17|-> device2_(gs_x11gray4_device)
# 18| device2_(gs_x11mono_device)
# 19| device2_(gs_x11rg16x_device)
Error: COMPILER_WARNING (CWE-704): [#def1923]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:18:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11mono_device’ does not match original declaration
# 18 | device2_(gs_x11mono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:730:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 730 | const gx_device_X_wrapper gs_x11mono_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:730:27: note: ‘gs_x11mono_device’ was previously declared here
# 16| device2_(gs_x11gray2_device)
# 17| device2_(gs_x11gray4_device)
# 18|-> device2_(gs_x11mono_device)
# 19| device2_(gs_x11rg16x_device)
# 20| device2_(gs_x11rg32x_device)
Error: COMPILER_WARNING (CWE-704): [#def1924]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:19:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11rg16x_device’ does not match original declaration
# 19 | device2_(gs_x11rg16x_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:845:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 845 | const gx_device_X_wrapper gs_x11rg16x_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:845:27: note: ‘gs_x11rg16x_device’ was previously declared here
# 17| device2_(gs_x11gray4_device)
# 18| device2_(gs_x11mono_device)
# 19|-> device2_(gs_x11rg16x_device)
# 20| device2_(gs_x11rg32x_device)
# 21| device2_(gs_PCLm_device)
Error: COMPILER_WARNING (CWE-704): [#def1925]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:20:1: warning[-Wlto-type-mismatch]: type of ‘gs_x11rg32x_device’ does not match original declaration
# 20 | device2_(gs_x11rg32x_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:863:27: note: type ‘const struct gx_device_X_wrapper’ should match type ‘const struct gx_device’
# 863 | const gx_device_X_wrapper gs_x11rg32x_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxalt.c:863:27: note: ‘gs_x11rg32x_device’ was previously declared here
# 18| device2_(gs_x11mono_device)
# 19| device2_(gs_x11rg16x_device)
# 20|-> device2_(gs_x11rg32x_device)
# 21| device2_(gs_PCLm_device)
# 22| device2_(gs_PCLm8_device)
Error: COMPILER_WARNING (CWE-704): [#def1926]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:21:1: warning[-Wlto-type-mismatch]: type of ‘gs_PCLm_device’ does not match original declaration
# 21 | device2_(gs_PCLm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:1159:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1159 | const gx_device_pdf_image gs_PCLm_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:1159: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): [#def1927]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:22:1: warning[-Wlto-type-mismatch]: type of ‘gs_PCLm8_device’ does not match original declaration
# 22 | device2_(gs_PCLm8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:1177:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 1177 | const gx_device_pdf_image gs_PCLm8_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:1177: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): [#def1928]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:23:1: warning[-Wlto-type-mismatch]: type of ‘gs_bbox_device’ does not match original declaration
# 23 | device2_(gs_bbox_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c:114:16: note: type ‘const struct gx_device_bbox’ should match type ‘const struct gx_device’
# 114 | gx_device_bbox gs_bbox_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevbbox.c:114:16: note: ‘gs_bbox_device’ was previously declared here
# 21| device2_(gs_PCLm_device)
# 22| device2_(gs_PCLm8_device)
# 23|-> device2_(gs_bbox_device)
# 24| device2_(gs_bit_device)
# 25| device2_(gs_bitcmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def1929]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:24:1: warning[-Wlto-type-mismatch]: type of ‘gs_bit_device’ does not match original declaration
# 24 | device2_(gs_bit_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:101:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
# 101 | const gx_device_bit gs_bit_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:101:21: note: ‘gs_bit_device’ was previously declared here
# 22| device2_(gs_PCLm8_device)
# 23| device2_(gs_bbox_device)
# 24|-> device2_(gs_bit_device)
# 25| device2_(gs_bitcmyk_device)
# 26| device2_(gs_bitrgb_device)
Error: COMPILER_WARNING (CWE-704): [#def1930]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:25:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitcmyk_device’ does not match original declaration
# 25 | device2_(gs_bitcmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:139:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
# 139 | const gx_device_bit gs_bitcmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:139:21: note: ‘gs_bitcmyk_device’ was previously declared here
# 23| device2_(gs_bbox_device)
# 24| device2_(gs_bit_device)
# 25|-> device2_(gs_bitcmyk_device)
# 26| device2_(gs_bitrgb_device)
# 27| device2_(gs_bitrgbtags_device)
Error: COMPILER_WARNING (CWE-704): [#def1931]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:26:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitrgb_device’ does not match original declaration
# 26 | device2_(gs_bitrgb_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:120:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
# 120 | const gx_device_bit gs_bitrgb_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:120:21: note: ‘gs_bitrgb_device’ was previously declared here
# 24| device2_(gs_bit_device)
# 25| device2_(gs_bitcmyk_device)
# 26|-> device2_(gs_bitrgb_device)
# 27| device2_(gs_bitrgbtags_device)
# 28| device2_(gs_bmp16_device)
Error: COMPILER_WARNING (CWE-704): [#def1932]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:27:1: warning[-Wlto-type-mismatch]: type of ‘gs_bitrgbtags_device’ does not match original declaration
# 27 | device2_(gs_bitrgbtags_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:166:21: note: type ‘const struct gx_device_bit’ should match type ‘const struct gx_device’
# 166 | const gx_device_bit gs_bitrgbtags_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbit.c:166:21: note: ‘gs_bitrgbtags_device’ was previously declared here
# 25| device2_(gs_bitcmyk_device)
# 26| device2_(gs_bitrgb_device)
# 27|-> device2_(gs_bitrgbtags_device)
# 28| device2_(gs_bmp16_device)
# 29| device2_(gs_bmp16m_device)
Error: COMPILER_WARNING (CWE-704): [#def1933]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:28:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp16_device’ does not match original declaration
# 28 | device2_(gs_bmp16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:103:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 103 | const gx_device_printer gs_bmp16_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:103:25: note: ‘gs_bmp16_device’ was previously declared here
# 26| device2_(gs_bitrgb_device)
# 27| device2_(gs_bitrgbtags_device)
# 28|-> device2_(gs_bmp16_device)
# 29| device2_(gs_bmp16m_device)
# 30| device2_(gs_bmp256_device)
Error: COMPILER_WARNING (CWE-704): [#def1934]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:29:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp16m_device’ does not match original declaration
# 29 | device2_(gs_bmp16m_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:148:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 148 | const gx_device_printer gs_bmp16m_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:148:25: note: ‘gs_bmp16m_device’ was previously declared here
# 27| device2_(gs_bitrgbtags_device)
# 28| device2_(gs_bmp16_device)
# 29|-> device2_(gs_bmp16m_device)
# 30| device2_(gs_bmp256_device)
# 31| device2_(gs_bmp32b_device)
Error: COMPILER_WARNING (CWE-704): [#def1935]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:30:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp256_device’ does not match original declaration
# 30 | device2_(gs_bmp256_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:126:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 126 | const gx_device_printer gs_bmp256_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:126:25: note: ‘gs_bmp256_device’ was previously declared here
# 28| device2_(gs_bmp16_device)
# 29| device2_(gs_bmp16m_device)
# 30|-> device2_(gs_bmp256_device)
# 31| device2_(gs_bmp32b_device)
# 32| device2_(gs_bmpgray_device)
Error: COMPILER_WARNING (CWE-704): [#def1936]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:31:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmp32b_device’ does not match original declaration
# 31 | device2_(gs_bmp32b_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:162:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 162 | const gx_device_printer gs_bmp32b_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:162:25: note: ‘gs_bmp32b_device’ was previously declared here
# 29| device2_(gs_bmp16m_device)
# 30| device2_(gs_bmp256_device)
# 31|-> device2_(gs_bmp32b_device)
# 32| device2_(gs_bmpgray_device)
# 33| device2_(gs_bmpmono_device)
Error: COMPILER_WARNING (CWE-704): [#def1937]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:32:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpgray_device’ does not match original declaration
# 32 | device2_(gs_bmpgray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:49:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 49 | const gx_device_printer gs_bmpgray_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:49:25: note: ‘gs_bmpgray_device’ was previously declared here
# 30| device2_(gs_bmp256_device)
# 31| device2_(gs_bmp32b_device)
# 32|-> device2_(gs_bmpgray_device)
# 33| device2_(gs_bmpmono_device)
# 34| device2_(gs_bmpsep1_device)
Error: COMPILER_WARNING (CWE-704): [#def1938]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:33:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpmono_device’ does not match original declaration
# 33 | device2_(gs_bmpmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:28:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 28 | const gx_device_printer gs_bmpmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:28:25: note: ‘gs_bmpmono_device’ was previously declared here
# 31| device2_(gs_bmp32b_device)
# 32| device2_(gs_bmpgray_device)
# 33|-> device2_(gs_bmpmono_device)
# 34| device2_(gs_bmpsep1_device)
# 35| device2_(gs_bmpsep8_device)
Error: COMPILER_WARNING (CWE-704): [#def1939]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:34:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpsep1_device’ does not match original declaration
# 34 | device2_(gs_bmpsep1_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:66:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 66 | const gx_device_printer gs_bmpsep1_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:66:25: note: ‘gs_bmpsep1_device’ was previously declared here
# 32| device2_(gs_bmpgray_device)
# 33| device2_(gs_bmpmono_device)
# 34|-> device2_(gs_bmpsep1_device)
# 35| device2_(gs_bmpsep8_device)
# 36| #endif
Error: COMPILER_WARNING (CWE-704): [#def1940]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:35:1: warning[-Wlto-type-mismatch]: type of ‘gs_bmpsep8_device’ does not match original declaration
# 35 | device2_(gs_bmpsep8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:81:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 81 | const gx_device_printer gs_bmpsep8_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbmp.c:81:25: note: ‘gs_bmpsep8_device’ was previously declared here
# 33| device2_(gs_bmpmono_device)
# 34| device2_(gs_bmpsep1_device)
# 35|-> device2_(gs_bmpsep8_device)
# 36| #endif
# 37| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def1941]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:38:1: warning[-Wlto-type-mismatch]: type of ‘gs_ccr_device’ does not match original declaration
# 38 | device_(gs_ccr_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevccr.c:113:24: note: type ‘struct gx_device_ccr’ should match type ‘struct gx_device’
# 113 | gx_device_ccr far_data gs_ccr_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevccr.c:113:24: note: ‘gs_ccr_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevccr.c:113:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1942]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:39:1: warning[-Wlto-type-mismatch]: type of ‘gs_cfax_device’ does not match original declaration
# 39 | device_(gs_cfax_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcfax.c:41:21: note: type ‘const struct gx_device_fax’ should match type ‘struct gx_device’
# 41 | const gx_device_fax gs_cfax_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcfax.c:41:21: note: ‘gs_cfax_device’ was previously declared here
# 37| #ifdef device_
# 38| device_(gs_ccr_device)
# 39|-> device_(gs_cfax_device)
# 40| device_(gs_cif_device)
# 41| device_(gs_devicen_device)
Error: COMPILER_WARNING (CWE-704): [#def1943]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:40:1: warning[-Wlto-type-mismatch]: type of ‘gs_cif_device’ does not match original declaration
# 40 | device_(gs_cif_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcif.c:37:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 37 | const gx_device_printer far_data gs_cif_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcif.c:37:34: note: ‘gs_cif_device’ was previously declared here
# 38| device_(gs_ccr_device)
# 39| device_(gs_cfax_device)
# 40|-> device_(gs_cif_device)
# 41| device_(gs_devicen_device)
# 42| device_(gs_dfaxhigh_device)
Error: COMPILER_WARNING (CWE-704): [#def1944]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:41:1: warning[-Wlto-type-mismatch]: type of ‘gs_devicen_device’ does not match original declaration
# 41 | device_(gs_devicen_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:1101:26: note: type ‘const struct gx_devn_prn_device’ should match type ‘struct gx_device’
# 1101 | const gx_devn_prn_device gs_devicen_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:1101: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): [#def1945]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:42:1: warning[-Wlto-type-mismatch]: type of ‘gs_dfaxhigh_device’ does not match original declaration
# 42 | device_(gs_dfaxhigh_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:62:25: note: type ‘struct gx_device_dfax’ should match type ‘struct gx_device’
# 62 | gx_device_dfax far_data gs_dfaxhigh_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:62:25: note: ‘gs_dfaxhigh_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:62:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1946]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:43:1: warning[-Wlto-type-mismatch]: type of ‘gs_dfaxlow_device’ does not match original declaration
# 43 | device_(gs_dfaxlow_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:54:25: note: type ‘struct gx_device_dfax’ should match type ‘struct gx_device’
# 54 | gx_device_dfax far_data gs_dfaxlow_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:54:25: note: ‘gs_dfaxlow_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdfax.c:54:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1947]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:46:1: warning[-Wlto-type-mismatch]: type of ‘gs_docxwrite_device’ does not match original declaration
# 46 | device2_(gs_docxwrite_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevdocxw.c:165:29: note: type ‘const struct gx_device_docxwrite_t’ should match type ‘const struct gx_device’
# 165 | const gx_device_docxwrite_t gs_docxwrite_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevdocxw.c:165:29: note: ‘gs_docxwrite_device’ was previously declared here
# 44| #endif
# 45| #ifdef device2_
# 46|-> device2_(gs_docxwrite_device)
# 47| device2_(gs_eps2write_device)
# 48| device2_(gs_pdfwrite_device)
Error: COMPILER_WARNING (CWE-704): [#def1948]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:47:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps2write_device’ does not match original declaration
# 47 | device2_(gs_eps2write_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
# 29 | const gx_device_pdf PDF_DEVICE_IDENT =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_eps2write_device’ was previously declared here
# 45| #ifdef device2_
# 46| device2_(gs_docxwrite_device)
# 47|-> device2_(gs_eps2write_device)
# 48| device2_(gs_pdfwrite_device)
# 49| device2_(gs_faxg3_device)
Error: COMPILER_WARNING (CWE-704): [#def1949]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:49:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg3_device’ does not match original declaration
# 49 | device2_(gs_faxg3_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:45:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
# 45 | const gx_device_fax gs_faxg3_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:45:21: note: ‘gs_faxg3_device’ was previously declared here
# 47| device2_(gs_eps2write_device)
# 48| device2_(gs_pdfwrite_device)
# 49|-> device2_(gs_faxg3_device)
# 50| device2_(gs_faxg32d_device)
# 51| device2_(gs_faxg4_device)
Error: COMPILER_WARNING (CWE-704): [#def1950]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:50:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg32d_device’ does not match original declaration
# 50 | device2_(gs_faxg32d_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:48:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
# 48 | const gx_device_fax gs_faxg32d_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:48:21: note: ‘gs_faxg32d_device’ was previously declared here
# 48| device2_(gs_pdfwrite_device)
# 49| device2_(gs_faxg3_device)
# 50|-> device2_(gs_faxg32d_device)
# 51| device2_(gs_faxg4_device)
# 52| device2_(gs_fpng_device)
Error: COMPILER_WARNING (CWE-704): [#def1951]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:51:1: warning[-Wlto-type-mismatch]: type of ‘gs_faxg4_device’ does not match original declaration
# 51 | device2_(gs_faxg4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:51:21: note: type ‘const struct gx_device_fax’ should match type ‘const struct gx_device’
# 51 | const gx_device_fax gs_faxg4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfax.c:51:21: note: ‘gs_faxg4_device’ was previously declared here
# 49| device2_(gs_faxg3_device)
# 50| device2_(gs_faxg32d_device)
# 51|-> device2_(gs_faxg4_device)
# 52| device2_(gs_fpng_device)
# 53| #endif
Error: COMPILER_WARNING (CWE-704): [#def1952]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:52:1: warning[-Wlto-type-mismatch]: type of ‘gs_fpng_device’ does not match original declaration
# 52 | device2_(gs_fpng_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfpng.c:120:22: note: type ‘const struct gx_device_fpng’ should match type ‘const struct gx_device’
# 120 | const gx_device_fpng gs_fpng_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevfpng.c:120:22: note: ‘gs_fpng_device’ was previously declared here
# 50| device2_(gs_faxg32d_device)
# 51| device2_(gs_faxg4_device)
# 52|-> device2_(gs_fpng_device)
# 53| #endif
# 54| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def1953]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:55:1: warning[-Wlto-type-mismatch]: type of ‘gs_inferno_device’ does not match original declaration
# 55 | device_(gs_inferno_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevifno.c:97:25: note: type ‘struct inferno_device’ should match type ‘struct gx_device’
# 97 | inferno_device far_data gs_inferno_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevifno.c:97:25: note: ‘gs_inferno_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevifno.c:97:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 53| #endif
# 54| #ifdef device_
# 55|-> device_(gs_inferno_device)
# 56| #endif
# 57| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def1954]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:58:1: warning[-Wlto-type-mismatch]: type of ‘gs_ink_cov_device’ does not match original declaration
# 58 | device2_(gs_ink_cov_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevicov.c:176:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 176 | const gx_device_printer gs_ink_cov_device = prn_device(
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevicov.c:176:25: note: ‘gs_ink_cov_device’ was previously declared here
# 56| #endif
# 57| #ifdef device2_
# 58|-> device2_(gs_ink_cov_device)
# 59| device2_(gs_inkcov_device)
# 60| device2_(gs_jpeg_device)
Error: COMPILER_WARNING (CWE-704): [#def1955]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:59:1: warning[-Wlto-type-mismatch]: type of ‘gs_inkcov_device’ does not match original declaration
# 59 | device2_(gs_inkcov_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevicov.c:169:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 169 | const gx_device_printer gs_inkcov_device = prn_device(
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevicov.c:169:25: note: ‘gs_inkcov_device’ was previously declared here
# 57| #ifdef device2_
# 58| device2_(gs_ink_cov_device)
# 59|-> device2_(gs_inkcov_device)
# 60| device2_(gs_jpeg_device)
# 61| device2_(gs_jpegcmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def1956]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:60:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpeg_device’ does not match original declaration
# 60 | device2_(gs_jpeg_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:77:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 77 | const gx_device_jpeg gs_jpeg_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:77:22: note: ‘gs_jpeg_device’ was previously declared here
# 58| device2_(gs_ink_cov_device)
# 59| device2_(gs_inkcov_device)
# 60|-> device2_(gs_jpeg_device)
# 61| device2_(gs_jpegcmyk_device)
# 62| device2_(gs_jpeggray_device)
Error: COMPILER_WARNING (CWE-704): [#def1957]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:61:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpegcmyk_device’ does not match original declaration
# 61 | device2_(gs_jpegcmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:132:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 132 | const gx_device_jpeg gs_jpegcmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:132:22: note: ‘gs_jpegcmyk_device’ was previously declared here
# 59| device2_(gs_inkcov_device)
# 60| device2_(gs_jpeg_device)
# 61|-> device2_(gs_jpegcmyk_device)
# 62| device2_(gs_jpeggray_device)
# 63| #endif
Error: COMPILER_WARNING (CWE-704): [#def1958]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:62:1: warning[-Wlto-type-mismatch]: type of ‘gs_jpeggray_device’ does not match original declaration
# 62 | device2_(gs_jpeggray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:102:22: note: type ‘const struct gx_device_jpeg’ should match type ‘const struct gx_device’
# 102 | const gx_device_jpeg gs_jpeggray_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevjpeg.c:102:22: note: ‘gs_jpeggray_device’ was previously declared here
# 60| device2_(gs_jpeg_device)
# 61| device2_(gs_jpegcmyk_device)
# 62|-> device2_(gs_jpeggray_device)
# 63| #endif
# 64| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def1959]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:65:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgr4_device’ does not match original declaration
# 65 | device_(gs_mgr4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:123:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 123 | gx_device_mgr far_data gs_mgr4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:123:24: note: ‘gs_mgr4_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:123:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1960]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:66:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgr8_device’ does not match original declaration
# 66 | device_(gs_mgr8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:125:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 125 | gx_device_mgr far_data gs_mgr8_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:125:24: note: ‘gs_mgr8_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:125:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1961]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:67:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray2_device’ does not match original declaration
# 67 | device_(gs_mgrgray2_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:117:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 117 | gx_device_mgr far_data gs_mgrgray2_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:117:24: note: ‘gs_mgrgray2_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:117:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1962]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:68:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray4_device’ does not match original declaration
# 68 | device_(gs_mgrgray4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:119:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 119 | gx_device_mgr far_data gs_mgrgray4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:119:24: note: ‘gs_mgrgray4_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:119:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1963]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:69:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrgray8_device’ does not match original declaration
# 69 | device_(gs_mgrgray8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:121:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 121 | gx_device_mgr far_data gs_mgrgray8_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:121:24: note: ‘gs_mgrgray8_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:121:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1964]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:70:1: warning[-Wlto-type-mismatch]: type of ‘gs_mgrmono_device’ does not match original declaration
# 70 | device_(gs_mgrmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:115:24: note: type ‘struct gx_device_mgr’ should match type ‘struct gx_device’
# 115 | gx_device_mgr far_data gs_mgrmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:115:24: note: ‘gs_mgrmono_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmgr.c:115:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 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): [#def1965]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:71:1: warning[-Wlto-type-mismatch]: type of ‘gs_miff24_device’ does not match original declaration
# 71 | device_(gs_miff24_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmiff.c:36:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 36 | const gx_device_printer gs_miff24_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevmiff.c:36:25: note: ‘gs_miff24_device’ was previously declared here
# 69| device_(gs_mgrgray8_device)
# 70| device_(gs_mgrmono_device)
# 71|-> device_(gs_miff24_device)
# 72| #endif
# 73| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def1966]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:74:1: warning[-Wlto-type-mismatch]: type of ‘gs_pam_device’ does not match original declaration
# 74 | device2_(gs_pam_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:283:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 283 | const gx_device_pbm gs_pam_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:283:21: note: ‘gs_pam_device’ was previously declared here
# 72| #endif
# 73| #ifdef device2_
# 74|-> device2_(gs_pam_device)
# 75| device2_(gs_pamcmyk32_device)
# 76| device2_(gs_pamcmyk4_device)
Error: COMPILER_WARNING (CWE-704): [#def1967]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:75:1: warning[-Wlto-type-mismatch]: type of ‘gs_pamcmyk32_device’ does not match original declaration
# 75 | device2_(gs_pamcmyk32_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:273:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 273 | const gx_device_pbm gs_pamcmyk32_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:273:21: note: ‘gs_pamcmyk32_device’ was previously declared here
# 73| #ifdef device2_
# 74| device2_(gs_pam_device)
# 75|-> device2_(gs_pamcmyk32_device)
# 76| device2_(gs_pamcmyk4_device)
# 77| device2_(gs_pbm_device)
Error: COMPILER_WARNING (CWE-704): [#def1968]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:76:1: warning[-Wlto-type-mismatch]: type of ‘gs_pamcmyk4_device’ does not match original declaration
# 76 | device2_(gs_pamcmyk4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:279:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 279 | const gx_device_pbm gs_pamcmyk4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:279:21: note: ‘gs_pamcmyk4_device’ was previously declared here
# 74| device2_(gs_pam_device)
# 75| device2_(gs_pamcmyk32_device)
# 76|-> device2_(gs_pamcmyk4_device)
# 77| device2_(gs_pbm_device)
# 78| device2_(gs_pbmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def1969]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:77:1: warning[-Wlto-type-mismatch]: type of ‘gs_pbm_device’ does not match original declaration
# 77 | device2_(gs_pbm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:231:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 231 | const gx_device_pbm gs_pbm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:231:21: note: ‘gs_pbm_device’ was previously declared here
# 75| device2_(gs_pamcmyk32_device)
# 76| device2_(gs_pamcmyk4_device)
# 77|-> device2_(gs_pbm_device)
# 78| device2_(gs_pbmraw_device)
# 79| device2_(gs_pcx16_device)
Error: COMPILER_WARNING (CWE-704): [#def1970]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:78:1: warning[-Wlto-type-mismatch]: type of ‘gs_pbmraw_device’ does not match original declaration
# 78 | device2_(gs_pbmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:234:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 234 | const gx_device_pbm gs_pbmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:234:21: note: ‘gs_pbmraw_device’ was previously declared here
# 76| device2_(gs_pamcmyk4_device)
# 77| device2_(gs_pbm_device)
# 78|-> device2_(gs_pbmraw_device)
# 79| device2_(gs_pcx16_device)
# 80| device2_(gs_pcx24b_device)
Error: COMPILER_WARNING (CWE-704): [#def1971]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:79:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx16_device’ does not match original declaration
# 79 | device2_(gs_pcx16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:95:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 95 | const gx_device_printer gs_pcx16_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:95:25: note: ‘gs_pcx16_device’ was previously declared here
# 77| device2_(gs_pbm_device)
# 78| device2_(gs_pbmraw_device)
# 79|-> device2_(gs_pcx16_device)
# 80| device2_(gs_pcx24b_device)
# 81| device2_(gs_pcx256_device)
Error: COMPILER_WARNING (CWE-704): [#def1972]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:80:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx24b_device’ does not match original declaration
# 80 | device2_(gs_pcx24b_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:137:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 137 | const gx_device_printer gs_pcx24b_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:137:25: note: ‘gs_pcx24b_device’ was previously declared here
# 78| device2_(gs_pbmraw_device)
# 79| device2_(gs_pcx16_device)
# 80|-> device2_(gs_pcx24b_device)
# 81| device2_(gs_pcx256_device)
# 82| device2_(gs_pcxcmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def1973]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:81:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcx256_device’ does not match original declaration
# 81 | device2_(gs_pcx256_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:118:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 118 | const gx_device_printer gs_pcx256_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:118:25: note: ‘gs_pcx256_device’ was previously declared here
# 79| device2_(gs_pcx16_device)
# 80| device2_(gs_pcx24b_device)
# 81|-> device2_(gs_pcx256_device)
# 82| device2_(gs_pcxcmyk_device)
# 83| device2_(gs_pcxgray_device)
Error: COMPILER_WARNING (CWE-704): [#def1974]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:82:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxcmyk_device’ does not match original declaration
# 82 | device2_(gs_pcxcmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:154:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 154 | const gx_device_printer gs_pcxcmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:154:25: note: ‘gs_pcxcmyk_device’ was previously declared here
# 80| device2_(gs_pcx24b_device)
# 81| device2_(gs_pcx256_device)
# 82|-> device2_(gs_pcxcmyk_device)
# 83| device2_(gs_pcxgray_device)
# 84| device2_(gs_pcxmono_device)
Error: COMPILER_WARNING (CWE-704): [#def1975]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:83:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxgray_device’ does not match original declaration
# 83 | device2_(gs_pcxgray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:71:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 71 | const gx_device_printer gs_pcxgray_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:71:25: note: ‘gs_pcxgray_device’ was previously declared here
# 81| device2_(gs_pcx256_device)
# 82| device2_(gs_pcxcmyk_device)
# 83|-> device2_(gs_pcxgray_device)
# 84| device2_(gs_pcxmono_device)
# 85| device2_(gs_pdfimage24_device)
Error: COMPILER_WARNING (CWE-704): [#def1976]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:84:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcxmono_device’ does not match original declaration
# 84 | device2_(gs_pcxmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:51:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 51 | const gx_device_printer gs_pcxmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpcx.c:51:25: note: ‘gs_pcxmono_device’ was previously declared here
# 82| device2_(gs_pcxcmyk_device)
# 83| device2_(gs_pcxgray_device)
# 84|-> device2_(gs_pcxmono_device)
# 85| device2_(gs_pdfimage24_device)
# 86| device2_(gs_pdfimage32_device)
Error: COMPILER_WARNING (CWE-704): [#def1977]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:85:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage24_device’ does not match original declaration
# 85 | device2_(gs_pdfimage24_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:105:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 105 | const gx_device_pdf_image gs_pdfimage24_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:105:27: note: ‘gs_pdfimage24_device’ was previously declared here
# 83| device2_(gs_pcxgray_device)
# 84| device2_(gs_pcxmono_device)
# 85|-> device2_(gs_pdfimage24_device)
# 86| device2_(gs_pdfimage32_device)
# 87| device2_(gs_pdfimage8_device)
Error: COMPILER_WARNING (CWE-704): [#def1978]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:86:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage32_device’ does not match original declaration
# 86 | device2_(gs_pdfimage32_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:136:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 136 | const gx_device_pdf_image gs_pdfimage32_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:136:27: note: ‘gs_pdfimage32_device’ was previously declared here
# 84| device2_(gs_pcxmono_device)
# 85| device2_(gs_pdfimage24_device)
# 86|-> device2_(gs_pdfimage32_device)
# 87| device2_(gs_pdfimage8_device)
# 88| device2_(gs_pdfwrite_device)
Error: COMPILER_WARNING (CWE-704): [#def1979]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:87:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfimage8_device’ does not match original declaration
# 87 | device2_(gs_pdfimage8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:74:27: note: type ‘const struct gx_device_pdf_image’ should match type ‘const struct gx_device’
# 74 | const gx_device_pdf_image gs_pdfimage8_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpdfimg.c:74:27: note: ‘gs_pdfimage8_device’ was previously declared here
# 85| device2_(gs_pdfimage24_device)
# 86| device2_(gs_pdfimage32_device)
# 87|-> device2_(gs_pdfimage8_device)
# 88| device2_(gs_pdfwrite_device)
# 89| device2_(gs_pgm_device)
Error: COMPILER_WARNING (CWE-704): [#def1980]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:89:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgm_device’ does not match original declaration
# 89 | device2_(gs_pgm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:237:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 237 | const gx_device_pbm gs_pgm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:237:21: note: ‘gs_pgm_device’ was previously declared here
# 87| device2_(gs_pdfimage8_device)
# 88| device2_(gs_pdfwrite_device)
# 89|-> device2_(gs_pgm_device)
# 90| device2_(gs_pgmraw_device)
# 91| device2_(gs_pgnm_device)
Error: COMPILER_WARNING (CWE-704): [#def1981]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:90:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgmraw_device’ does not match original declaration
# 90 | device2_(gs_pgmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:240:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 240 | const gx_device_pbm gs_pgmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:240:21: note: ‘gs_pgmraw_device’ was previously declared here
# 88| device2_(gs_pdfwrite_device)
# 89| device2_(gs_pgm_device)
# 90|-> device2_(gs_pgmraw_device)
# 91| device2_(gs_pgnm_device)
# 92| device2_(gs_pgnmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def1982]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:91:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgnm_device’ does not match original declaration
# 91 | device2_(gs_pgnm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:243:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 243 | const gx_device_pbm gs_pgnm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:243:21: note: ‘gs_pgnm_device’ was previously declared here
# 89| device2_(gs_pgm_device)
# 90| device2_(gs_pgmraw_device)
# 91|-> device2_(gs_pgnm_device)
# 92| device2_(gs_pgnmraw_device)
# 93| device2_(gs_pkm_device)
Error: COMPILER_WARNING (CWE-704): [#def1983]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:92:1: warning[-Wlto-type-mismatch]: type of ‘gs_pgnmraw_device’ does not match original declaration
# 92 | device2_(gs_pgnmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:246:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 246 | const gx_device_pbm gs_pgnmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:246:21: note: ‘gs_pgnmraw_device’ was previously declared here
# 90| device2_(gs_pgmraw_device)
# 91| device2_(gs_pgnm_device)
# 92|-> device2_(gs_pgnmraw_device)
# 93| device2_(gs_pkm_device)
# 94| device2_(gs_pkmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def1984]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:93:1: warning[-Wlto-type-mismatch]: type of ‘gs_pkm_device’ does not match original declaration
# 93 | device2_(gs_pkm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:261:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 261 | const gx_device_pbm gs_pkm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:261:21: note: ‘gs_pkm_device’ was previously declared here
# 91| device2_(gs_pgnm_device)
# 92| device2_(gs_pgnmraw_device)
# 93|-> device2_(gs_pkm_device)
# 94| device2_(gs_pkmraw_device)
# 95| device2_(gs_pksm_device)
Error: COMPILER_WARNING (CWE-704): [#def1985]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:94:1: warning[-Wlto-type-mismatch]: type of ‘gs_pkmraw_device’ does not match original declaration
# 94 | device2_(gs_pkmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:264:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 264 | const gx_device_pbm gs_pkmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:264:21: note: ‘gs_pkmraw_device’ was previously declared here
# 92| device2_(gs_pgnmraw_device)
# 93| device2_(gs_pkm_device)
# 94|-> device2_(gs_pkmraw_device)
# 95| device2_(gs_pksm_device)
# 96| device2_(gs_pksmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def1986]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:95:1: warning[-Wlto-type-mismatch]: type of ‘gs_pksm_device’ does not match original declaration
# 95 | device2_(gs_pksm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:267:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 267 | const gx_device_pbm gs_pksm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:267:21: note: ‘gs_pksm_device’ was previously declared here
# 93| device2_(gs_pkm_device)
# 94| device2_(gs_pkmraw_device)
# 95|-> device2_(gs_pksm_device)
# 96| device2_(gs_pksmraw_device)
# 97| device2_(gs_plan_device)
Error: COMPILER_WARNING (CWE-704): [#def1987]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:96:1: warning[-Wlto-type-mismatch]: type of ‘gs_pksmraw_device’ does not match original declaration
# 96 | device2_(gs_pksmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:270:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 270 | const gx_device_pbm gs_pksmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:270:21: note: ‘gs_pksmraw_device’ was previously declared here
# 94| device2_(gs_pkmraw_device)
# 95| device2_(gs_pksm_device)
# 96|-> device2_(gs_pksmraw_device)
# 97| device2_(gs_plan_device)
# 98| device2_(gs_plan9bm_device)
Error: COMPILER_WARNING (CWE-704): [#def1988]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:97:1: warning[-Wlto-type-mismatch]: type of ‘gs_plan_device’ does not match original declaration
# 97 | device2_(gs_plan_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:202:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
# 202 | const gx_device_plan gs_plan_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:202:22: note: ‘gs_plan_device’ was previously declared here
# 95| device2_(gs_pksm_device)
# 96| device2_(gs_pksmraw_device)
# 97|-> device2_(gs_plan_device)
# 98| device2_(gs_plan9bm_device)
# 99| device2_(gs_planc_device)
Error: COMPILER_WARNING (CWE-704): [#def1989]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:98:1: warning[-Wlto-type-mismatch]: type of ‘gs_plan9bm_device’ does not match original declaration
# 98 | device2_(gs_plan9bm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:288:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 288 | const gx_device_pbm gs_plan9bm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:288:21: note: ‘gs_plan9bm_device’ was previously declared here
# 96| device2_(gs_pksmraw_device)
# 97| device2_(gs_plan_device)
# 98|-> device2_(gs_plan9bm_device)
# 99| device2_(gs_planc_device)
# 100| device2_(gs_plang_device)
Error: COMPILER_WARNING (CWE-704): [#def1990]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:99:1: warning[-Wlto-type-mismatch]: type of ‘gs_planc_device’ does not match original declaration
# 99 | device2_(gs_planc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:214:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
# 214 | const gx_device_plan gs_planc_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:214:22: note: ‘gs_planc_device’ was previously declared here
# 97| device2_(gs_plan_device)
# 98| device2_(gs_plan9bm_device)
# 99|-> device2_(gs_planc_device)
# 100| device2_(gs_plang_device)
# 101| device2_(gs_plank_device)
Error: COMPILER_WARNING (CWE-704): [#def1991]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:100:1: warning[-Wlto-type-mismatch]: type of ‘gs_plang_device’ does not match original declaration
# 100 | device2_(gs_plang_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:205:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
# 205 | const gx_device_plan gs_plang_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:205:22: note: ‘gs_plang_device’ was previously declared here
# 98| device2_(gs_plan9bm_device)
# 99| device2_(gs_planc_device)
# 100|-> device2_(gs_plang_device)
# 101| device2_(gs_plank_device)
# 102| device2_(gs_planm_device)
Error: COMPILER_WARNING (CWE-704): [#def1992]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:101:1: warning[-Wlto-type-mismatch]: type of ‘gs_plank_device’ does not match original declaration
# 101 | device2_(gs_plank_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:211:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
# 211 | const gx_device_plan gs_plank_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:211:22: note: ‘gs_plank_device’ was previously declared here
# 99| device2_(gs_planc_device)
# 100| device2_(gs_plang_device)
# 101|-> device2_(gs_plank_device)
# 102| device2_(gs_planm_device)
# 103| device2_(gs_plib_device)
Error: COMPILER_WARNING (CWE-704): [#def1993]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:102:1: warning[-Wlto-type-mismatch]: type of ‘gs_planm_device’ does not match original declaration
# 102 | device2_(gs_planm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:208:22: note: type ‘const struct gx_device_plan’ should match type ‘const struct gx_device’
# 208 | const gx_device_plan gs_planm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplan.c:208:22: note: ‘gs_planm_device’ was previously declared here
# 100| device2_(gs_plang_device)
# 101| device2_(gs_plank_device)
# 102|-> device2_(gs_planm_device)
# 103| device2_(gs_plib_device)
# 104| device2_(gs_plibc_device)
Error: COMPILER_WARNING (CWE-704): [#def1994]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:103:1: warning[-Wlto-type-mismatch]: type of ‘gs_plib_device’ does not match original declaration
# 103 | device2_(gs_plib_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:352:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
# 352 | const gx_device_plib gs_plib_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:352:22: note: ‘gs_plib_device’ was previously declared here
# 101| device2_(gs_plank_device)
# 102| device2_(gs_planm_device)
# 103|-> device2_(gs_plib_device)
# 104| device2_(gs_plibc_device)
# 105| device2_(gs_plibg_device)
Error: COMPILER_WARNING (CWE-704): [#def1995]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:104:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibc_device’ does not match original declaration
# 104 | device2_(gs_plibc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:364:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
# 364 | const gx_device_plib gs_plibc_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:364:22: note: ‘gs_plibc_device’ was previously declared here
# 102| device2_(gs_planm_device)
# 103| device2_(gs_plib_device)
# 104|-> device2_(gs_plibc_device)
# 105| device2_(gs_plibg_device)
# 106| device2_(gs_plibk_device)
Error: COMPILER_WARNING (CWE-704): [#def1996]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:105:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibg_device’ does not match original declaration
# 105 | device2_(gs_plibg_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:355:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
# 355 | const gx_device_plib gs_plibg_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:355:22: note: ‘gs_plibg_device’ was previously declared here
# 103| device2_(gs_plib_device)
# 104| device2_(gs_plibc_device)
# 105|-> device2_(gs_plibg_device)
# 106| device2_(gs_plibk_device)
# 107| device2_(gs_plibm_device)
Error: COMPILER_WARNING (CWE-704): [#def1997]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:106:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibk_device’ does not match original declaration
# 106 | device2_(gs_plibk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:361:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
# 361 | const gx_device_plib gs_plibk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:361:22: note: ‘gs_plibk_device’ was previously declared here
# 104| device2_(gs_plibc_device)
# 105| device2_(gs_plibg_device)
# 106|-> device2_(gs_plibk_device)
# 107| device2_(gs_plibm_device)
# 108| device2_(gs_pnm_device)
Error: COMPILER_WARNING (CWE-704): [#def1998]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:107:1: warning[-Wlto-type-mismatch]: type of ‘gs_plibm_device’ does not match original declaration
# 107 | device2_(gs_plibm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:358:22: note: type ‘const struct gx_device_plib’ should match type ‘const struct gx_device’
# 358 | const gx_device_plib gs_plibm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevplib.c:358:22: note: ‘gs_plibm_device’ was previously declared here
# 105| device2_(gs_plibg_device)
# 106| device2_(gs_plibk_device)
# 107|-> device2_(gs_plibm_device)
# 108| device2_(gs_pnm_device)
# 109| device2_(gs_pnmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def1999]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:108:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnm_device’ does not match original declaration
# 108 | device2_(gs_pnm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:255:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 255 | const gx_device_pbm gs_pnm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:255:21: note: ‘gs_pnm_device’ was previously declared here
# 106| device2_(gs_plibk_device)
# 107| device2_(gs_plibm_device)
# 108|-> device2_(gs_pnm_device)
# 109| device2_(gs_pnmraw_device)
# 110| device2_(gs_ppm_device)
Error: COMPILER_WARNING (CWE-704): [#def2000]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:109:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnmraw_device’ does not match original declaration
# 109 | device2_(gs_pnmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:258:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 258 | const gx_device_pbm gs_pnmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:258:21: note: ‘gs_pnmraw_device’ was previously declared here
# 107| device2_(gs_plibm_device)
# 108| device2_(gs_pnm_device)
# 109|-> device2_(gs_pnmraw_device)
# 110| device2_(gs_ppm_device)
# 111| device2_(gs_ppmraw_device)
Error: COMPILER_WARNING (CWE-704): [#def2001]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:110:1: warning[-Wlto-type-mismatch]: type of ‘gs_ppm_device’ does not match original declaration
# 110 | device2_(gs_ppm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:249:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 249 | const gx_device_pbm gs_ppm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:249:21: note: ‘gs_ppm_device’ was previously declared here
# 108| device2_(gs_pnm_device)
# 109| device2_(gs_pnmraw_device)
# 110|-> device2_(gs_ppm_device)
# 111| device2_(gs_ppmraw_device)
# 112| device2_(gs_ps2write_device)
Error: COMPILER_WARNING (CWE-704): [#def2002]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:111:1: warning[-Wlto-type-mismatch]: type of ‘gs_ppmraw_device’ does not match original declaration
# 111 | device2_(gs_ppmraw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:252:21: note: type ‘const struct gx_device_pbm’ should match type ‘const struct gx_device’
# 252 | const gx_device_pbm gs_ppmraw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpbm.c:252:21: note: ‘gs_ppmraw_device’ was previously declared here
# 109| device2_(gs_pnmraw_device)
# 110| device2_(gs_ppm_device)
# 111|-> device2_(gs_ppmraw_device)
# 112| device2_(gs_ps2write_device)
# 113| device2_(gs_pdfwrite_device)
Error: COMPILER_WARNING (CWE-704): [#def2003]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:112:1: warning[-Wlto-type-mismatch]: type of ‘gs_ps2write_device’ does not match original declaration
# 112 | device2_(gs_ps2write_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
# 29 | const gx_device_pdf PDF_DEVICE_IDENT =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_ps2write_device’ was previously declared here
# 110| device2_(gs_ppm_device)
# 111| device2_(gs_ppmraw_device)
# 112|-> device2_(gs_ps2write_device)
# 113| device2_(gs_pdfwrite_device)
# 114| #endif
Error: COMPILER_WARNING (CWE-704): [#def2004]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:113:1: warning[-Wlto-type-mismatch]: type of ‘gs_pdfwrite_device’ does not match original declaration
# 113 | device2_(gs_pdfwrite_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: type ‘const struct gx_device_pdf’ should match type ‘const struct gx_device’
# 29 | const gx_device_pdf PDF_DEVICE_IDENT =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpdfb.h:29:21: note: ‘gs_pdfwrite_device’ was previously declared here
# 111| device2_(gs_ppmraw_device)
# 112| device2_(gs_ps2write_device)
# 113|-> device2_(gs_pdfwrite_device)
# 114| #endif
# 115| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2005]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:116:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyk_device’ does not match original declaration
# 116 | device_(gs_psdcmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:538:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 538 | const psd_device gs_psdcmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:538:18: note: ‘gs_psdcmyk_device’ was previously declared here
# 114| #endif
# 115| #ifdef device_
# 116|-> device_(gs_psdcmyk_device)
# 117| device_(gs_psdcmyk16_device)
# 118| device_(gs_psdcmykog_device)
Error: COMPILER_WARNING (CWE-704): [#def2006]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:117:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyk16_device’ does not match original declaration
# 117 | device_(gs_psdcmyk16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:589:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 589 | const psd_device gs_psdcmyk16_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:589:18: note: ‘gs_psdcmyk16_device’ was previously declared here
# 115| #ifdef device_
# 116| device_(gs_psdcmyk_device)
# 117|-> device_(gs_psdcmyk16_device)
# 118| device_(gs_psdcmykog_device)
# 119| device_(gs_psdcmyktags_device)
Error: COMPILER_WARNING (CWE-704): [#def2007]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:118:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmykog_device’ does not match original declaration
# 118 | device_(gs_psdcmykog_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcmykog.c:772:24: note: type ‘const struct gx_device_cmykog’ should match type ‘struct gx_device’
# 772 | const gx_device_cmykog gs_psdcmykog_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcmykog.c:772:24: note: ‘gs_psdcmykog_device’ was previously declared here
# 116| device_(gs_psdcmyk_device)
# 117| device_(gs_psdcmyk16_device)
# 118|-> device_(gs_psdcmykog_device)
# 119| device_(gs_psdcmyktags_device)
# 120| device_(gs_psdcmyktags16_device)
Error: COMPILER_WARNING (CWE-704): [#def2008]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:119:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyktags_device’ does not match original declaration
# 119 | device_(gs_psdcmyktags_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:563:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 563 | const psd_device gs_psdcmyktags_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:563:18: note: ‘gs_psdcmyktags_device’ was previously declared here
# 117| device_(gs_psdcmyk16_device)
# 118| device_(gs_psdcmykog_device)
# 119|-> device_(gs_psdcmyktags_device)
# 120| device_(gs_psdcmyktags16_device)
# 121| device_(gs_psdrgb_device)
Error: COMPILER_WARNING (CWE-704): [#def2009]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:120:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdcmyktags16_device’ does not match original declaration
# 120 | device_(gs_psdcmyktags16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:614:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 614 | const psd_device gs_psdcmyktags16_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:614:18: note: ‘gs_psdcmyktags16_device’ was previously declared here
# 118| device_(gs_psdcmykog_device)
# 119| device_(gs_psdcmyktags_device)
# 120|-> device_(gs_psdcmyktags16_device)
# 121| device_(gs_psdrgb_device)
# 122| device_(gs_psdrgb16_device)
Error: COMPILER_WARNING (CWE-704): [#def2010]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:121:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgb_device’ does not match original declaration
# 121 | device_(gs_psdrgb_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:445:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 445 | const psd_device gs_psdrgb_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:445:18: note: ‘gs_psdrgb_device’ was previously declared here
# 119| device_(gs_psdcmyktags_device)
# 120| device_(gs_psdcmyktags16_device)
# 121|-> device_(gs_psdrgb_device)
# 122| device_(gs_psdrgb16_device)
# 123| device_(gs_psdrgbtags_device)
Error: COMPILER_WARNING (CWE-704): [#def2011]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:122:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgb16_device’ does not match original declaration
# 122 | device_(gs_psdrgb16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:466:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 466 | const psd_device gs_psdrgb16_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:466:18: note: ‘gs_psdrgb16_device’ was previously declared here
# 120| device_(gs_psdcmyktags16_device)
# 121| device_(gs_psdrgb_device)
# 122|-> device_(gs_psdrgb16_device)
# 123| device_(gs_psdrgbtags_device)
# 124| device_(gs_spotcmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def2012]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:123:1: warning[-Wlto-type-mismatch]: type of ‘gs_psdrgbtags_device’ does not match original declaration
# 123 | device_(gs_psdrgbtags_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:490:18: note: type ‘const struct psd_device’ should match type ‘struct gx_device’
# 490 | const psd_device gs_psdrgbtags_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpsd.c:490:18: note: ‘gs_psdrgbtags_device’ was previously declared here
# 121| device_(gs_psdrgb_device)
# 122| device_(gs_psdrgb16_device)
# 123|-> device_(gs_psdrgbtags_device)
# 124| device_(gs_spotcmyk_device)
# 125| #endif
Error: COMPILER_WARNING (CWE-704): [#def2013]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:124:1: warning[-Wlto-type-mismatch]: type of ‘gs_spotcmyk_device’ does not match original declaration
# 124 | device_(gs_spotcmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:1081:26: note: type ‘const struct gx_devn_prn_device’ should match type ‘struct gx_device’
# 1081 | const gx_devn_prn_device gs_spotcmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevdevn.c:1081:26: note: ‘gs_spotcmyk_device’ was previously declared here
# 122| device_(gs_psdrgb16_device)
# 123| device_(gs_psdrgbtags_device)
# 124|-> device_(gs_spotcmyk_device)
# 125| #endif
# 126| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2014]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:127:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff12nc_device’ does not match original declaration
# 127 | device2_(gs_tiff12nc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:66:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 66 | const gx_device_tiff gs_tiff12nc_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:66:22: note: ‘gs_tiff12nc_device’ was previously declared here
# 125| #endif
# 126| #ifdef device2_
# 127|-> device2_(gs_tiff12nc_device)
# 128| device2_(gs_tiff24nc_device)
# 129| device2_(gs_tiff32nc_device)
Error: COMPILER_WARNING (CWE-704): [#def2015]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:128:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff24nc_device’ does not match original declaration
# 128 | device2_(gs_tiff24nc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:82:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 82 | const gx_device_tiff gs_tiff24nc_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:82:22: note: ‘gs_tiff24nc_device’ was previously declared here
# 126| #ifdef device2_
# 127| device2_(gs_tiff12nc_device)
# 128|-> device2_(gs_tiff24nc_device)
# 129| device2_(gs_tiff32nc_device)
# 130| device2_(gs_tiff48nc_device)
Error: COMPILER_WARNING (CWE-704): [#def2016]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:129:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff32nc_device’ does not match original declaration
# 129 | device2_(gs_tiff32nc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:563:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 563 | const gx_device_tiff gs_tiff32nc_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:563:22: note: ‘gs_tiff32nc_device’ was previously declared here
# 127| device2_(gs_tiff12nc_device)
# 128| device2_(gs_tiff24nc_device)
# 129|-> device2_(gs_tiff32nc_device)
# 130| device2_(gs_tiff48nc_device)
# 131| device2_(gs_tiff64nc_device)
Error: COMPILER_WARNING (CWE-704): [#def2017]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:130:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff48nc_device’ does not match original declaration
# 130 | device2_(gs_tiff48nc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:98:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 98 | const gx_device_tiff gs_tiff48nc_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfnx.c:98:22: note: ‘gs_tiff48nc_device’ was previously declared here
# 128| device2_(gs_tiff24nc_device)
# 129| device2_(gs_tiff32nc_device)
# 130|-> device2_(gs_tiff48nc_device)
# 131| device2_(gs_tiff64nc_device)
# 132| device2_(gs_tiffcrle_device)
Error: COMPILER_WARNING (CWE-704): [#def2018]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:131:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiff64nc_device’ does not match original declaration
# 131 | device2_(gs_tiff64nc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:593:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 593 | const gx_device_tiff gs_tiff64nc_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:593:22: note: ‘gs_tiff64nc_device’ was previously declared here
# 129| device2_(gs_tiff32nc_device)
# 130| device2_(gs_tiff48nc_device)
# 131|-> device2_(gs_tiff64nc_device)
# 132| device2_(gs_tiffcrle_device)
# 133| device2_(gs_tiffg3_device)
Error: COMPILER_WARNING (CWE-704): [#def2019]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:132:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffcrle_device’ does not match original declaration
# 132 | device2_(gs_tiffcrle_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:85:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 85 | const gx_device_tfax gs_tiffcrle_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:85:22: note: ‘gs_tiffcrle_device’ was previously declared here
# 130| device2_(gs_tiff48nc_device)
# 131| device2_(gs_tiff64nc_device)
# 132|-> device2_(gs_tiffcrle_device)
# 133| device2_(gs_tiffg3_device)
# 134| device2_(gs_tiffg32d_device)
Error: COMPILER_WARNING (CWE-704): [#def2020]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:133:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg3_device’ does not match original declaration
# 133 | device2_(gs_tiffg3_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:88:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 88 | const gx_device_tfax gs_tiffg3_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:88:22: note: ‘gs_tiffg3_device’ was previously declared here
# 131| device2_(gs_tiff64nc_device)
# 132| device2_(gs_tiffcrle_device)
# 133|-> device2_(gs_tiffg3_device)
# 134| device2_(gs_tiffg32d_device)
# 135| device2_(gs_tiffg4_device)
Error: COMPILER_WARNING (CWE-704): [#def2021]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:134:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg32d_device’ does not match original declaration
# 134 | device2_(gs_tiffg32d_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:91:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 91 | const gx_device_tfax gs_tiffg32d_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:91:22: note: ‘gs_tiffg32d_device’ was previously declared here
# 132| device2_(gs_tiffcrle_device)
# 133| device2_(gs_tiffg3_device)
# 134|-> device2_(gs_tiffg32d_device)
# 135| device2_(gs_tiffg4_device)
# 136| device2_(gs_tiffgray_device)
Error: COMPILER_WARNING (CWE-704): [#def2022]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:135:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffg4_device’ does not match original declaration
# 135 | device2_(gs_tiffg4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:94:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 94 | const gx_device_tfax gs_tiffg4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:94:22: note: ‘gs_tiffg4_device’ was previously declared here
# 133| device2_(gs_tiffg3_device)
# 134| device2_(gs_tiffg32d_device)
# 135|-> device2_(gs_tiffg4_device)
# 136| device2_(gs_tiffgray_device)
# 137| device2_(gs_tifflzw_device)
Error: COMPILER_WARNING (CWE-704): [#def2023]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:136:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffgray_device’ does not match original declaration
# 136 | device2_(gs_tiffgray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:88:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 88 | const gx_device_tiff gs_tiffgray_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:88:22: note: ‘gs_tiffgray_device’ was previously declared here
# 134| device2_(gs_tiffg32d_device)
# 135| device2_(gs_tiffg4_device)
# 136|-> device2_(gs_tiffgray_device)
# 137| device2_(gs_tifflzw_device)
# 138| device2_(gs_tiffpack_device)
Error: COMPILER_WARNING (CWE-704): [#def2024]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:137:1: warning[-Wlto-type-mismatch]: type of ‘gs_tifflzw_device’ does not match original declaration
# 137 | device2_(gs_tifflzw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:272:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 272 | const gx_device_tfax gs_tifflzw_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:272:22: note: ‘gs_tifflzw_device’ was previously declared here
# 135| device2_(gs_tiffg4_device)
# 136| device2_(gs_tiffgray_device)
# 137|-> device2_(gs_tifflzw_device)
# 138| device2_(gs_tiffpack_device)
# 139| device2_(gs_tiffscaled_device)
Error: COMPILER_WARNING (CWE-704): [#def2025]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:138:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffpack_device’ does not match original declaration
# 138 | device2_(gs_tiffpack_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:288:22: note: type ‘const struct gx_device_tfax’ should match type ‘const struct gx_device’
# 288 | const gx_device_tfax gs_tiffpack_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtfax.c:288:22: note: ‘gs_tiffpack_device’ was previously declared here
# 136| device2_(gs_tiffgray_device)
# 137| device2_(gs_tifflzw_device)
# 138|-> device2_(gs_tiffpack_device)
# 139| device2_(gs_tiffscaled_device)
# 140| device2_(gs_tiffscaled24_device)
Error: COMPILER_WARNING (CWE-704): [#def2026]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:139:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled_device’ does not match original declaration
# 139 | device2_(gs_tiffscaled_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:133:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 133 | const gx_device_tiff gs_tiffscaled_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:133:22: note: ‘gs_tiffscaled_device’ was previously declared here
# 137| device2_(gs_tifflzw_device)
# 138| device2_(gs_tiffpack_device)
# 139|-> device2_(gs_tiffscaled_device)
# 140| device2_(gs_tiffscaled24_device)
# 141| device2_(gs_tiffscaled32_device)
Error: COMPILER_WARNING (CWE-704): [#def2027]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:140:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled24_device’ does not match original declaration
# 140 | device2_(gs_tiffscaled24_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:213:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 213 | const gx_device_tiff gs_tiffscaled24_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:213:22: note: ‘gs_tiffscaled24_device’ was previously declared here
# 138| device2_(gs_tiffpack_device)
# 139| device2_(gs_tiffscaled_device)
# 140|-> device2_(gs_tiffscaled24_device)
# 141| device2_(gs_tiffscaled32_device)
# 142| device2_(gs_tiffscaled4_device)
Error: COMPILER_WARNING (CWE-704): [#def2028]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:141:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled32_device’ does not match original declaration
# 141 | device2_(gs_tiffscaled32_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:253:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 253 | const gx_device_tiff gs_tiffscaled32_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:253:22: note: ‘gs_tiffscaled32_device’ was previously declared here
# 139| device2_(gs_tiffscaled_device)
# 140| device2_(gs_tiffscaled24_device)
# 141|-> device2_(gs_tiffscaled32_device)
# 142| device2_(gs_tiffscaled4_device)
# 143| device2_(gs_tiffscaled8_device)
Error: COMPILER_WARNING (CWE-704): [#def2029]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:142:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled4_device’ does not match original declaration
# 142 | device2_(gs_tiffscaled4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:290:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 290 | const gx_device_tiff gs_tiffscaled4_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:290:22: note: ‘gs_tiffscaled4_device’ was previously declared here
# 140| device2_(gs_tiffscaled24_device)
# 141| device2_(gs_tiffscaled32_device)
# 142|-> device2_(gs_tiffscaled4_device)
# 143| device2_(gs_tiffscaled8_device)
# 144| device2_(gs_tiffsep_device)
Error: COMPILER_WARNING (CWE-704): [#def2030]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:143:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffscaled8_device’ does not match original declaration
# 143 | device2_(gs_tiffscaled8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:173:22: note: type ‘const struct gx_device_tiff’ should match type ‘const struct gx_device’
# 173 | const gx_device_tiff gs_tiffscaled8_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:173:22: note: ‘gs_tiffscaled8_device’ was previously declared here
# 141| device2_(gs_tiffscaled32_device)
# 142| device2_(gs_tiffscaled4_device)
# 143|-> device2_(gs_tiffscaled8_device)
# 144| device2_(gs_tiffsep_device)
# 145| device2_(gs_tiffsep1_device)
Error: COMPILER_WARNING (CWE-704): [#def2031]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:144:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffsep_device’ does not match original declaration
# 144 | device2_(gs_tiffsep_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:803:22: note: type ‘const struct tiffsep_device’ should match type ‘const struct gx_device’
# 803 | const tiffsep_device gs_tiffsep_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:803:22: note: ‘gs_tiffsep_device’ was previously declared here
# 142| device2_(gs_tiffscaled4_device)
# 143| device2_(gs_tiffscaled8_device)
# 144|-> device2_(gs_tiffsep_device)
# 145| device2_(gs_tiffsep1_device)
# 146| device2_(gs_txtwrite_device)
Error: COMPILER_WARNING (CWE-704): [#def2032]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:145:1: warning[-Wlto-type-mismatch]: type of ‘gs_tiffsep1_device’ does not match original declaration
# 145 | device2_(gs_tiffsep1_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:820:23: note: type ‘const struct tiffsep1_device’ should match type ‘const struct gx_device’
# 820 | const tiffsep1_device gs_tiffsep1_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtsep.c:820:23: note: ‘gs_tiffsep1_device’ was previously declared here
# 143| device2_(gs_tiffscaled8_device)
# 144| device2_(gs_tiffsep_device)
# 145|-> device2_(gs_tiffsep1_device)
# 146| device2_(gs_txtwrite_device)
# 147| #endif
Error: COMPILER_WARNING (CWE-704): [#def2033]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:146:1: warning[-Wlto-type-mismatch]: type of ‘gs_txtwrite_device’ does not match original declaration
# 146 | device2_(gs_txtwrite_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevtxtw.c:166:28: note: type ‘const struct gx_device_txtwrite_t’ should match type ‘const struct gx_device’
# 166 | const gx_device_txtwrite_t gs_txtwrite_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevtxtw.c:166:28: note: ‘gs_txtwrite_device’ was previously declared here
# 144| device2_(gs_tiffsep_device)
# 145| device2_(gs_tiffsep1_device)
# 146|-> device2_(gs_txtwrite_device)
# 147| #endif
# 148| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2034]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:149:1: warning[-Wlto-type-mismatch]: type of ‘gs_xcf_device’ does not match original declaration
# 149 | device_(gs_xcf_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxcf.c:164:18: note: type ‘const struct xcf_device’ should match type ‘struct gx_device’
# 164 | const xcf_device gs_xcf_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevxcf.c:164:18: note: ‘gs_xcf_device’ was previously declared here
# 147| #endif
# 148| #ifdef device_
# 149|-> device_(gs_xcf_device)
# 150| #endif
# 151| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2035]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:152:1: warning[-Wlto-type-mismatch]: type of ‘gs_xpswrite_device’ does not match original declaration
# 152 | device2_(gs_xpswrite_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:224:21: note: type ‘const struct gx_device_xps’ should match type ‘const struct gx_device’
# 224 | const gx_device_xps gs_xpswrite_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevxps.c:224:21: note: ‘gs_xpswrite_device’ was previously declared here
# 150| #endif
# 151| #ifdef device2_
# 152|-> device2_(gs_xpswrite_device)
# 153| #endif
# 154| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2036]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:155:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc1900_device’ does not match original declaration
# 155 | device_(gs_alc1900_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:280:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 280 | gx_device_escv far_data gs_alc1900_device = escv_device_body("alc1900");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:280:25: note: ‘gs_alc1900_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:280:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 153| #endif
# 154| #ifdef device_
# 155|-> device_(gs_alc1900_device)
# 156| device_(gs_alc2000_device)
# 157| device_(gs_alc4000_device)
Error: COMPILER_WARNING (CWE-704): [#def2037]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:156:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc2000_device’ does not match original declaration
# 156 | device_(gs_alc2000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:281:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 281 | gx_device_escv far_data gs_alc2000_device = escv_device_body("alc2000");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:281:25: note: ‘gs_alc2000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:281:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 154| #ifdef device_
# 155| device_(gs_alc1900_device)
# 156|-> device_(gs_alc2000_device)
# 157| device_(gs_alc4000_device)
# 158| device_(gs_alc4100_device)
Error: COMPILER_WARNING (CWE-704): [#def2038]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:157:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc4000_device’ does not match original declaration
# 157 | device_(gs_alc4000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:282:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 282 | gx_device_escv far_data gs_alc4000_device = escv_device_body("alc4000");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:282:25: note: ‘gs_alc4000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:282:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 155| device_(gs_alc1900_device)
# 156| device_(gs_alc2000_device)
# 157|-> device_(gs_alc4000_device)
# 158| device_(gs_alc4100_device)
# 159| device_(gs_alc8500_device)
Error: COMPILER_WARNING (CWE-704): [#def2039]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:158:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc4100_device’ does not match original declaration
# 158 | device_(gs_alc4100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:283:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 283 | gx_device_escv far_data gs_alc4100_device = escv_device_body("alc4100");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:283:25: note: ‘gs_alc4100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:283:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 156| device_(gs_alc2000_device)
# 157| device_(gs_alc4000_device)
# 158|-> device_(gs_alc4100_device)
# 159| device_(gs_alc8500_device)
# 160| device_(gs_alc8600_device)
Error: COMPILER_WARNING (CWE-704): [#def2040]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:159:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc8500_device’ does not match original declaration
# 159 | device_(gs_alc8500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:284:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 284 | gx_device_escv far_data gs_alc8500_device = escv_device_body("alc8500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:284:25: note: ‘gs_alc8500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:284:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 157| device_(gs_alc4000_device)
# 158| device_(gs_alc4100_device)
# 159|-> device_(gs_alc8500_device)
# 160| device_(gs_alc8600_device)
# 161| device_(gs_alc9100_device)
Error: COMPILER_WARNING (CWE-704): [#def2041]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:160:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc8600_device’ does not match original declaration
# 160 | device_(gs_alc8600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:285:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 285 | gx_device_escv far_data gs_alc8600_device = escv_device_body("alc8600");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:285:25: note: ‘gs_alc8600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:285:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 158| device_(gs_alc4100_device)
# 159| device_(gs_alc8500_device)
# 160|-> device_(gs_alc8600_device)
# 161| device_(gs_alc9100_device)
# 162| device_(gs_ap3250_device)
Error: COMPILER_WARNING (CWE-704): [#def2042]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:161:1: warning[-Wlto-type-mismatch]: type of ‘gs_alc9100_device’ does not match original declaration
# 161 | device_(gs_alc9100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:286:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 286 | gx_device_escv far_data gs_alc9100_device = escv_device_body("alc9100");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:286:25: note: ‘gs_alc9100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:286:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 159| device_(gs_alc8500_device)
# 160| device_(gs_alc8600_device)
# 161|-> device_(gs_alc9100_device)
# 162| device_(gs_ap3250_device)
# 163| device_(gs_appledmp_device)
Error: COMPILER_WARNING (CWE-704): [#def2043]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:162:1: warning[-Wlto-type-mismatch]: type of ‘gs_ap3250_device’ does not match original declaration
# 162 | device_(gs_ap3250_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevescp.c:99:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 99 | const gx_device_printer far_data gs_ap3250_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevescp.c:99:34: note: ‘gs_ap3250_device’ was previously declared here
# 160| device_(gs_alc8600_device)
# 161| device_(gs_alc9100_device)
# 162|-> device_(gs_ap3250_device)
# 163| device_(gs_appledmp_device)
# 164| #endif
Error: COMPILER_WARNING (CWE-704): [#def2044]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:163:1: warning[-Wlto-type-mismatch]: type of ‘gs_appledmp_device’ does not match original declaration
# 163 | device_(gs_appledmp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:121:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 121 | const gx_device_printer far_data gs_appledmp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:121:34: note: ‘gs_appledmp_device’ was previously declared here
# 161| device_(gs_alc9100_device)
# 162| device_(gs_ap3250_device)
# 163|-> device_(gs_appledmp_device)
# 164| #endif
# 165| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2045]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:166:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx23_device’ does not match original declaration
# 166 | device2_(gs_atx23_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:50:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 50 | const gx_device_printer gs_atx23_device = /* real width = 576 pixels */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:50:25: note: ‘gs_atx23_device’ was previously declared here
# 164| #endif
# 165| #ifdef device2_
# 166|-> device2_(gs_atx23_device)
# 167| device2_(gs_atx24_device)
# 168| device2_(gs_atx38_device)
Error: COMPILER_WARNING (CWE-704): [#def2046]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:167:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx24_device’ does not match original declaration
# 167 | device2_(gs_atx24_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:54:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 54 | const gx_device_printer gs_atx24_device = /* real width = 832 pixels */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:54:25: note: ‘gs_atx24_device’ was previously declared here
# 165| #ifdef device2_
# 166| device2_(gs_atx23_device)
# 167|-> device2_(gs_atx24_device)
# 168| device2_(gs_atx38_device)
# 169| #endif
Error: COMPILER_WARNING (CWE-704): [#def2047]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:168:1: warning[-Wlto-type-mismatch]: type of ‘gs_atx38_device’ does not match original declaration
# 168 | device2_(gs_atx38_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:58:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 58 | const gx_device_printer gs_atx38_device = /* real width = 2400 pixels */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:58:25: note: ‘gs_atx38_device’ was previously declared here
# 166| device2_(gs_atx23_device)
# 167| device2_(gs_atx24_device)
# 168|-> device2_(gs_atx38_device)
# 169| #endif
# 170| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2048]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:171:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10e_device’ does not match original declaration
# 171 | device_(gs_bj10e_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbj10.c:158:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 158 | const gx_device_printer far_data gs_bj10e_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbj10.c:158:34: note: ‘gs_bj10e_device’ was previously declared here
# 169| #endif
# 170| #ifdef device_
# 171|-> device_(gs_bj10e_device)
# 172| device_(gs_bj10v_device)
# 173| device_(gs_bj10vh_device)
Error: COMPILER_WARNING (CWE-704): [#def2049]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:172:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10v_device’ does not match original declaration
# 172 | device_(gs_bj10v_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:86:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 86 | gx_device_printer gs_bj10v_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:86:19: note: ‘gs_bj10v_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:86:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 170| #ifdef device_
# 171| device_(gs_bj10e_device)
# 172|-> device_(gs_bj10v_device)
# 173| device_(gs_bj10vh_device)
# 174| device_(gs_bj200_device)
Error: COMPILER_WARNING (CWE-704): [#def2050]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:173:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj10vh_device’ does not match original declaration
# 173 | device_(gs_bj10vh_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:95:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 95 | gx_device_printer gs_bj10vh_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:95:19: note: ‘gs_bj10vh_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdev10v.c:95:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 171| device_(gs_bj10e_device)
# 172| device_(gs_bj10v_device)
# 173|-> device_(gs_bj10vh_device)
# 174| device_(gs_bj200_device)
# 175| device_(gs_bjc600_device)
Error: COMPILER_WARNING (CWE-704): [#def2051]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:174:1: warning[-Wlto-type-mismatch]: type of ‘gs_bj200_device’ does not match original declaration
# 174 | device_(gs_bj200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbj10.c:118:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 118 | const gx_device_printer far_data gs_bj200_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevbj10.c:118:34: note: ‘gs_bj200_device’ was previously declared here
# 172| device_(gs_bj10v_device)
# 173| device_(gs_bj10vh_device)
# 174|-> device_(gs_bj200_device)
# 175| device_(gs_bjc600_device)
# 176| device_(gs_bjc800_device)
Error: COMPILER_WARNING (CWE-704): [#def2052]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:175:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc600_device’ does not match original declaration
# 175 | device_(gs_bjc600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:660:27: note: type ‘struct gx_device_bjc600’ should match type ‘struct gx_device’
# 660 | gx_device_bjc600 far_data gs_bjc600_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:660:27: note: ‘gs_bjc600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:660:27: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 173| device_(gs_bj10vh_device)
# 174| device_(gs_bj200_device)
# 175|-> device_(gs_bjc600_device)
# 176| device_(gs_bjc800_device)
# 177| device_(gs_bjc880j_device)
Error: COMPILER_WARNING (CWE-704): [#def2053]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:176:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc800_device’ does not match original declaration
# 176 | device_(gs_bjc800_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:679:27: note: type ‘struct gx_device_bjc800’ should match type ‘struct gx_device’
# 679 | gx_device_bjc800 far_data gs_bjc800_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:679:27: note: ‘gs_bjc800_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:679:27: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 174| device_(gs_bj200_device)
# 175| device_(gs_bjc600_device)
# 176|-> device_(gs_bjc800_device)
# 177| device_(gs_bjc880j_device)
# 178| device_(gs_bjccmyk_device)
Error: COMPILER_WARNING (CWE-704): [#def2054]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:177:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjc880j_device’ does not match original declaration
# 177 | device_(gs_bjc880j_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:170:26: note: type ‘struct gx_device_lips4’ should match type ‘struct gx_device’
# 170 | gx_device_lips4 far_data gs_bjc880j_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:170:26: note: ‘gs_bjc880j_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:170:26: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 175| device_(gs_bjc600_device)
# 176| device_(gs_bjc800_device)
# 177|-> device_(gs_bjc880j_device)
# 178| device_(gs_bjccmyk_device)
# 179| device_(gs_bjccolor_device)
Error: COMPILER_WARNING (CWE-704): [#def2055]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:178:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjccmyk_device’ does not match original declaration
# 178 | device_(gs_bjccmyk_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:294:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
# 294 | const gx_device_bjc_printer gs_bjccmyk_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:294:29: note: ‘gs_bjccmyk_device’ was previously declared here
# 176| device_(gs_bjc800_device)
# 177| device_(gs_bjc880j_device)
# 178|-> device_(gs_bjccmyk_device)
# 179| device_(gs_bjccolor_device)
# 180| device_(gs_bjcgray_device)
Error: COMPILER_WARNING (CWE-704): [#def2056]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:179:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjccolor_device’ does not match original declaration
# 179 | device_(gs_bjccolor_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:327:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
# 327 | const gx_device_bjc_printer gs_bjccolor_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:327:29: note: ‘gs_bjccolor_device’ was previously declared here
# 177| device_(gs_bjc880j_device)
# 178| device_(gs_bjccmyk_device)
# 179|-> device_(gs_bjccolor_device)
# 180| device_(gs_bjcgray_device)
# 181| device_(gs_bjcmono_device)
Error: COMPILER_WARNING (CWE-704): [#def2057]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:180:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjcgray_device’ does not match original declaration
# 180 | device_(gs_bjcgray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:261:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
# 261 | const gx_device_bjc_printer gs_bjcgray_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:261:29: note: ‘gs_bjcgray_device’ was previously declared here
# 178| device_(gs_bjccmyk_device)
# 179| device_(gs_bjccolor_device)
# 180|-> device_(gs_bjcgray_device)
# 181| device_(gs_bjcmono_device)
# 182| device_(gs_cdeskjet_device)
Error: COMPILER_WARNING (CWE-704): [#def2058]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:181:1: warning[-Wlto-type-mismatch]: type of ‘gs_bjcmono_device’ does not match original declaration
# 181 | device_(gs_bjcmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:228:29: note: type ‘const struct gx_device_bjc_printer’ should match type ‘struct gx_device’
# 228 | const gx_device_bjc_printer gs_bjcmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevbjc_.c:228:29: note: ‘gs_bjcmono_device’ was previously declared here
# 179| device_(gs_bjccolor_device)
# 180| device_(gs_bjcgray_device)
# 181|-> device_(gs_bjcmono_device)
# 182| device_(gs_cdeskjet_device)
# 183| #endif
Error: COMPILER_WARNING (CWE-704): [#def2059]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:182:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdeskjet_device’ does not match original declaration
# 182 | device_(gs_cdeskjet_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:590:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 590 | gx_device_cdj far_data gs_cdeskjet_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:590:24: note: ‘gs_cdeskjet_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:590:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 180| device_(gs_bjcgray_device)
# 181| device_(gs_bjcmono_device)
# 182|-> device_(gs_cdeskjet_device)
# 183| #endif
# 184| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2060]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:185:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj1600_device’ does not match original declaration
# 185 | device2_(gs_cdj1600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:864:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 864 | const gx_device_cdj850 gs_cdj1600_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:864:24: note: ‘gs_cdj1600_device’ was previously declared here
# 183| #endif
# 184| #ifdef device2_
# 185|-> device2_(gs_cdj1600_device)
# 186| #endif
# 187| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2061]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:188:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj500_device’ does not match original declaration
# 188 | device_(gs_cdj500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:598:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 598 | gx_device_cdj far_data gs_cdj500_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:598:24: note: ‘gs_cdj500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:598:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 186| #endif
# 187| #ifdef device_
# 188|-> device_(gs_cdj500_device)
# 189| device_(gs_cdj550_device)
# 190| #endif
Error: COMPILER_WARNING (CWE-704): [#def2062]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:189:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj550_device’ does not match original declaration
# 189 | device_(gs_cdj550_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:602:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 602 | gx_device_cdj far_data gs_cdj550_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:602:24: note: ‘gs_cdj550_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:602:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 187| #ifdef device_
# 188| device_(gs_cdj500_device)
# 189|-> device_(gs_cdj550_device)
# 190| #endif
# 191| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2063]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:192:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj670_device’ does not match original declaration
# 192 | device2_(gs_cdj670_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:836:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 836 | const gx_device_cdj850 gs_cdj670_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:836:24: note: ‘gs_cdj670_device’ was previously declared here
# 190| #endif
# 191| #ifdef device2_
# 192|-> device2_(gs_cdj670_device)
# 193| device2_(gs_cdj850_device)
# 194| device2_(gs_cdj880_device)
Error: COMPILER_WARNING (CWE-704): [#def2064]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:193:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj850_device’ does not match original declaration
# 193 | device2_(gs_cdj850_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:843:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 843 | const gx_device_cdj850 gs_cdj850_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:843:24: note: ‘gs_cdj850_device’ was previously declared here
# 191| #ifdef device2_
# 192| device2_(gs_cdj670_device)
# 193|-> device2_(gs_cdj850_device)
# 194| device2_(gs_cdj880_device)
# 195| device2_(gs_cdj890_device)
Error: COMPILER_WARNING (CWE-704): [#def2065]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:194:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj880_device’ does not match original declaration
# 194 | device2_(gs_cdj880_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:850:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 850 | const gx_device_cdj850 gs_cdj880_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:850:24: note: ‘gs_cdj880_device’ was previously declared here
# 192| device2_(gs_cdj670_device)
# 193| device2_(gs_cdj850_device)
# 194|-> device2_(gs_cdj880_device)
# 195| device2_(gs_cdj890_device)
# 196| device2_(gs_cdj970_device)
Error: COMPILER_WARNING (CWE-704): [#def2066]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:195:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj890_device’ does not match original declaration
# 195 | device2_(gs_cdj890_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:857:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 857 | const gx_device_cdj850 gs_cdj890_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:857:24: note: ‘gs_cdj890_device’ was previously declared here
# 193| device2_(gs_cdj850_device)
# 194| device2_(gs_cdj880_device)
# 195|-> device2_(gs_cdj890_device)
# 196| device2_(gs_cdj970_device)
# 197| #endif
Error: COMPILER_WARNING (CWE-704): [#def2067]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:196:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdj970_device’ does not match original declaration
# 196 | device2_(gs_cdj970_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:561:24: note: type ‘const struct gx_device_cdj970’ should match type ‘const struct gx_device’
# 561 | const gx_device_cdj970 gs_cdj970_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevdj9.c:561:24: note: ‘gs_cdj970_device’ was previously declared here
# 194| device2_(gs_cdj880_device)
# 195| device2_(gs_cdj890_device)
# 196|-> device2_(gs_cdj970_device)
# 197| #endif
# 198| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2068]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:199:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdjcolor_device’ does not match original declaration
# 199 | device_(gs_cdjcolor_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:594:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 594 | gx_device_cdj far_data gs_cdjcolor_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:594:24: note: ‘gs_cdjcolor_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:594:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 197| #endif
# 198| #ifdef device_
# 199|-> device_(gs_cdjcolor_device)
# 200| device_(gs_cdjmono_device)
# 201| #endif
Error: COMPILER_WARNING (CWE-704): [#def2069]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:200:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdjmono_device’ does not match original declaration
# 200 | device_(gs_cdjmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:586:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 586 | gx_device_cdj far_data gs_cdjmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:586:24: note: ‘gs_cdjmono_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:586:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 198| #ifdef device_
# 199| device_(gs_cdjcolor_device)
# 200|-> device_(gs_cdjmono_device)
# 201| #endif
# 202| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2070]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:203:1: warning[-Wlto-type-mismatch]: type of ‘gs_cdnj500_device’ does not match original declaration
# 203 | device2_(gs_cdnj500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:880:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 880 | const gx_device_cdj850 gs_cdnj500_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:880:24: note: ‘gs_cdnj500_device’ was previously declared here
# 201| #endif
# 202| #ifdef device2_
# 203|-> device2_(gs_cdnj500_device)
# 204| device2_(gs_chp2200_device)
# 205| #endif
Error: COMPILER_WARNING (CWE-704): [#def2071]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:204:1: warning[-Wlto-type-mismatch]: type of ‘gs_chp2200_device’ does not match original declaration
# 204 | device2_(gs_chp2200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:872:24: note: type ‘const struct gx_device_cdj850’ should match type ‘const struct gx_device’
# 872 | const gx_device_cdj850 gs_chp2200_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevcd8.c:872:24: note: ‘gs_chp2200_device’ was previously declared here
# 202| #ifdef device2_
# 203| device2_(gs_cdnj500_device)
# 204|-> device2_(gs_chp2200_device)
# 205| #endif
# 206| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2072]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:207:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5_device’ does not match original declaration
# 207 | device_(gs_cljet5_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:558:15: note: type ‘struct gx_device_clj’ should match type ‘struct gx_device’
# 558 | gx_device_clj gs_cljet5_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:558:15: note: ‘gs_cljet5_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:558:15: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 205| #endif
# 206| #ifdef device_
# 207|-> device_(gs_cljet5_device)
# 208| device_(gs_cljet5c_device)
# 209| device_(gs_cljet5pr_device)
Error: COMPILER_WARNING (CWE-704): [#def2073]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:208:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5c_device’ does not match original declaration
# 208 | device_(gs_cljet5c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcljc.c:93:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 93 | const gx_device_printer gs_cljet5c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcljc.c:93:25: note: ‘gs_cljet5c_device’ was previously declared here
# 206| #ifdef device_
# 207| device_(gs_cljet5_device)
# 208|-> device_(gs_cljet5c_device)
# 209| device_(gs_cljet5pr_device)
# 210| device_(gs_coslw2p_device)
Error: COMPILER_WARNING (CWE-704): [#def2074]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:209:1: warning[-Wlto-type-mismatch]: type of ‘gs_cljet5pr_device’ does not match original declaration
# 209 | device_(gs_cljet5pr_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:684:15: note: type ‘struct gx_device_clj’ should match type ‘struct gx_device’
# 684 | gx_device_clj gs_cljet5pr_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:684:15: note: ‘gs_cljet5pr_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevclj.c:684:15: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 207| device_(gs_cljet5_device)
# 208| device_(gs_cljet5c_device)
# 209|-> device_(gs_cljet5pr_device)
# 210| device_(gs_coslw2p_device)
# 211| device_(gs_coslwxl_device)
Error: COMPILER_WARNING (CWE-704): [#def2075]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:210:1: warning[-Wlto-type-mismatch]: type of ‘gs_coslw2p_device’ does not match original declaration
# 210 | device_(gs_coslw2p_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcslw.c:33:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 33 | const gx_device_printer gs_coslw2p_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcslw.c:33:25: note: ‘gs_coslw2p_device’ was previously declared here
# 208| device_(gs_cljet5c_device)
# 209| device_(gs_cljet5pr_device)
# 210|-> device_(gs_coslw2p_device)
# 211| device_(gs_coslwxl_device)
# 212| device_(gs_declj250_device)
Error: COMPILER_WARNING (CWE-704): [#def2076]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:211:1: warning[-Wlto-type-mismatch]: type of ‘gs_coslwxl_device’ does not match original declaration
# 211 | device_(gs_coslwxl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcslw.c:41:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 41 | const gx_device_printer gs_coslwxl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcslw.c:41:25: note: ‘gs_coslwxl_device’ was previously declared here
# 209| device_(gs_cljet5pr_device)
# 210| device_(gs_coslw2p_device)
# 211|-> device_(gs_coslwxl_device)
# 212| device_(gs_declj250_device)
# 213| #endif
Error: COMPILER_WARNING (CWE-704): [#def2077]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:212:1: warning[-Wlto-type-mismatch]: type of ‘gs_declj250_device’ does not match original declaration
# 212 | device_(gs_declj250_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:621:23: note: type ‘struct gx_device_pj’ should match type ‘struct gx_device’
# 621 | gx_device_pj far_data gs_declj250_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:621:23: note: ‘gs_declj250_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:621:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 210| device_(gs_coslw2p_device)
# 211| device_(gs_coslwxl_device)
# 212|-> device_(gs_declj250_device)
# 213| #endif
# 214| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2078]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:215:1: warning[-Wlto-type-mismatch]: type of ‘gs_deskjet_device’ does not match original declaration
# 215 | device2_(gs_deskjet_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:157:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 157 | const gx_device_hpjet gs_deskjet_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:157:23: note: ‘gs_deskjet_device’ was previously declared here
# 213| #endif
# 214| #ifdef device2_
# 215|-> device2_(gs_deskjet_device)
# 216| #endif
# 217| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2079]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:218:1: warning[-Wlto-type-mismatch]: type of ‘gs_dj505j_device’ does not match original declaration
# 218 | device_(gs_dj505j_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:617:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 617 | gx_device_cdj far_data gs_dj505j_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:617:24: note: ‘gs_dj505j_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:617:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 216| #endif
# 217| #ifdef device_
# 218|-> device_(gs_dj505j_device)
# 219| #endif
# 220| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2080]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:221:1: warning[-Wlto-type-mismatch]: type of ‘gs_djet500_device’ does not match original declaration
# 221 | device2_(gs_djet500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:164:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 164 | const gx_device_hpjet gs_djet500_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:164:23: note: ‘gs_djet500_device’ was previously declared here
# 219| #endif
# 220| #ifdef device2_
# 221|-> device2_(gs_djet500_device)
# 222| #endif
# 223| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2081]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:224:1: warning[-Wlto-type-mismatch]: type of ‘gs_djet500c_device’ does not match original declaration
# 224 | device_(gs_djet500c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c:54:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 54 | const gx_device_printer far_data gs_djet500c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjtc.c:54:34: note: ‘gs_djet500c_device’ was previously declared here
# 222| #endif
# 223| #ifdef device_
# 224|-> device_(gs_djet500c_device)
# 225| device_(gs_dl2100_device)
# 226| device_(gs_dnj650c_device)
Error: COMPILER_WARNING (CWE-704): [#def2082]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:225:1: warning[-Wlto-type-mismatch]: type of ‘gs_dl2100_device’ does not match original declaration
# 225 | device_(gs_dl2100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:104:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 104 | gx_device_printer gs_dl2100_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:104:19: note: ‘gs_dl2100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:104:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 223| #ifdef device_
# 224| device_(gs_djet500c_device)
# 225|-> device_(gs_dl2100_device)
# 226| device_(gs_dnj650c_device)
# 227| device_(gs_epl2050_device)
Error: COMPILER_WARNING (CWE-704): [#def2083]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:226:1: warning[-Wlto-type-mismatch]: type of ‘gs_dnj650c_device’ does not match original declaration
# 226 | device_(gs_dnj650c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:625:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 625 | gx_device_cdj far_data gs_dnj650c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:625:24: note: ‘gs_dnj650c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:625:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 224| device_(gs_djet500c_device)
# 225| device_(gs_dl2100_device)
# 226|-> device_(gs_dnj650c_device)
# 227| device_(gs_epl2050_device)
# 228| device_(gs_epl2050p_device)
Error: COMPILER_WARNING (CWE-704): [#def2084]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:227:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2050_device’ does not match original declaration
# 227 | device_(gs_epl2050_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:245:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 245 | gx_device_escv far_data gs_epl2050_device = esmv_device_body("epl2050");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:245:25: note: ‘gs_epl2050_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:245:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 225| device_(gs_dl2100_device)
# 226| device_(gs_dnj650c_device)
# 227|-> device_(gs_epl2050_device)
# 228| device_(gs_epl2050p_device)
# 229| device_(gs_epl2120_device)
Error: COMPILER_WARNING (CWE-704): [#def2085]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:228:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2050p_device’ does not match original declaration
# 228 | device_(gs_epl2050p_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:246:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 246 | gx_device_escv far_data gs_epl2050p_device= esmv_device_body("epl2050p");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:246:25: note: ‘gs_epl2050p_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:246:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 226| device_(gs_dnj650c_device)
# 227| device_(gs_epl2050_device)
# 228|-> device_(gs_epl2050p_device)
# 229| device_(gs_epl2120_device)
# 230| device_(gs_epl2500_device)
Error: COMPILER_WARNING (CWE-704): [#def2086]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:229:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2120_device’ does not match original declaration
# 229 | device_(gs_epl2120_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:247:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 247 | gx_device_escv far_data gs_epl2120_device = esmv_device_body("epl2120");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:247:25: note: ‘gs_epl2120_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:247:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 227| device_(gs_epl2050_device)
# 228| device_(gs_epl2050p_device)
# 229|-> device_(gs_epl2120_device)
# 230| device_(gs_epl2500_device)
# 231| device_(gs_epl2750_device)
Error: COMPILER_WARNING (CWE-704): [#def2087]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:230:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2500_device’ does not match original declaration
# 230 | device_(gs_epl2500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:248:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 248 | gx_device_escv far_data gs_epl2500_device = esmv_device_body("epl2500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:248:25: note: ‘gs_epl2500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:248:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 228| device_(gs_epl2050p_device)
# 229| device_(gs_epl2120_device)
# 230|-> device_(gs_epl2500_device)
# 231| device_(gs_epl2750_device)
# 232| device_(gs_epl5800_device)
Error: COMPILER_WARNING (CWE-704): [#def2088]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:231:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl2750_device’ does not match original declaration
# 231 | device_(gs_epl2750_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:249:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 249 | gx_device_escv far_data gs_epl2750_device = esmv_device_body("epl2750");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:249:25: note: ‘gs_epl2750_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:249:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 229| device_(gs_epl2120_device)
# 230| device_(gs_epl2500_device)
# 231|-> device_(gs_epl2750_device)
# 232| device_(gs_epl5800_device)
# 233| device_(gs_epl5900_device)
Error: COMPILER_WARNING (CWE-704): [#def2089]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:232:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl5800_device’ does not match original declaration
# 232 | device_(gs_epl5800_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:250:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 250 | gx_device_escv far_data gs_epl5800_device = esmv_device_body("epl5800");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:250:25: note: ‘gs_epl5800_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:250:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 230| device_(gs_epl2500_device)
# 231| device_(gs_epl2750_device)
# 232|-> device_(gs_epl5800_device)
# 233| device_(gs_epl5900_device)
# 234| device_(gs_epl6100_device)
Error: COMPILER_WARNING (CWE-704): [#def2090]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:233:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl5900_device’ does not match original declaration
# 233 | device_(gs_epl5900_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:251:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 251 | gx_device_escv far_data gs_epl5900_device = esmv_device_body("epl5900");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:251:25: note: ‘gs_epl5900_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:251:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 231| device_(gs_epl2750_device)
# 232| device_(gs_epl5800_device)
# 233|-> device_(gs_epl5900_device)
# 234| device_(gs_epl6100_device)
# 235| device_(gs_epl6200_device)
Error: COMPILER_WARNING (CWE-704): [#def2091]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:234:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl6100_device’ does not match original declaration
# 234 | device_(gs_epl6100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:252:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 252 | gx_device_escv far_data gs_epl6100_device = esmv_device_body("epl6100");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:252:25: note: ‘gs_epl6100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:252:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 232| device_(gs_epl5800_device)
# 233| device_(gs_epl5900_device)
# 234|-> device_(gs_epl6100_device)
# 235| device_(gs_epl6200_device)
# 236| device_(gs_eplcolor_device)
Error: COMPILER_WARNING (CWE-704): [#def2092]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:235:1: warning[-Wlto-type-mismatch]: type of ‘gs_epl6200_device’ does not match original declaration
# 235 | device_(gs_epl6200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:253:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 253 | gx_device_escv far_data gs_epl6200_device = esmv_device_body("epl6200");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:253:25: note: ‘gs_epl6200_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:253:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 233| device_(gs_epl5900_device)
# 234| device_(gs_epl6100_device)
# 235|-> device_(gs_epl6200_device)
# 236| device_(gs_eplcolor_device)
# 237| device_(gs_eplmono_device)
Error: COMPILER_WARNING (CWE-704): [#def2093]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:236:1: warning[-Wlto-type-mismatch]: type of ‘gs_eplcolor_device’ does not match original declaration
# 236 | device_(gs_eplcolor_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:298:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 298 | gx_device_escv far_data gs_eplcolor_device= escv_device_body(ESCPAGE_DEVICENAME_COLOR);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:298:25: note: ‘gs_eplcolor_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:298:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 234| device_(gs_epl6100_device)
# 235| device_(gs_epl6200_device)
# 236|-> device_(gs_eplcolor_device)
# 237| device_(gs_eplmono_device)
# 238| device_(gs_eps9high_device)
Error: COMPILER_WARNING (CWE-704): [#def2094]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:237:1: warning[-Wlto-type-mismatch]: type of ‘gs_eplmono_device’ does not match original declaration
# 237 | device_(gs_eplmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:277:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 277 | gx_device_escv far_data gs_eplmono_device = esmv_device_body(ESCPAGE_DEVICENAME_MONO);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:277:25: note: ‘gs_eplmono_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:277:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 235| device_(gs_epl6200_device)
# 236| device_(gs_eplcolor_device)
# 237|-> device_(gs_eplmono_device)
# 238| device_(gs_eps9high_device)
# 239| device_(gs_eps9mid_device)
Error: COMPILER_WARNING (CWE-704): [#def2095]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:238:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps9high_device’ does not match original declaration
# 238 | device_(gs_eps9high_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:123:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 123 | const gx_device_printer far_data gs_eps9high_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:123:34: note: ‘gs_eps9high_device’ was previously declared here
# 236| device_(gs_eplcolor_device)
# 237| device_(gs_eplmono_device)
# 238|-> device_(gs_eps9high_device)
# 239| device_(gs_eps9mid_device)
# 240| device_(gs_epson_device)
Error: COMPILER_WARNING (CWE-704): [#def2096]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:239:1: warning[-Wlto-type-mismatch]: type of ‘gs_eps9mid_device’ does not match original declaration
# 239 | device_(gs_eps9mid_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:113:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 113 | const gx_device_printer far_data gs_eps9mid_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:113:34: note: ‘gs_eps9mid_device’ was previously declared here
# 237| device_(gs_eplmono_device)
# 238| device_(gs_eps9high_device)
# 239|-> device_(gs_eps9mid_device)
# 240| device_(gs_epson_device)
# 241| device_(gs_epsonc_device)
Error: COMPILER_WARNING (CWE-704): [#def2097]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:240:1: warning[-Wlto-type-mismatch]: type of ‘gs_epson_device’ does not match original declaration
# 240 | device_(gs_epson_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:103:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 103 | const gx_device_printer far_data gs_epson_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:103:34: note: ‘gs_epson_device’ was previously declared here
# 238| device_(gs_eps9high_device)
# 239| device_(gs_eps9mid_device)
# 240|-> device_(gs_epson_device)
# 241| device_(gs_epsonc_device)
# 242| device_(gs_escp_device)
Error: COMPILER_WARNING (CWE-704): [#def2098]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:241:1: warning[-Wlto-type-mismatch]: type of ‘gs_epsonc_device’ does not match original declaration
# 241 | device_(gs_epsonc_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsc.c:157:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 157 | const gx_device_printer far_data gs_epsonc_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsc.c:157:34: note: ‘gs_epsonc_device’ was previously declared here
# 239| device_(gs_eps9mid_device)
# 240| device_(gs_epson_device)
# 241|-> device_(gs_epsonc_device)
# 242| device_(gs_escp_device)
# 243| device_(gs_escpage_device)
Error: COMPILER_WARNING (CWE-704): [#def2099]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:242:1: warning[-Wlto-type-mismatch]: type of ‘gs_escp_device’ does not match original declaration
# 242 | device_(gs_escp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:649:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 649 | gx_device_cdj far_data gs_escp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:649:24: note: ‘gs_escp_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:649:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 240| device_(gs_epson_device)
# 241| device_(gs_epsonc_device)
# 242|-> device_(gs_escp_device)
# 243| device_(gs_escpage_device)
# 244| device_(gs_fmlbp_device)
Error: COMPILER_WARNING (CWE-704): [#def2100]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:243:1: warning[-Wlto-type-mismatch]: type of ‘gs_escpage_device’ does not match original declaration
# 243 | device_(gs_escpage_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:71:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
# 71 | gx_device_lprn far_data gs_escpage_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:71:25: note: ‘gs_escpage_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:71:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 241| device_(gs_epsonc_device)
# 242| device_(gs_escp_device)
# 243|-> device_(gs_escpage_device)
# 244| device_(gs_fmlbp_device)
# 245| device_(gs_fmpr_device)
Error: COMPILER_WARNING (CWE-704): [#def2101]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:244:1: warning[-Wlto-type-mismatch]: type of ‘gs_fmlbp_device’ does not match original declaration
# 244 | device_(gs_fmlbp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmlbp.c:73:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 73 | gx_device_printer gs_fmlbp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmlbp.c:73:19: note: ‘gs_fmlbp_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmlbp.c:73:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 242| device_(gs_escp_device)
# 243| device_(gs_escpage_device)
# 244|-> device_(gs_fmlbp_device)
# 245| device_(gs_fmpr_device)
# 246| #endif
Error: COMPILER_WARNING (CWE-704): [#def2102]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:245:1: warning[-Wlto-type-mismatch]: type of ‘gs_fmpr_device’ does not match original declaration
# 245 | device_(gs_fmpr_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmpr.c:32:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 32 | gx_device_printer gs_fmpr_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmpr.c:32:19: note: ‘gs_fmpr_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevfmpr.c:32:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 243| device_(gs_escpage_device)
# 244| device_(gs_fmlbp_device)
# 245|-> device_(gs_fmpr_device)
# 246| #endif
# 247| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2103]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:248:1: warning[-Wlto-type-mismatch]: type of ‘gs_fs600_device’ does not match original declaration
# 248 | device2_(gs_fs600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:171:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 171 | const gx_device_hpjet gs_fs600_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:171:23: note: ‘gs_fs600_device’ was previously declared here
# 246| #endif
# 247| #ifdef device2_
# 248|-> device2_(gs_fs600_device)
# 249| #endif
# 250| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2104]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:251:1: warning[-Wlto-type-mismatch]: type of ‘gs_gdi_device’ does not match original declaration
# 251 | device_(gs_gdi_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:106:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 106 | gx_device_printer far_data gs_gdi_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:106:28: note: ‘gs_gdi_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:106:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 249| #endif
# 250| #ifdef device_
# 251|-> device_(gs_gdi_device)
# 252| device_(gs_hl1240_device)
# 253| device_(gs_hl1250_device)
Error: COMPILER_WARNING (CWE-704): [#def2105]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:252:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl1240_device’ does not match original declaration
# 252 | device_(gs_hl1240_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevhl12.c:187:24: note: type ‘const struct gx_device_hl1250’ should match type ‘struct gx_device’
# 187 | const gx_device_hl1250 gs_hl1240_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevhl12.c:187:24: note: ‘gs_hl1240_device’ was previously declared here
# 250| #ifdef device_
# 251| device_(gs_gdi_device)
# 252|-> device_(gs_hl1240_device)
# 253| device_(gs_hl1250_device)
# 254| device_(gs_hl7x0_device)
Error: COMPILER_WARNING (CWE-704): [#def2106]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:253:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl1250_device’ does not match original declaration
# 253 | device_(gs_hl1250_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevhl12.c:184:24: note: type ‘const struct gx_device_hl1250’ should match type ‘struct gx_device’
# 184 | const gx_device_hl1250 gs_hl1250_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevhl12.c:184:24: note: ‘gs_hl1250_device’ was previously declared here
# 251| device_(gs_gdi_device)
# 252| device_(gs_hl1240_device)
# 253|-> device_(gs_hl1250_device)
# 254| device_(gs_hl7x0_device)
# 255| device_(gs_hpdj1120c_device)
Error: COMPILER_WARNING (CWE-704): [#def2107]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:254:1: warning[-Wlto-type-mismatch]: type of ‘gs_hl7x0_device’ does not match original declaration
# 254 | device_(gs_hl7x0_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevhl7x.c:260:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 260 | const gx_device_printer far_data gs_hl7x0_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevhl7x.c:260:34: note: ‘gs_hl7x0_device’ was previously declared here
# 252| device_(gs_hl1240_device)
# 253| device_(gs_hl1250_device)
# 254|-> device_(gs_hl7x0_device)
# 255| device_(gs_hpdj1120c_device)
# 256| device_(gs_hpdj310_device)
Error: COMPILER_WARNING (CWE-704): [#def2108]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:255:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj1120c_device’ does not match original declaration
# 255 | device_(gs_hpdj1120c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:189:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 189 | pcl3_device_instance(hpdj1120c, HPDJ1120C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:189:1: note: ‘gs_hpdj1120c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:189:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 253| device_(gs_hl1250_device)
# 254| device_(gs_hl7x0_device)
# 255|-> device_(gs_hpdj1120c_device)
# 256| device_(gs_hpdj310_device)
# 257| device_(gs_hpdj320_device)
Error: COMPILER_WARNING (CWE-704): [#def2109]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:256:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj310_device’ does not match original declaration
# 256 | device_(gs_hpdj310_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:169:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 169 | pcl3_device_instance(hpdj310, HPDJ310);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:169:1: note: ‘gs_hpdj310_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:169:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 254| device_(gs_hl7x0_device)
# 255| device_(gs_hpdj1120c_device)
# 256|-> device_(gs_hpdj310_device)
# 257| device_(gs_hpdj320_device)
# 258| device_(gs_hpdj340_device)
Error: COMPILER_WARNING (CWE-704): [#def2110]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:257:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj320_device’ does not match original declaration
# 257 | device_(gs_hpdj320_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:170:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 170 | pcl3_device_instance(hpdj320, HPDJ320);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:170:1: note: ‘gs_hpdj320_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:170:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 255| device_(gs_hpdj1120c_device)
# 256| device_(gs_hpdj310_device)
# 257|-> device_(gs_hpdj320_device)
# 258| device_(gs_hpdj340_device)
# 259| device_(gs_hpdj400_device)
Error: COMPILER_WARNING (CWE-704): [#def2111]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:258:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj340_device’ does not match original declaration
# 258 | device_(gs_hpdj340_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:171:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 171 | pcl3_device_instance(hpdj340, HPDJ340);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:171:1: note: ‘gs_hpdj340_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:171:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 256| device_(gs_hpdj310_device)
# 257| device_(gs_hpdj320_device)
# 258|-> device_(gs_hpdj340_device)
# 259| device_(gs_hpdj400_device)
# 260| device_(gs_hpdj500_device)
Error: COMPILER_WARNING (CWE-704): [#def2112]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:259:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj400_device’ does not match original declaration
# 259 | device_(gs_hpdj400_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:172:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 172 | pcl3_device_instance(hpdj400, HPDJ400);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:172:1: note: ‘gs_hpdj400_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:172:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 257| device_(gs_hpdj320_device)
# 258| device_(gs_hpdj340_device)
# 259|-> device_(gs_hpdj400_device)
# 260| device_(gs_hpdj500_device)
# 261| device_(gs_hpdj500c_device)
Error: COMPILER_WARNING (CWE-704): [#def2113]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:260:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj500_device’ does not match original declaration
# 260 | device_(gs_hpdj500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:173:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 173 | pcl3_device_instance(hpdj500, HPDJ500);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:173:1: note: ‘gs_hpdj500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:173:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 258| device_(gs_hpdj340_device)
# 259| device_(gs_hpdj400_device)
# 260|-> device_(gs_hpdj500_device)
# 261| device_(gs_hpdj500c_device)
# 262| device_(gs_hpdj510_device)
Error: COMPILER_WARNING (CWE-704): [#def2114]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:261:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj500c_device’ does not match original declaration
# 261 | device_(gs_hpdj500c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:174:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 174 | pcl3_device_instance(hpdj500c, HPDJ500C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:174:1: note: ‘gs_hpdj500c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:174:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 259| device_(gs_hpdj400_device)
# 260| device_(gs_hpdj500_device)
# 261|-> device_(gs_hpdj500c_device)
# 262| device_(gs_hpdj510_device)
# 263| device_(gs_hpdj520_device)
Error: COMPILER_WARNING (CWE-704): [#def2115]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:262:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj510_device’ does not match original declaration
# 262 | device_(gs_hpdj510_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:175:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 175 | pcl3_device_instance(hpdj510, HPDJ510);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:175:1: note: ‘gs_hpdj510_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:175:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 260| device_(gs_hpdj500_device)
# 261| device_(gs_hpdj500c_device)
# 262|-> device_(gs_hpdj510_device)
# 263| device_(gs_hpdj520_device)
# 264| device_(gs_hpdj540_device)
Error: COMPILER_WARNING (CWE-704): [#def2116]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:263:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj520_device’ does not match original declaration
# 263 | device_(gs_hpdj520_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:176:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 176 | pcl3_device_instance(hpdj520, HPDJ520);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:176:1: note: ‘gs_hpdj520_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:176:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 261| device_(gs_hpdj500c_device)
# 262| device_(gs_hpdj510_device)
# 263|-> device_(gs_hpdj520_device)
# 264| device_(gs_hpdj540_device)
# 265| device_(gs_hpdj550c_device)
Error: COMPILER_WARNING (CWE-704): [#def2117]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:264:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj540_device’ does not match original declaration
# 264 | device_(gs_hpdj540_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:177:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 177 | pcl3_device_instance(hpdj540, HPDJ540);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:177:1: note: ‘gs_hpdj540_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:177:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 262| device_(gs_hpdj510_device)
# 263| device_(gs_hpdj520_device)
# 264|-> device_(gs_hpdj540_device)
# 265| device_(gs_hpdj550c_device)
# 266| device_(gs_hpdj560c_device)
Error: COMPILER_WARNING (CWE-704): [#def2118]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:265:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj550c_device’ does not match original declaration
# 265 | device_(gs_hpdj550c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:178:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 178 | pcl3_device_instance(hpdj550c, HPDJ550C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:178:1: note: ‘gs_hpdj550c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:178:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 263| device_(gs_hpdj520_device)
# 264| device_(gs_hpdj540_device)
# 265|-> device_(gs_hpdj550c_device)
# 266| device_(gs_hpdj560c_device)
# 267| device_(gs_hpdj600_device)
Error: COMPILER_WARNING (CWE-704): [#def2119]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:266:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj560c_device’ does not match original declaration
# 266 | device_(gs_hpdj560c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:179:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 179 | pcl3_device_instance(hpdj560c, HPDJ560C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:179:1: note: ‘gs_hpdj560c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:179:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 264| device_(gs_hpdj540_device)
# 265| device_(gs_hpdj550c_device)
# 266|-> device_(gs_hpdj560c_device)
# 267| device_(gs_hpdj600_device)
# 268| device_(gs_hpdj660c_device)
Error: COMPILER_WARNING (CWE-704): [#def2120]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:267:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj600_device’ does not match original declaration
# 267 | device_(gs_hpdj600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:180:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 180 | pcl3_device_instance(hpdj600, HPDJ600);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:180:1: note: ‘gs_hpdj600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:180:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 265| device_(gs_hpdj550c_device)
# 266| device_(gs_hpdj560c_device)
# 267|-> device_(gs_hpdj600_device)
# 268| device_(gs_hpdj660c_device)
# 269| device_(gs_hpdj670c_device)
Error: COMPILER_WARNING (CWE-704): [#def2121]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:268:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj660c_device’ does not match original declaration
# 268 | device_(gs_hpdj660c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:181:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 181 | pcl3_device_instance(hpdj660c, HPDJ660C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:181:1: note: ‘gs_hpdj660c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:181:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 266| device_(gs_hpdj560c_device)
# 267| device_(gs_hpdj600_device)
# 268|-> device_(gs_hpdj660c_device)
# 269| device_(gs_hpdj670c_device)
# 270| device_(gs_hpdj680c_device)
Error: COMPILER_WARNING (CWE-704): [#def2122]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:269:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj670c_device’ does not match original declaration
# 269 | device_(gs_hpdj670c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:182:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 182 | pcl3_device_instance(hpdj670c, HPDJ670C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:182:1: note: ‘gs_hpdj670c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:182:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 267| device_(gs_hpdj600_device)
# 268| device_(gs_hpdj660c_device)
# 269|-> device_(gs_hpdj670c_device)
# 270| device_(gs_hpdj680c_device)
# 271| device_(gs_hpdj690c_device)
Error: COMPILER_WARNING (CWE-704): [#def2123]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:270:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj680c_device’ does not match original declaration
# 270 | device_(gs_hpdj680c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:183:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 183 | pcl3_device_instance(hpdj680c, HPDJ680C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:183:1: note: ‘gs_hpdj680c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:183:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 268| device_(gs_hpdj660c_device)
# 269| device_(gs_hpdj670c_device)
# 270|-> device_(gs_hpdj680c_device)
# 271| device_(gs_hpdj690c_device)
# 272| device_(gs_hpdj850c_device)
Error: COMPILER_WARNING (CWE-704): [#def2124]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:271:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj690c_device’ does not match original declaration
# 271 | device_(gs_hpdj690c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:184:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 184 | pcl3_device_instance(hpdj690c, HPDJ690C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:184:1: note: ‘gs_hpdj690c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:184:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 269| device_(gs_hpdj670c_device)
# 270| device_(gs_hpdj680c_device)
# 271|-> device_(gs_hpdj690c_device)
# 272| device_(gs_hpdj850c_device)
# 273| device_(gs_hpdj855c_device)
Error: COMPILER_WARNING (CWE-704): [#def2125]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:272:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj850c_device’ does not match original declaration
# 272 | device_(gs_hpdj850c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:185:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 185 | pcl3_device_instance(hpdj850c, HPDJ850C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:185:1: note: ‘gs_hpdj850c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:185:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 270| device_(gs_hpdj680c_device)
# 271| device_(gs_hpdj690c_device)
# 272|-> device_(gs_hpdj850c_device)
# 273| device_(gs_hpdj855c_device)
# 274| device_(gs_hpdj870c_device)
Error: COMPILER_WARNING (CWE-704): [#def2126]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:273:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj855c_device’ does not match original declaration
# 273 | device_(gs_hpdj855c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:186:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 186 | pcl3_device_instance(hpdj855c, HPDJ855C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:186:1: note: ‘gs_hpdj855c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:186:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 271| device_(gs_hpdj690c_device)
# 272| device_(gs_hpdj850c_device)
# 273|-> device_(gs_hpdj855c_device)
# 274| device_(gs_hpdj870c_device)
# 275| device_(gs_hpdj890c_device)
Error: COMPILER_WARNING (CWE-704): [#def2127]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:274:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj870c_device’ does not match original declaration
# 274 | device_(gs_hpdj870c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:187:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 187 | pcl3_device_instance(hpdj870c, HPDJ870C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:187:1: note: ‘gs_hpdj870c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:187:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 272| device_(gs_hpdj850c_device)
# 273| device_(gs_hpdj855c_device)
# 274|-> device_(gs_hpdj870c_device)
# 275| device_(gs_hpdj890c_device)
# 276| device_(gs_hpdjplus_device)
Error: COMPILER_WARNING (CWE-704): [#def2128]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:275:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdj890c_device’ does not match original declaration
# 275 | device_(gs_hpdj890c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:188:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 188 | pcl3_device_instance(hpdj890c, HPDJ890C);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:188:1: note: ‘gs_hpdj890c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:188:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 273| device_(gs_hpdj855c_device)
# 274| device_(gs_hpdj870c_device)
# 275|-> device_(gs_hpdj890c_device)
# 276| device_(gs_hpdjplus_device)
# 277| device_(gs_hpdjportable_device)
Error: COMPILER_WARNING (CWE-704): [#def2129]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:276:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdjplus_device’ does not match original declaration
# 276 | device_(gs_hpdjplus_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:167:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 167 | pcl3_device_instance(hpdjplus, HPDeskJetPlus);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:167:1: note: ‘gs_hpdjplus_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:167:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 274| device_(gs_hpdj870c_device)
# 275| device_(gs_hpdj890c_device)
# 276|-> device_(gs_hpdjplus_device)
# 277| device_(gs_hpdjportable_device)
# 278| device_(gs_ibmpro_device)
Error: COMPILER_WARNING (CWE-704): [#def2130]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:277:1: warning[-Wlto-type-mismatch]: type of ‘gs_hpdjportable_device’ does not match original declaration
# 277 | device_(gs_hpdjportable_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:168:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 168 | pcl3_device_instance(hpdjportable, HPDJPortable);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:168:1: note: ‘gs_hpdjportable_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:168:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 275| device_(gs_hpdj890c_device)
# 276| device_(gs_hpdjplus_device)
# 277|-> device_(gs_hpdjportable_device)
# 278| device_(gs_ibmpro_device)
# 279| device_(gs_imagen_device)
Error: COMPILER_WARNING (CWE-704): [#def2131]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:278:1: warning[-Wlto-type-mismatch]: type of ‘gs_ibmpro_device’ does not match original declaration
# 278 | device_(gs_ibmpro_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:133:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 133 | const gx_device_printer far_data gs_ibmpro_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevepsn.c:133:34: note: ‘gs_ibmpro_device’ was previously declared here
# 276| device_(gs_hpdjplus_device)
# 277| device_(gs_hpdjportable_device)
# 278|-> device_(gs_ibmpro_device)
# 279| device_(gs_imagen_device)
# 280| #endif
Error: COMPILER_WARNING (CWE-704): [#def2132]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:279:1: warning[-Wlto-type-mismatch]: type of ‘gs_imagen_device’ does not match original declaration
# 279 | device_(gs_imagen_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevimgn.c:243:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 243 | const gx_device_printer far_data gs_imagen_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevimgn.c:243:34: note: ‘gs_imagen_device’ was previously declared here
# 277| device_(gs_hpdjportable_device)
# 278| device_(gs_ibmpro_device)
# 279|-> device_(gs_imagen_device)
# 280| #endif
# 281| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2133]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:282:1: warning[-Wlto-type-mismatch]: type of ‘gs_itk24i_device’ does not match original declaration
# 282 | device2_(gs_itk24i_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:62:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 62 | const gx_device_printer gs_itk24i_device = /* real width = 832 pixels */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:62:25: note: ‘gs_itk24i_device’ was previously declared here
# 280| #endif
# 281| #ifdef device2_
# 282|-> device2_(gs_itk24i_device)
# 283| device2_(gs_itk38_device)
# 284| #endif
Error: COMPILER_WARNING (CWE-704): [#def2134]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:283:1: warning[-Wlto-type-mismatch]: type of ‘gs_itk38_device’ does not match original declaration
# 283 | device2_(gs_itk38_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:66:25: note: type ‘const struct gx_device_printer’ should match type ‘const struct gx_device’
# 66 | const gx_device_printer gs_itk38_device = /* real width = 2400 pixels */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevatx.c:66:25: note: ‘gs_itk38_device’ was previously declared here
# 281| #ifdef device2_
# 282| device2_(gs_itk24i_device)
# 283|-> device2_(gs_itk38_device)
# 284| #endif
# 285| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2135]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:286:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwhi_device’ does not match original declaration
# 286 | device_(gs_iwhi_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:139:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 139 | const gx_device_printer far_data gs_iwhi_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:139:34: note: ‘gs_iwhi_device’ was previously declared here
# 284| #endif
# 285| #ifdef device_
# 286|-> device_(gs_iwhi_device)
# 287| device_(gs_iwlo_device)
# 288| device_(gs_iwlq_device)
Error: COMPILER_WARNING (CWE-704): [#def2136]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:287:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlo_device’ does not match original declaration
# 287 | device_(gs_iwlo_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:130:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 130 | const gx_device_printer far_data gs_iwlo_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:130:34: note: ‘gs_iwlo_device’ was previously declared here
# 285| #ifdef device_
# 286| device_(gs_iwhi_device)
# 287|-> device_(gs_iwlo_device)
# 288| device_(gs_iwlq_device)
# 289| device_(gs_jetp3852_device)
Error: COMPILER_WARNING (CWE-704): [#def2137]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:288:1: warning[-Wlto-type-mismatch]: type of ‘gs_iwlq_device’ does not match original declaration
# 288 | device_(gs_iwlq_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:148:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 148 | const gx_device_printer far_data gs_iwlq_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevadmp.c:148:34: note: ‘gs_iwlq_device’ was previously declared here
# 286| device_(gs_iwhi_device)
# 287| device_(gs_iwlo_device)
# 288|-> device_(gs_iwlq_device)
# 289| device_(gs_jetp3852_device)
# 290| device_(gs_jj100_device)
Error: COMPILER_WARNING (CWE-704): [#def2138]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:289:1: warning[-Wlto-type-mismatch]: type of ‘gs_jetp3852_device’ does not match original declaration
# 289 | device_(gs_jetp3852_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev3852.c:57:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 57 | const gx_device_printer far_data gs_jetp3852_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev3852.c:57:34: note: ‘gs_jetp3852_device’ was previously declared here
# 287| device_(gs_iwlo_device)
# 288| device_(gs_iwlq_device)
# 289|-> device_(gs_jetp3852_device)
# 290| device_(gs_jj100_device)
# 291| device_(gs_la50_device)
Error: COMPILER_WARNING (CWE-704): [#def2139]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:290:1: warning[-Wlto-type-mismatch]: type of ‘gs_jj100_device’ does not match original declaration
# 290 | device_(gs_jj100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevj100.c:31:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 31 | gx_device_printer gs_jj100_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevj100.c:31:19: note: ‘gs_jj100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevj100.c:31:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 288| device_(gs_iwlq_device)
# 289| device_(gs_jetp3852_device)
# 290|-> device_(gs_jj100_device)
# 291| device_(gs_la50_device)
# 292| device_(gs_la70_device)
Error: COMPILER_WARNING (CWE-704): [#def2140]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:291:1: warning[-Wlto-type-mismatch]: type of ‘gs_la50_device’ does not match original declaration
# 291 | device_(gs_la50_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:129:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 129 | gx_device_printer gs_la50_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:129:19: note: ‘gs_la50_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:129:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 289| device_(gs_jetp3852_device)
# 290| device_(gs_jj100_device)
# 291|-> device_(gs_la50_device)
# 292| device_(gs_la70_device)
# 293| device_(gs_la75_device)
Error: COMPILER_WARNING (CWE-704): [#def2141]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:292:1: warning[-Wlto-type-mismatch]: type of ‘gs_la70_device’ does not match original declaration
# 292 | device_(gs_la70_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:156:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 156 | gx_device_printer gs_la70_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:156:19: note: ‘gs_la70_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:156:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 290| device_(gs_jj100_device)
# 291| device_(gs_la50_device)
# 292|-> device_(gs_la70_device)
# 293| device_(gs_la75_device)
# 294| device_(gs_la75plus_device)
Error: COMPILER_WARNING (CWE-704): [#def2142]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:293:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75_device’ does not match original declaration
# 293 | device_(gs_la75_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:182:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 182 | gx_device_printer gs_la75_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:182:19: note: ‘gs_la75_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:182:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 291| device_(gs_la50_device)
# 292| device_(gs_la70_device)
# 293|-> device_(gs_la75_device)
# 294| device_(gs_la75plus_device)
# 295| #endif
Error: COMPILER_WARNING (CWE-704): [#def2143]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:294:1: warning[-Wlto-type-mismatch]: type of ‘gs_la75plus_device’ does not match original declaration
# 294 | device_(gs_la75plus_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:209:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 209 | gx_device_printer gs_la75plus_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:209:19: note: ‘gs_la75plus_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:209:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 292| device_(gs_la70_device)
# 293| device_(gs_la75_device)
# 294|-> device_(gs_la75plus_device)
# 295| #endif
# 296| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2144]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:297:1: warning[-Wlto-type-mismatch]: type of ‘gs_laserjet_device’ does not match original declaration
# 297 | device2_(gs_laserjet_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:178:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 178 | const gx_device_hpjet gs_laserjet_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:178:23: note: ‘gs_laserjet_device’ was previously declared here
# 295| #endif
# 296| #ifdef device2_
# 297|-> device2_(gs_laserjet_device)
# 298| #endif
# 299| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2145]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:300:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp310_device’ does not match original declaration
# 300 | device_(gs_lbp310_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:17:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 17 | gx_device_printer far_data gs_lbp310_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:17:28: note: ‘gs_lbp310_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:17:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 298| #endif
# 299| #ifdef device_
# 300|-> device_(gs_lbp310_device)
# 301| device_(gs_lbp320_device)
# 302| device_(gs_lbp8_device)
Error: COMPILER_WARNING (CWE-704): [#def2146]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:301:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp320_device’ does not match original declaration
# 301 | device_(gs_lbp320_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:29:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 29 | gx_device_printer far_data gs_lbp320_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:29:28: note: ‘gs_lbp320_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:29:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 299| #ifdef device_
# 300| device_(gs_lbp310_device)
# 301|-> device_(gs_lbp320_device)
# 302| device_(gs_lbp8_device)
# 303| device_(gs_lex2050_device)
Error: COMPILER_WARNING (CWE-704): [#def2147]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:302:1: warning[-Wlto-type-mismatch]: type of ‘gs_lbp8_device’ does not match original declaration
# 302 | device_(gs_lbp8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlbp8.c:50:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 50 | const gx_device_printer far_data gs_lbp8_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlbp8.c:50:34: note: ‘gs_lbp8_device’ was previously declared here
# 300| device_(gs_lbp310_device)
# 301| device_(gs_lbp320_device)
# 302|-> device_(gs_lbp8_device)
# 303| device_(gs_lex2050_device)
# 304| device_(gs_lex3200_device)
Error: COMPILER_WARNING (CWE-704): [#def2148]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:303:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex2050_device’ does not match original declaration
# 303 | device_(gs_lex2050_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:216:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 216 | lxm_device far_data gs_lex2050_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:216:21: note: ‘gs_lex2050_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:216:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 301| device_(gs_lbp320_device)
# 302| device_(gs_lbp8_device)
# 303|-> device_(gs_lex2050_device)
# 304| device_(gs_lex3200_device)
# 305| device_(gs_lex5700_device)
Error: COMPILER_WARNING (CWE-704): [#def2149]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:304:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex3200_device’ does not match original declaration
# 304 | device_(gs_lex3200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:193:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 193 | lxm_device far_data gs_lex3200_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:193:21: note: ‘gs_lex3200_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:193:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 302| device_(gs_lbp8_device)
# 303| device_(gs_lex2050_device)
# 304|-> device_(gs_lex3200_device)
# 305| device_(gs_lex5700_device)
# 306| device_(gs_lex7000_device)
Error: COMPILER_WARNING (CWE-704): [#def2150]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:305:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex5700_device’ does not match original declaration
# 305 | device_(gs_lex5700_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:170:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 170 | lxm_device far_data gs_lex5700_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:170:21: note: ‘gs_lex5700_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:170:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 303| device_(gs_lex2050_device)
# 304| device_(gs_lex3200_device)
# 305|-> device_(gs_lex5700_device)
# 306| device_(gs_lex7000_device)
# 307| device_(gs_lips2p_device)
Error: COMPILER_WARNING (CWE-704): [#def2151]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:306:1: warning[-Wlto-type-mismatch]: type of ‘gs_lex7000_device’ does not match original declaration
# 306 | device_(gs_lex7000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:147:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 147 | lxm_device far_data gs_lex7000_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:147:21: note: ‘gs_lex7000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx7.c:147:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 304| device_(gs_lex3200_device)
# 305| device_(gs_lex5700_device)
# 306|-> device_(gs_lex7000_device)
# 307| device_(gs_lips2p_device)
# 308| device_(gs_lips3_device)
Error: COMPILER_WARNING (CWE-704): [#def2152]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:307:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips2p_device’ does not match original declaration
# 307 | device_(gs_lips2p_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:146:25: note: type ‘struct gx_device_lips’ should match type ‘struct gx_device’
# 146 | gx_device_lips far_data gs_lips2p_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:146:25: note: ‘gs_lips2p_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:146:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 305| device_(gs_lex5700_device)
# 306| device_(gs_lex7000_device)
# 307|-> device_(gs_lips2p_device)
# 308| device_(gs_lips3_device)
# 309| device_(gs_lips4_device)
Error: COMPILER_WARNING (CWE-704): [#def2153]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:308:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips3_device’ does not match original declaration
# 308 | device_(gs_lips3_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:158:25: note: type ‘struct gx_device_lips’ should match type ‘struct gx_device’
# 158 | gx_device_lips far_data gs_lips3_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:158:25: note: ‘gs_lips3_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:158:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 306| device_(gs_lex7000_device)
# 307| device_(gs_lips2p_device)
# 308|-> device_(gs_lips3_device)
# 309| device_(gs_lips4_device)
# 310| device_(gs_lips4v_device)
Error: COMPILER_WARNING (CWE-704): [#def2154]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:309:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4_device’ does not match original declaration
# 309 | device_(gs_lips4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:182:26: note: type ‘struct gx_device_lips4’ should match type ‘struct gx_device’
# 182 | gx_device_lips4 far_data gs_lips4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:182:26: note: ‘gs_lips4_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4r.c:182:26: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 307| device_(gs_lips2p_device)
# 308| device_(gs_lips3_device)
# 309|-> device_(gs_lips4_device)
# 310| device_(gs_lips4v_device)
# 311| device_(gs_lj250_device)
Error: COMPILER_WARNING (CWE-704): [#def2155]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:310:1: warning[-Wlto-type-mismatch]: type of ‘gs_lips4v_device’ does not match original declaration
# 310 | device_(gs_lips4v_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:185:27: note: type ‘struct gx_device_lips4v’ should match type ‘struct gx_device’
# 185 | gx_device_lips4v far_data gs_lips4v_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:185:27: note: ‘gs_lips4v_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/lips4/gdevl4v.c:185:27: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 308| device_(gs_lips3_device)
# 309| device_(gs_lips4_device)
# 310|-> device_(gs_lips4v_device)
# 311| device_(gs_lj250_device)
# 312| device_(gs_lj3100sw_device)
Error: COMPILER_WARNING (CWE-704): [#def2156]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:311:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj250_device’ does not match original declaration
# 311 | device_(gs_lj250_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:48:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 48 | const gx_device_printer far_data gs_lj250_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:48:34: note: ‘gs_lj250_device’ was previously declared here
# 309| device_(gs_lips4_device)
# 310| device_(gs_lips4v_device)
# 311|-> device_(gs_lj250_device)
# 312| device_(gs_lj3100sw_device)
# 313| device_(gs_lj4dith_device)
Error: COMPILER_WARNING (CWE-704): [#def2157]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:312:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj3100sw_device’ does not match original declaration
# 312 | device_(gs_lj3100sw_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevl31s.c:92:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 92 | gx_device_printer far_data gs_lj3100sw_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevl31s.c:92:28: note: ‘gs_lj3100sw_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevl31s.c:92:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 310| device_(gs_lips4v_device)
# 311| device_(gs_lj250_device)
# 312|-> device_(gs_lj3100sw_device)
# 313| device_(gs_lj4dith_device)
# 314| device_(gs_lj4dithp_device)
Error: COMPILER_WARNING (CWE-704): [#def2158]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:313:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dith_device’ does not match original declaration
# 313 | device_(gs_lj4dith_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:629:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 629 | gx_device_cdj far_data gs_lj4dith_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:629:24: note: ‘gs_lj4dith_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:629:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 311| device_(gs_lj250_device)
# 312| device_(gs_lj3100sw_device)
# 313|-> device_(gs_lj4dith_device)
# 314| device_(gs_lj4dithp_device)
# 315| device_(gs_lj5gray_device)
Error: COMPILER_WARNING (CWE-704): [#def2159]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:314:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj4dithp_device’ does not match original declaration
# 314 | device_(gs_lj4dithp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:633:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 633 | gx_device_cdj far_data gs_lj4dithp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:633:24: note: ‘gs_lj4dithp_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:633:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 312| device_(gs_lj3100sw_device)
# 313| device_(gs_lj4dith_device)
# 314|-> device_(gs_lj4dithp_device)
# 315| device_(gs_lj5gray_device)
# 316| device_(gs_lj5mono_device)
Error: COMPILER_WARNING (CWE-704): [#def2160]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:315:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5gray_device’ does not match original declaration
# 315 | device_(gs_lj5gray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlj56.c:73:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 73 | const gx_device_printer gs_lj5gray_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlj56.c:73:25: note: ‘gs_lj5gray_device’ was previously declared here
# 313| device_(gs_lj4dith_device)
# 314| device_(gs_lj4dithp_device)
# 315|-> device_(gs_lj5gray_device)
# 316| device_(gs_lj5mono_device)
# 317| #endif
Error: COMPILER_WARNING (CWE-704): [#def2161]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:316:1: warning[-Wlto-type-mismatch]: type of ‘gs_lj5mono_device’ does not match original declaration
# 316 | device_(gs_lj5mono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlj56.c:54:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 54 | const gx_device_printer gs_lj5mono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlj56.c:54:25: note: ‘gs_lj5mono_device’ was previously declared here
# 314| device_(gs_lj4dithp_device)
# 315| device_(gs_lj5gray_device)
# 316|-> device_(gs_lj5mono_device)
# 317| #endif
# 318| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2162]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:319:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet2p_device’ does not match original declaration
# 319 | device2_(gs_ljet2p_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:192:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 192 | const gx_device_hpjet gs_ljet2p_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:192:23: note: ‘gs_ljet2p_device’ was previously declared here
# 317| #endif
# 318| #ifdef device2_
# 319|-> device2_(gs_ljet2p_device)
# 320| device2_(gs_ljet3_device)
# 321| device2_(gs_ljet3d_device)
Error: COMPILER_WARNING (CWE-704): [#def2163]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:320:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3_device’ does not match original declaration
# 320 | device2_(gs_ljet3_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:199:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 199 | const gx_device_hpjet gs_ljet3_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:199:23: note: ‘gs_ljet3_device’ was previously declared here
# 318| #ifdef device2_
# 319| device2_(gs_ljet2p_device)
# 320|-> device2_(gs_ljet3_device)
# 321| device2_(gs_ljet3d_device)
# 322| device2_(gs_ljet4_device)
Error: COMPILER_WARNING (CWE-704): [#def2164]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:321:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet3d_device’ does not match original declaration
# 321 | device2_(gs_ljet3d_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:206:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 206 | const gx_device_hpjet gs_ljet3d_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:206:23: note: ‘gs_ljet3d_device’ was previously declared here
# 319| device2_(gs_ljet2p_device)
# 320| device2_(gs_ljet3_device)
# 321|-> device2_(gs_ljet3d_device)
# 322| device2_(gs_ljet4_device)
# 323| device2_(gs_ljet4d_device)
Error: COMPILER_WARNING (CWE-704): [#def2165]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:322:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4_device’ does not match original declaration
# 322 | device2_(gs_ljet4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:213:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 213 | const gx_device_hpjet gs_ljet4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:213:23: note: ‘gs_ljet4_device’ was previously declared here
# 320| device2_(gs_ljet3_device)
# 321| device2_(gs_ljet3d_device)
# 322|-> device2_(gs_ljet4_device)
# 323| device2_(gs_ljet4d_device)
# 324| #endif
Error: COMPILER_WARNING (CWE-704): [#def2166]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:323:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4d_device’ does not match original declaration
# 323 | device2_(gs_ljet4d_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:220:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 220 | const gx_device_hpjet gs_ljet4d_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:220:23: note: ‘gs_ljet4d_device’ was previously declared here
# 321| device2_(gs_ljet3d_device)
# 322| device2_(gs_ljet4_device)
# 323|-> device2_(gs_ljet4d_device)
# 324| #endif
# 325| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2167]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:326:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljet4pjl_device’ does not match original declaration
# 326 | device_(gs_ljet4pjl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:241:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 241 | const gx_device_printer gs_ljet4pjl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:241:25: note: ‘gs_ljet4pjl_device’ was previously declared here
# 324| #endif
# 325| #ifdef device_
# 326|-> device_(gs_ljet4pjl_device)
# 327| #endif
# 328| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2168]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:329:1: warning[-Wlto-type-mismatch]: type of ‘gs_ljetplus_device’ does not match original declaration
# 329 | device2_(gs_ljetplus_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:185:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 185 | const gx_device_hpjet gs_ljetplus_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:185:23: note: ‘gs_ljetplus_device’ was previously declared here
# 327| #endif
# 328| #ifdef device2_
# 329|-> device2_(gs_ljetplus_device)
# 330| #endif
# 331| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2169]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:332:1: warning[-Wlto-type-mismatch]: type of ‘gs_ln03_device’ does not match original declaration
# 332 | device_(gs_ln03_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:67:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 67 | gx_device_printer gs_ln03_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:67:19: note: ‘gs_ln03_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevln03.c:67:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 330| #endif
# 331| #ifdef device_
# 332|-> device_(gs_ln03_device)
# 333| device_(gs_lp1800_device)
# 334| device_(gs_lp1900_device)
Error: COMPILER_WARNING (CWE-704): [#def2170]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:333:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1800_device’ does not match original declaration
# 333 | device_(gs_lp1800_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:254:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 254 | gx_device_escv far_data gs_lp1800_device = esmv_device_body("lp1800");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:254:25: note: ‘gs_lp1800_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:254:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 331| #ifdef device_
# 332| device_(gs_ln03_device)
# 333|-> device_(gs_lp1800_device)
# 334| device_(gs_lp1900_device)
# 335| device_(gs_lp2000_device)
Error: COMPILER_WARNING (CWE-704): [#def2171]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:334:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp1900_device’ does not match original declaration
# 334 | device_(gs_lp1900_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:255:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 255 | gx_device_escv far_data gs_lp1900_device = esmv_device_body("lp1900");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:255:25: note: ‘gs_lp1900_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:255:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 332| device_(gs_ln03_device)
# 333| device_(gs_lp1800_device)
# 334|-> device_(gs_lp1900_device)
# 335| device_(gs_lp2000_device)
# 336| device_(gs_lp2200_device)
Error: COMPILER_WARNING (CWE-704): [#def2172]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:335:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2000_device’ does not match original declaration
# 335 | device_(gs_lp2000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:66:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
# 66 | gx_device_lprn far_data gs_lp2000_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:66:25: note: ‘gs_lp2000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevespg.c:66:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 333| device_(gs_lp1800_device)
# 334| device_(gs_lp1900_device)
# 335|-> device_(gs_lp2000_device)
# 336| device_(gs_lp2200_device)
# 337| device_(gs_lp2400_device)
Error: COMPILER_WARNING (CWE-704): [#def2173]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:336:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2200_device’ does not match original declaration
# 336 | device_(gs_lp2200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:256:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 256 | gx_device_escv far_data gs_lp2200_device = esmv_device_body("lp2200");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:256:25: note: ‘gs_lp2200_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:256:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 334| device_(gs_lp1900_device)
# 335| device_(gs_lp2000_device)
# 336|-> device_(gs_lp2200_device)
# 337| device_(gs_lp2400_device)
# 338| device_(gs_lp2500_device)
Error: COMPILER_WARNING (CWE-704): [#def2174]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:337:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2400_device’ does not match original declaration
# 337 | device_(gs_lp2400_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:257:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 257 | gx_device_escv far_data gs_lp2400_device = esmv_device_body("lp2400");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:257:25: note: ‘gs_lp2400_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:257:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 335| device_(gs_lp2000_device)
# 336| device_(gs_lp2200_device)
# 337|-> device_(gs_lp2400_device)
# 338| device_(gs_lp2500_device)
# 339| #endif
Error: COMPILER_WARNING (CWE-704): [#def2175]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:338:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2500_device’ does not match original declaration
# 338 | device_(gs_lp2500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:258:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 258 | gx_device_escv far_data gs_lp2500_device = esmv_device_body("lp2500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:258:25: note: ‘gs_lp2500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:258:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 336| device_(gs_lp2200_device)
# 337| device_(gs_lp2400_device)
# 338|-> device_(gs_lp2500_device)
# 339| #endif
# 340| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2176]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:341:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp2563_device’ does not match original declaration
# 341 | device2_(gs_lp2563_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:227:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 227 | const gx_device_hpjet gs_lp2563_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:227:23: note: ‘gs_lp2563_device’ was previously declared here
# 339| #endif
# 340| #ifdef device2_
# 341|-> device2_(gs_lp2563_device)
# 342| #endif
# 343| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2177]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:344:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp3000c_device’ does not match original declaration
# 344 | device_(gs_lp3000c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:287:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 287 | gx_device_escv far_data gs_lp3000c_device = escv_device_body("lp3000c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:287:25: note: ‘gs_lp3000c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:287:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 342| #endif
# 343| #ifdef device_
# 344|-> device_(gs_lp3000c_device)
# 345| device_(gs_lp7500_device)
# 346| device_(gs_lp7700_device)
Error: COMPILER_WARNING (CWE-704): [#def2178]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:345:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7500_device’ does not match original declaration
# 345 | device_(gs_lp7500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:259:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 259 | gx_device_escv far_data gs_lp7500_device = esmv_device_body("lp7500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:259:25: note: ‘gs_lp7500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:259:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 343| #ifdef device_
# 344| device_(gs_lp3000c_device)
# 345|-> device_(gs_lp7500_device)
# 346| device_(gs_lp7700_device)
# 347| device_(gs_lp7900_device)
Error: COMPILER_WARNING (CWE-704): [#def2179]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:346:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7700_device’ does not match original declaration
# 346 | device_(gs_lp7700_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:260:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 260 | gx_device_escv far_data gs_lp7700_device = esmv_device_body("lp7700");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:260:25: note: ‘gs_lp7700_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:260:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 344| device_(gs_lp3000c_device)
# 345| device_(gs_lp7500_device)
# 346|-> device_(gs_lp7700_device)
# 347| device_(gs_lp7900_device)
# 348| device_(gs_lp8000_device)
Error: COMPILER_WARNING (CWE-704): [#def2180]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:347:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp7900_device’ does not match original declaration
# 347 | device_(gs_lp7900_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:261:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 261 | gx_device_escv far_data gs_lp7900_device = esmv_device_body("lp7900");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:261:25: note: ‘gs_lp7900_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:261:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 345| device_(gs_lp7500_device)
# 346| device_(gs_lp7700_device)
# 347|-> device_(gs_lp7900_device)
# 348| device_(gs_lp8000_device)
# 349| device_(gs_lp8000c_device)
Error: COMPILER_WARNING (CWE-704): [#def2181]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:348:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000_device’ does not match original declaration
# 348 | device_(gs_lp8000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlp8k.c:172:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 172 | gx_device_printer far_data gs_lp8000_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlp8k.c:172:28: note: ‘gs_lp8000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlp8k.c:172:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 346| device_(gs_lp7700_device)
# 347| device_(gs_lp7900_device)
# 348|-> device_(gs_lp8000_device)
# 349| device_(gs_lp8000c_device)
# 350| device_(gs_lp8100_device)
Error: COMPILER_WARNING (CWE-704): [#def2182]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:349:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8000c_device’ does not match original declaration
# 349 | device_(gs_lp8000c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:288:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 288 | gx_device_escv far_data gs_lp8000c_device = escv_device_body("lp8000c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:288:25: note: ‘gs_lp8000c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:288:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 347| device_(gs_lp7900_device)
# 348| device_(gs_lp8000_device)
# 349|-> device_(gs_lp8000c_device)
# 350| device_(gs_lp8100_device)
# 351| device_(gs_lp8200c_device)
Error: COMPILER_WARNING (CWE-704): [#def2183]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:350:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8100_device’ does not match original declaration
# 350 | device_(gs_lp8100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:262:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 262 | gx_device_escv far_data gs_lp8100_device = esmv_device_body("lp8100");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:262:25: note: ‘gs_lp8100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:262:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 348| device_(gs_lp8000_device)
# 349| device_(gs_lp8000c_device)
# 350|-> device_(gs_lp8100_device)
# 351| device_(gs_lp8200c_device)
# 352| device_(gs_lp8300c_device)
Error: COMPILER_WARNING (CWE-704): [#def2184]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:351:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8200c_device’ does not match original declaration
# 351 | device_(gs_lp8200c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:289:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 289 | gx_device_escv far_data gs_lp8200c_device = escv_device_body("lp8200c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:289:25: note: ‘gs_lp8200c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:289:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 349| device_(gs_lp8000c_device)
# 350| device_(gs_lp8100_device)
# 351|-> device_(gs_lp8200c_device)
# 352| device_(gs_lp8300c_device)
# 353| device_(gs_lp8300f_device)
Error: COMPILER_WARNING (CWE-704): [#def2185]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:352:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300c_device’ does not match original declaration
# 352 | device_(gs_lp8300c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:290:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 290 | gx_device_escv far_data gs_lp8300c_device = escv_device_body("lp8300c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:290:25: note: ‘gs_lp8300c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:290:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 350| device_(gs_lp8100_device)
# 351| device_(gs_lp8200c_device)
# 352|-> device_(gs_lp8300c_device)
# 353| device_(gs_lp8300f_device)
# 354| device_(gs_lp8400f_device)
Error: COMPILER_WARNING (CWE-704): [#def2186]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:353:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8300f_device’ does not match original declaration
# 353 | device_(gs_lp8300f_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:263:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 263 | gx_device_escv far_data gs_lp8300f_device = esmv_device_body("lp8300f");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:263:25: note: ‘gs_lp8300f_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:263:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 351| device_(gs_lp8200c_device)
# 352| device_(gs_lp8300c_device)
# 353|-> device_(gs_lp8300f_device)
# 354| device_(gs_lp8400f_device)
# 355| device_(gs_lp8500c_device)
Error: COMPILER_WARNING (CWE-704): [#def2187]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:354:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8400f_device’ does not match original declaration
# 354 | device_(gs_lp8400f_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:264:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 264 | gx_device_escv far_data gs_lp8400f_device = esmv_device_body("lp8400f");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:264:25: note: ‘gs_lp8400f_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:264:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 352| device_(gs_lp8300c_device)
# 353| device_(gs_lp8300f_device)
# 354|-> device_(gs_lp8400f_device)
# 355| device_(gs_lp8500c_device)
# 356| device_(gs_lp8600_device)
Error: COMPILER_WARNING (CWE-704): [#def2188]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:355:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8500c_device’ does not match original declaration
# 355 | device_(gs_lp8500c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:291:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 291 | gx_device_escv far_data gs_lp8500c_device = escv_device_body("lp8500c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:291:25: note: ‘gs_lp8500c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:291:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 353| device_(gs_lp8300f_device)
# 354| device_(gs_lp8400f_device)
# 355|-> device_(gs_lp8500c_device)
# 356| device_(gs_lp8600_device)
# 357| device_(gs_lp8600f_device)
Error: COMPILER_WARNING (CWE-704): [#def2189]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:356:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600_device’ does not match original declaration
# 356 | device_(gs_lp8600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:265:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 265 | gx_device_escv far_data gs_lp8600_device = esmv_device_body("lp8600");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:265:25: note: ‘gs_lp8600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:265:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 354| device_(gs_lp8400f_device)
# 355| device_(gs_lp8500c_device)
# 356|-> device_(gs_lp8600_device)
# 357| device_(gs_lp8600f_device)
# 358| device_(gs_lp8700_device)
Error: COMPILER_WARNING (CWE-704): [#def2190]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:357:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8600f_device’ does not match original declaration
# 357 | device_(gs_lp8600f_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:266:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 266 | gx_device_escv far_data gs_lp8600f_device = esmv_device_body("lp8600f");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:266:25: note: ‘gs_lp8600f_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:266:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 355| device_(gs_lp8500c_device)
# 356| device_(gs_lp8600_device)
# 357|-> device_(gs_lp8600f_device)
# 358| device_(gs_lp8700_device)
# 359| device_(gs_lp8800c_device)
Error: COMPILER_WARNING (CWE-704): [#def2191]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:358:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8700_device’ does not match original declaration
# 358 | device_(gs_lp8700_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:267:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 267 | gx_device_escv far_data gs_lp8700_device = esmv_device_body("lp8700");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:267:25: note: ‘gs_lp8700_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:267:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 356| device_(gs_lp8600_device)
# 357| device_(gs_lp8600f_device)
# 358|-> device_(gs_lp8700_device)
# 359| device_(gs_lp8800c_device)
# 360| device_(gs_lp8900_device)
Error: COMPILER_WARNING (CWE-704): [#def2192]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:359:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8800c_device’ does not match original declaration
# 359 | device_(gs_lp8800c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:292:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 292 | gx_device_escv far_data gs_lp8800c_device = escv_device_body("lp8800c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:292:25: note: ‘gs_lp8800c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:292:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 357| device_(gs_lp8600f_device)
# 358| device_(gs_lp8700_device)
# 359|-> device_(gs_lp8800c_device)
# 360| device_(gs_lp8900_device)
# 361| device_(gs_lp9000b_device)
Error: COMPILER_WARNING (CWE-704): [#def2193]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:360:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp8900_device’ does not match original declaration
# 360 | device_(gs_lp8900_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:268:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 268 | gx_device_escv far_data gs_lp8900_device = esmv_device_body("lp8900");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:268:25: note: ‘gs_lp8900_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:268:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 358| device_(gs_lp8700_device)
# 359| device_(gs_lp8800c_device)
# 360|-> device_(gs_lp8900_device)
# 361| device_(gs_lp9000b_device)
# 362| device_(gs_lp9000c_device)
Error: COMPILER_WARNING (CWE-704): [#def2194]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:361:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000b_device’ does not match original declaration
# 361 | device_(gs_lp9000b_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:269:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 269 | gx_device_escv far_data gs_lp9000b_device = esmv_device_body("lp9000b");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:269:25: note: ‘gs_lp9000b_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:269:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 359| device_(gs_lp8800c_device)
# 360| device_(gs_lp8900_device)
# 361|-> device_(gs_lp9000b_device)
# 362| device_(gs_lp9000c_device)
# 363| device_(gs_lp9100_device)
Error: COMPILER_WARNING (CWE-704): [#def2195]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:362:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9000c_device’ does not match original declaration
# 362 | device_(gs_lp9000c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:293:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 293 | gx_device_escv far_data gs_lp9000c_device = escv_device_body("lp9000c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:293:25: note: ‘gs_lp9000c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:293:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 360| device_(gs_lp8900_device)
# 361| device_(gs_lp9000b_device)
# 362|-> device_(gs_lp9000c_device)
# 363| device_(gs_lp9100_device)
# 364| device_(gs_lp9200b_device)
Error: COMPILER_WARNING (CWE-704): [#def2196]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:363:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9100_device’ does not match original declaration
# 363 | device_(gs_lp9100_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:270:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 270 | gx_device_escv far_data gs_lp9100_device = esmv_device_body("lp9100");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:270:25: note: ‘gs_lp9100_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:270:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 361| device_(gs_lp9000b_device)
# 362| device_(gs_lp9000c_device)
# 363|-> device_(gs_lp9100_device)
# 364| device_(gs_lp9200b_device)
# 365| device_(gs_lp9200c_device)
Error: COMPILER_WARNING (CWE-704): [#def2197]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:364:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200b_device’ does not match original declaration
# 364 | device_(gs_lp9200b_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:271:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 271 | gx_device_escv far_data gs_lp9200b_device = esmv_device_body("lp9200b");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:271:25: note: ‘gs_lp9200b_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:271:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 362| device_(gs_lp9000c_device)
# 363| device_(gs_lp9100_device)
# 364|-> device_(gs_lp9200b_device)
# 365| device_(gs_lp9200c_device)
# 366| device_(gs_lp9300_device)
Error: COMPILER_WARNING (CWE-704): [#def2198]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:365:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9200c_device’ does not match original declaration
# 365 | device_(gs_lp9200c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:294:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 294 | gx_device_escv far_data gs_lp9200c_device = escv_device_body("lp9200c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:294:25: note: ‘gs_lp9200c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:294:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 363| device_(gs_lp9100_device)
# 364| device_(gs_lp9200b_device)
# 365|-> device_(gs_lp9200c_device)
# 366| device_(gs_lp9300_device)
# 367| device_(gs_lp9400_device)
Error: COMPILER_WARNING (CWE-704): [#def2199]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:366:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9300_device’ does not match original declaration
# 366 | device_(gs_lp9300_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:272:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 272 | gx_device_escv far_data gs_lp9300_device = esmv_device_body("lp9300");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:272:25: note: ‘gs_lp9300_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:272:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 364| device_(gs_lp9200b_device)
# 365| device_(gs_lp9200c_device)
# 366|-> device_(gs_lp9300_device)
# 367| device_(gs_lp9400_device)
# 368| device_(gs_lp9500c_device)
Error: COMPILER_WARNING (CWE-704): [#def2200]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:367:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9400_device’ does not match original declaration
# 367 | device_(gs_lp9400_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:273:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 273 | gx_device_escv far_data gs_lp9400_device = esmv_device_body("lp9400");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:273:25: note: ‘gs_lp9400_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:273:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 365| device_(gs_lp9200c_device)
# 366| device_(gs_lp9300_device)
# 367|-> device_(gs_lp9400_device)
# 368| device_(gs_lp9500c_device)
# 369| device_(gs_lp9600_device)
Error: COMPILER_WARNING (CWE-704): [#def2201]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:368:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9500c_device’ does not match original declaration
# 368 | device_(gs_lp9500c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:295:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 295 | gx_device_escv far_data gs_lp9500c_device = escv_device_body("lp9500c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:295:25: note: ‘gs_lp9500c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:295:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 366| device_(gs_lp9300_device)
# 367| device_(gs_lp9400_device)
# 368|-> device_(gs_lp9500c_device)
# 369| device_(gs_lp9600_device)
# 370| device_(gs_lp9600s_device)
Error: COMPILER_WARNING (CWE-704): [#def2202]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:369:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600_device’ does not match original declaration
# 369 | device_(gs_lp9600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:274:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 274 | gx_device_escv far_data gs_lp9600_device = esmv_device_body("lp9600");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:274:25: note: ‘gs_lp9600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:274:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 367| device_(gs_lp9400_device)
# 368| device_(gs_lp9500c_device)
# 369|-> device_(gs_lp9600_device)
# 370| device_(gs_lp9600s_device)
# 371| device_(gs_lp9800c_device)
Error: COMPILER_WARNING (CWE-704): [#def2203]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:370:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9600s_device’ does not match original declaration
# 370 | device_(gs_lp9600s_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:275:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 275 | gx_device_escv far_data gs_lp9600s_device = esmv_device_body("lp9600s");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:275:25: note: ‘gs_lp9600s_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:275:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 368| device_(gs_lp9500c_device)
# 369| device_(gs_lp9600_device)
# 370|-> device_(gs_lp9600s_device)
# 371| device_(gs_lp9800c_device)
# 372| device_(gs_lps4500_device)
Error: COMPILER_WARNING (CWE-704): [#def2204]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:371:1: warning[-Wlto-type-mismatch]: type of ‘gs_lp9800c_device’ does not match original declaration
# 371 | device_(gs_lp9800c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:296:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 296 | gx_device_escv far_data gs_lp9800c_device = escv_device_body("lp9800c");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:296:25: note: ‘gs_lp9800c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:296:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 369| device_(gs_lp9600_device)
# 370| device_(gs_lp9600s_device)
# 371|-> device_(gs_lp9800c_device)
# 372| device_(gs_lps4500_device)
# 373| device_(gs_lps6500_device)
Error: COMPILER_WARNING (CWE-704): [#def2205]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:372:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps4500_device’ does not match original declaration
# 372 | device_(gs_lps4500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:276:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 276 | gx_device_escv far_data gs_lps4500_device = esmv_device_body("lps4500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:276:25: note: ‘gs_lps4500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:276:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 370| device_(gs_lp9600s_device)
# 371| device_(gs_lp9800c_device)
# 372|-> device_(gs_lps4500_device)
# 373| device_(gs_lps6500_device)
# 374| device_(gs_lq850_device)
Error: COMPILER_WARNING (CWE-704): [#def2206]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:373:1: warning[-Wlto-type-mismatch]: type of ‘gs_lps6500_device’ does not match original declaration
# 373 | device_(gs_lps6500_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:297:25: note: type ‘struct gx_device_escv’ should match type ‘struct gx_device’
# 297 | gx_device_escv far_data gs_lps6500_device = escv_device_body("lps6500");
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:297:25: note: ‘gs_lps6500_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/eplaser/gdevescv.c:297:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 371| device_(gs_lp9800c_device)
# 372| device_(gs_lps4500_device)
# 373|-> device_(gs_lps6500_device)
# 374| device_(gs_lq850_device)
# 375| device_(gs_lxm3200_device)
Error: COMPILER_WARNING (CWE-704): [#def2207]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:374:1: warning[-Wlto-type-mismatch]: type of ‘gs_lq850_device’ does not match original declaration
# 374 | device_(gs_lq850_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdm24.c:38:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 38 | const gx_device_printer gs_lq850_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdm24.c:38:25: note: ‘gs_lq850_device’ was previously declared here
# 372| device_(gs_lps4500_device)
# 373| device_(gs_lps6500_device)
# 374|-> device_(gs_lq850_device)
# 375| device_(gs_lxm3200_device)
# 376| device_(gs_lxm5700m_device)
Error: COMPILER_WARNING (CWE-704): [#def2208]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:375:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm3200_device’ does not match original declaration
# 375 | device_(gs_lxm3200_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:318:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 318 | lxm_device far_data gs_lxm3200_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:318:21: note: ‘gs_lxm3200_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevlx32.c:318:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 373| device_(gs_lps6500_device)
# 374| device_(gs_lq850_device)
# 375|-> device_(gs_lxm3200_device)
# 376| device_(gs_lxm5700m_device)
# 377| device_(gs_m8510_device)
Error: COMPILER_WARNING (CWE-704): [#def2209]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:376:1: warning[-Wlto-type-mismatch]: type of ‘gs_lxm5700m_device’ does not match original declaration
# 376 | device_(gs_lxm5700m_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlxm.c:62:21: note: type ‘struct lxm_device’ should match type ‘struct gx_device’
# 62 | lxm_device far_data gs_lxm5700m_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlxm.c:62:21: note: ‘gs_lxm5700m_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevlxm.c:62:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 374| device_(gs_lq850_device)
# 375| device_(gs_lxm3200_device)
# 376|-> device_(gs_lxm5700m_device)
# 377| device_(gs_m8510_device)
# 378| device_(gs_md1xMono_device)
Error: COMPILER_WARNING (CWE-704): [#def2210]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:377:1: warning[-Wlto-type-mismatch]: type of ‘gs_m8510_device’ does not match original declaration
# 377 | device_(gs_m8510_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev8510.c:26:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 26 | const gx_device_printer far_data gs_m8510_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev8510.c:26:34: note: ‘gs_m8510_device’ was previously declared here
# 375| device_(gs_lxm3200_device)
# 376| device_(gs_lxm5700m_device)
# 377|-> device_(gs_m8510_device)
# 378| device_(gs_md1xMono_device)
# 379| device_(gs_md2k_device)
Error: COMPILER_WARNING (CWE-704): [#def2211]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:378:1: warning[-Wlto-type-mismatch]: type of ‘gs_md1xMono_device’ does not match original declaration
# 378 | device_(gs_md1xMono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:86:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 86 | gx_device_printer far_data gs_md1xMono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:86:28: note: ‘gs_md1xMono_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:86:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 376| device_(gs_lxm5700m_device)
# 377| device_(gs_m8510_device)
# 378|-> device_(gs_md1xMono_device)
# 379| device_(gs_md2k_device)
# 380| device_(gs_md50Eco_device)
Error: COMPILER_WARNING (CWE-704): [#def2212]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:379:1: warning[-Wlto-type-mismatch]: type of ‘gs_md2k_device’ does not match original declaration
# 379 | device_(gs_md2k_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:95:25: note: type ‘struct gx_device_alps’ should match type ‘struct gx_device’
# 95 | gx_device_alps far_data gs_md2k_device = alps_device("md2k", md2k_print_page);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:95:25: note: ‘gs_md2k_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:95:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 377| device_(gs_m8510_device)
# 378| device_(gs_md1xMono_device)
# 379|-> device_(gs_md2k_device)
# 380| device_(gs_md50Eco_device)
# 381| device_(gs_md50Mono_device)
Error: COMPILER_WARNING (CWE-704): [#def2213]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:380:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Eco_device’ does not match original declaration
# 380 | device_(gs_md50Eco_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:77:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 77 | gx_device_printer far_data gs_md50Eco_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:77:28: note: ‘gs_md50Eco_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:77:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 378| device_(gs_md1xMono_device)
# 379| device_(gs_md2k_device)
# 380|-> device_(gs_md50Eco_device)
# 381| device_(gs_md50Mono_device)
# 382| device_(gs_md5k_device)
Error: COMPILER_WARNING (CWE-704): [#def2214]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:381:1: warning[-Wlto-type-mismatch]: type of ‘gs_md50Mono_device’ does not match original declaration
# 381 | device_(gs_md50Mono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:68:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 68 | gx_device_printer far_data gs_md50Mono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:68:28: note: ‘gs_md50Mono_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevalps.c:68:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 379| device_(gs_md2k_device)
# 380| device_(gs_md50Eco_device)
# 381|-> device_(gs_md50Mono_device)
# 382| device_(gs_md5k_device)
# 383| device_(gs_mj500c_device)
Error: COMPILER_WARNING (CWE-704): [#def2215]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:382:1: warning[-Wlto-type-mismatch]: type of ‘gs_md5k_device’ does not match original declaration
# 382 | device_(gs_md5k_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:96:25: note: type ‘struct gx_device_alps’ should match type ‘struct gx_device’
# 96 | gx_device_alps far_data gs_md5k_device = alps_device("md5k", md5k_print_page);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:96:25: note: ‘gs_md5k_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevmd2k.c:96:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 380| device_(gs_md50Eco_device)
# 381| device_(gs_md50Mono_device)
# 382|-> device_(gs_md5k_device)
# 383| device_(gs_mj500c_device)
# 384| device_(gs_mj6000c_device)
Error: COMPILER_WARNING (CWE-704): [#def2216]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:383:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj500c_device’ does not match original declaration
# 383 | device_(gs_mj500c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:265:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
# 265 | gx_device_mj far_data gs_mj500c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:265:23: note: ‘gs_mj500c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:265:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 381| device_(gs_md50Mono_device)
# 382| device_(gs_md5k_device)
# 383|-> device_(gs_mj500c_device)
# 384| device_(gs_mj6000c_device)
# 385| device_(gs_mj700v2c_device)
Error: COMPILER_WARNING (CWE-704): [#def2217]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:384:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj6000c_device’ does not match original declaration
# 384 | device_(gs_mj6000c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:270:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
# 270 | gx_device_mj far_data gs_mj6000c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:270:23: note: ‘gs_mj6000c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:270:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 382| device_(gs_md5k_device)
# 383| device_(gs_mj500c_device)
# 384|-> device_(gs_mj6000c_device)
# 385| device_(gs_mj700v2c_device)
# 386| device_(gs_mj8000c_device)
Error: COMPILER_WARNING (CWE-704): [#def2218]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:385:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj700v2c_device’ does not match original declaration
# 385 | device_(gs_mj700v2c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:259:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
# 259 | gx_device_mj far_data gs_mj700v2c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:259:23: note: ‘gs_mj700v2c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:259:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 383| device_(gs_mj500c_device)
# 384| device_(gs_mj6000c_device)
# 385|-> device_(gs_mj700v2c_device)
# 386| device_(gs_mj8000c_device)
# 387| device_(gs_ml600_device)
Error: COMPILER_WARNING (CWE-704): [#def2219]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:386:1: warning[-Wlto-type-mismatch]: type of ‘gs_mj8000c_device’ does not match original declaration
# 386 | device_(gs_mj8000c_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:275:23: note: type ‘struct gx_device_mj’ should match type ‘struct gx_device’
# 275 | gx_device_mj far_data gs_mj8000c_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:275:23: note: ‘gs_mj8000c_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevmjc.c:275:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 384| device_(gs_mj6000c_device)
# 385| device_(gs_mj700v2c_device)
# 386|-> device_(gs_mj8000c_device)
# 387| device_(gs_ml600_device)
# 388| device_(gs_necp6_device)
Error: COMPILER_WARNING (CWE-704): [#def2220]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:387:1: warning[-Wlto-type-mismatch]: type of ‘gs_ml600_device’ does not match original declaration
# 387 | device_(gs_ml600_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevml6.c:44:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 44 | gx_device_printer gs_ml600_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevml6.c:44:19: note: ‘gs_ml600_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevml6.c:44:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 385| device_(gs_mj700v2c_device)
# 386| device_(gs_mj8000c_device)
# 387|-> device_(gs_ml600_device)
# 388| device_(gs_necp6_device)
# 389| device_(gs_npdl_device)
Error: COMPILER_WARNING (CWE-704): [#def2221]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:388:1: warning[-Wlto-type-mismatch]: type of ‘gs_necp6_device’ does not match original declaration
# 388 | device_(gs_necp6_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdm24.c:27:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 27 | const gx_device_printer far_data gs_necp6_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdm24.c:27:34: note: ‘gs_necp6_device’ was previously declared here
# 386| device_(gs_mj8000c_device)
# 387| device_(gs_ml600_device)
# 388|-> device_(gs_necp6_device)
# 389| device_(gs_npdl_device)
# 390| #endif
Error: COMPILER_WARNING (CWE-704): [#def2222]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:389:1: warning[-Wlto-type-mismatch]: type of ‘gs_npdl_device’ does not match original declaration
# 389 | device_(gs_npdl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevnpdl.c:132:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
# 132 | gx_device_lprn far_data gs_npdl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevnpdl.c:132:25: note: ‘gs_npdl_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevnpdl.c:132:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 387| device_(gs_ml600_device)
# 388| device_(gs_necp6_device)
# 389|-> device_(gs_npdl_device)
# 390| #endif
# 391| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2223]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:392:1: warning[-Wlto-type-mismatch]: type of ‘gs_oce9050_device’ does not match original declaration
# 392 | device2_(gs_oce9050_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:234:23: note: type ‘const struct gx_device_hpjet’ should match type ‘const struct gx_device’
# 234 | const gx_device_hpjet gs_oce9050_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevdjet.c:234:23: note: ‘gs_oce9050_device’ was previously declared here
# 390| #endif
# 391| #ifdef device2_
# 392|-> device2_(gs_oce9050_device)
# 393| #endif
# 394| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2224]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:395:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki182_device’ does not match original declaration
# 395 | device_(gs_oki182_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevo182.c:67:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 67 | const gx_device_printer far_data gs_oki182_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevo182.c:67:34: note: ‘gs_oki182_device’ was previously declared here
# 393| #endif
# 394| #ifdef device_
# 395|-> device_(gs_oki182_device)
# 396| device_(gs_oki4w_device)
# 397| device_(gs_okiibm_device)
Error: COMPILER_WARNING (CWE-704): [#def2225]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:396:1: warning[-Wlto-type-mismatch]: type of ‘gs_oki4w_device’ does not match original declaration
# 396 | device_(gs_oki4w_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevop4w.c:106:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 106 | gx_device_printer far_data gs_oki4w_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevop4w.c:106:28: note: ‘gs_oki4w_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevop4w.c:106:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 394| #ifdef device_
# 395| device_(gs_oki182_device)
# 396|-> device_(gs_oki4w_device)
# 397| device_(gs_okiibm_device)
# 398| device_(gs_oprp_device)
Error: COMPILER_WARNING (CWE-704): [#def2226]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:397:1: warning[-Wlto-type-mismatch]: type of ‘gs_okiibm_device’ does not match original declaration
# 397 | device_(gs_okiibm_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevokii.c:77:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 77 | const gx_device_printer far_data gs_okiibm_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevokii.c:77:34: note: ‘gs_okiibm_device’ was previously declared here
# 395| device_(gs_oki182_device)
# 396| device_(gs_oki4w_device)
# 397|-> device_(gs_okiibm_device)
# 398| device_(gs_oprp_device)
# 399| device_(gs_opvp_device)
Error: COMPILER_WARNING (CWE-704): [#def2227]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:398:1: warning[-Wlto-type-mismatch]: type of ‘gs_oprp_device’ does not match original declaration
# 398 | device_(gs_oprp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:503:22: note: type ‘const struct gx_device_oprp’ should match type ‘struct gx_device’
# 503 | const gx_device_oprp gs_oprp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:503:22: note: ‘gs_oprp_device’ was previously declared here
# 396| device_(gs_oki4w_device)
# 397| device_(gs_okiibm_device)
# 398|-> device_(gs_oprp_device)
# 399| device_(gs_opvp_device)
# 400| device_(gs_paintjet_device)
Error: COMPILER_WARNING (CWE-704): [#def2228]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:399:1: warning[-Wlto-type-mismatch]: type of ‘gs_opvp_device’ does not match original declaration
# 399 | device_(gs_opvp_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:458:33: note: type ‘const struct gx_device_opvp’ should match type ‘struct gx_device’
# 458 | const gx_device_opvp gs_opvp_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/opvp/gdevopvp.c:458:33: note: ‘gs_opvp_device’ was previously declared here
# 397| device_(gs_okiibm_device)
# 398| device_(gs_oprp_device)
# 399|-> device_(gs_opvp_device)
# 400| device_(gs_paintjet_device)
# 401| device_(gs_pcl3_device)
Error: COMPILER_WARNING (CWE-704): [#def2229]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:400:1: warning[-Wlto-type-mismatch]: type of ‘gs_paintjet_device’ does not match original declaration
# 400 | device_(gs_paintjet_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:55:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 55 | const gx_device_printer far_data gs_paintjet_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:55:34: note: ‘gs_paintjet_device’ was previously declared here
# 398| device_(gs_oprp_device)
# 399| device_(gs_opvp_device)
# 400|-> device_(gs_paintjet_device)
# 401| device_(gs_pcl3_device)
# 402| device_(gs_photoex_device)
Error: COMPILER_WARNING (CWE-704): [#def2230]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:401:1: warning[-Wlto-type-mismatch]: type of ‘gs_pcl3_device’ does not match original declaration
# 401 | device_(gs_pcl3_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:162:1: note: type ‘struct pcl3_Device’ should match type ‘struct gx_device’
# 162 | pcl3_device_instance(pcl3, pcl3_generic_new);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:162:1: note: ‘gs_pcl3_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/pcl3/src/gdevpcl3.c:162:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 399| device_(gs_opvp_device)
# 400| device_(gs_paintjet_device)
# 401|-> device_(gs_pcl3_device)
# 402| device_(gs_photoex_device)
# 403| device_(gs_picty180_device)
Error: COMPILER_WARNING (CWE-704): [#def2231]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:402:1: warning[-Wlto-type-mismatch]: type of ‘gs_photoex_device’ does not match original declaration
# 402 | device_(gs_photoex_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c:1030:28: note: type ‘struct gx_photoex_device’ should match type ‘struct gx_device’
# 1030 | gx_photoex_device far_data gs_photoex_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c:1030:28: note: ‘gs_photoex_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevphex.c:1030:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 400| device_(gs_paintjet_device)
# 401| device_(gs_pcl3_device)
# 402|-> device_(gs_photoex_device)
# 403| device_(gs_picty180_device)
# 404| device_(gs_pj_device)
Error: COMPILER_WARNING (CWE-704): [#def2232]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:403:1: warning[-Wlto-type-mismatch]: type of ‘gs_picty180_device’ does not match original declaration
# 403 | device_(gs_picty180_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:613:24: note: type ‘struct gx_device_cdj’ should match type ‘struct gx_device’
# 613 | gx_device_cdj far_data gs_picty180_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:613:24: note: ‘gs_picty180_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:613:24: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 401| device_(gs_pcl3_device)
# 402| device_(gs_photoex_device)
# 403|-> device_(gs_picty180_device)
# 404| device_(gs_pj_device)
# 405| device_(gs_pjetxl_device)
Error: COMPILER_WARNING (CWE-704): [#def2233]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:404:1: warning[-Wlto-type-mismatch]: type of ‘gs_pj_device’ does not match original declaration
# 404 | device_(gs_pj_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:637:23: note: type ‘struct gx_device_pj’ should match type ‘struct gx_device’
# 637 | gx_device_pj far_data gs_pj_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:637:23: note: ‘gs_pj_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:637:23: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 402| device_(gs_photoex_device)
# 403| device_(gs_picty180_device)
# 404|-> device_(gs_pj_device)
# 405| device_(gs_pjetxl_device)
# 406| device_(gs_pjxl_device)
Error: COMPILER_WARNING (CWE-704): [#def2234]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:405:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjetxl_device’ does not match original declaration
# 405 | device_(gs_pjetxl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:63:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 63 | const gx_device_printer far_data gs_pjetxl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpjet.c:63:34: note: ‘gs_pjetxl_device’ was previously declared here
# 403| device_(gs_picty180_device)
# 404| device_(gs_pj_device)
# 405|-> device_(gs_pjetxl_device)
# 406| device_(gs_pjxl_device)
# 407| device_(gs_pjxl300_device)
Error: COMPILER_WARNING (CWE-704): [#def2235]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:406:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl_device’ does not match original declaration
# 406 | device_(gs_pjxl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:641:25: note: type ‘struct gx_device_pjxl’ should match type ‘struct gx_device’
# 641 | gx_device_pjxl far_data gs_pjxl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:641:25: note: ‘gs_pjxl_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:641:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 404| device_(gs_pj_device)
# 405| device_(gs_pjetxl_device)
# 406|-> device_(gs_pjxl_device)
# 407| device_(gs_pjxl300_device)
# 408| device_(gs_pr1000_device)
Error: COMPILER_WARNING (CWE-704): [#def2236]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:407:1: warning[-Wlto-type-mismatch]: type of ‘gs_pjxl300_device’ does not match original declaration
# 407 | device_(gs_pjxl300_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:645:25: note: type ‘struct gx_device_pjxl’ should match type ‘struct gx_device’
# 645 | gx_device_pjxl far_data gs_pjxl300_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:645:25: note: ‘gs_pjxl300_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevcdj.c:645:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 405| device_(gs_pjetxl_device)
# 406| device_(gs_pjxl_device)
# 407|-> device_(gs_pjxl300_device)
# 408| device_(gs_pr1000_device)
# 409| device_(gs_pr1000_4_device)
Error: COMPILER_WARNING (CWE-704): [#def2237]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:408:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_device’ does not match original declaration
# 408 | device_(gs_pr1000_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:52:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 52 | gx_device_printer gs_pr1000_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:52:19: note: ‘gs_pr1000_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:52:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 406| device_(gs_pjxl_device)
# 407| device_(gs_pjxl300_device)
# 408|-> device_(gs_pr1000_device)
# 409| device_(gs_pr1000_4_device)
# 410| device_(gs_pr150_device)
Error: COMPILER_WARNING (CWE-704): [#def2238]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:409:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr1000_4_device’ does not match original declaration
# 409 | device_(gs_pr1000_4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:70:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 70 | gx_device_printer gs_pr1000_4_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:70:19: note: ‘gs_pr1000_4_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:70:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 407| device_(gs_pjxl300_device)
# 408| device_(gs_pr1000_device)
# 409|-> device_(gs_pr1000_4_device)
# 410| device_(gs_pr150_device)
# 411| device_(gs_pr201_device)
Error: COMPILER_WARNING (CWE-704): [#def2239]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:410:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr150_device’ does not match original declaration
# 410 | device_(gs_pr150_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:61:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 61 | gx_device_printer gs_pr150_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:61:19: note: ‘gs_pr150_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:61:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 408| device_(gs_pr1000_device)
# 409| device_(gs_pr1000_4_device)
# 410|-> device_(gs_pr150_device)
# 411| device_(gs_pr201_device)
# 412| #endif
Error: COMPILER_WARNING (CWE-704): [#def2240]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:411:1: warning[-Wlto-type-mismatch]: type of ‘gs_pr201_device’ does not match original declaration
# 411 | device_(gs_pr201_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:43:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 43 | gx_device_printer gs_pr201_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:43:19: note: ‘gs_pr201_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevp201.c:43:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 409| device_(gs_pr1000_4_device)
# 410| device_(gs_pr150_device)
# 411|-> device_(gs_pr201_device)
# 412| #endif
# 413| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2241]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:414:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlcolor_device’ does not match original declaration
# 414 | device2_(gs_pxlcolor_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:200:23: note: type ‘const struct gx_device_pclxl’ should match type ‘const struct gx_device’
# 200 | const gx_device_pclxl gs_pxlcolor_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:200:23: note: ‘gs_pxlcolor_device’ was previously declared here
# 412| #endif
# 413| #ifdef device2_
# 414|-> device2_(gs_pxlcolor_device)
# 415| device2_(gs_pxlmono_device)
# 416| #endif
Error: COMPILER_WARNING (CWE-704): [#def2242]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:415:1: warning[-Wlto-type-mismatch]: type of ‘gs_pxlmono_device’ does not match original declaration
# 415 | device2_(gs_pxlmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:196:23: note: type ‘const struct gx_device_pclxl’ should match type ‘const struct gx_device’
# 196 | const gx_device_pclxl gs_pxlmono_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/vector/gdevpx.c:196:23: note: ‘gs_pxlmono_device’ was previously declared here
# 413| #ifdef device2_
# 414| device2_(gs_pxlcolor_device)
# 415|-> device2_(gs_pxlmono_device)
# 416| #endif
# 417| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2243]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:418:1: warning[-Wlto-type-mismatch]: type of ‘gs_r4081_device’ does not match original declaration
# 418 | device_(gs_r4081_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4081.c:24:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 24 | const gx_device_printer far_data gs_r4081_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4081.c:24:34: note: ‘gs_r4081_device’ was previously declared here
# 416| #endif
# 417| #ifdef device_
# 418|-> device_(gs_r4081_device)
# 419| device_(gs_rinkj_device)
# 420| device_(gs_rpdl_device)
Error: COMPILER_WARNING (CWE-704): [#def2244]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:419:1: warning[-Wlto-type-mismatch]: type of ‘gs_rinkj_device’ does not match original declaration
# 419 | device_(gs_rinkj_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevrinkj.c:145:20: note: type ‘const struct rinkj_device’ should match type ‘struct gx_device’
# 145 | const rinkj_device gs_rinkj_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevrinkj.c:145:20: note: ‘gs_rinkj_device’ was previously declared here
# 417| #ifdef device_
# 418| device_(gs_r4081_device)
# 419|-> device_(gs_rinkj_device)
# 420| device_(gs_rpdl_device)
# 421| device_(gs_samsunggdi_device)
Error: COMPILER_WARNING (CWE-704): [#def2245]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:420:1: warning[-Wlto-type-mismatch]: type of ‘gs_rpdl_device’ does not match original declaration
# 420 | device_(gs_rpdl_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevrpdl.c:48:25: note: type ‘struct gx_device_lprn’ should match type ‘struct gx_device’
# 48 | gx_device_lprn far_data gs_rpdl_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevrpdl.c:48:25: note: ‘gs_rpdl_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevrpdl.c:48:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 418| device_(gs_r4081_device)
# 419| device_(gs_rinkj_device)
# 420|-> device_(gs_rpdl_device)
# 421| device_(gs_samsunggdi_device)
# 422| device_(gs_sj48_device)
Error: COMPILER_WARNING (CWE-704): [#def2246]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:421:1: warning[-Wlto-type-mismatch]: type of ‘gs_samsunggdi_device’ does not match original declaration
# 421 | device_(gs_samsunggdi_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:114:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 114 | gx_device_printer far_data gs_samsunggdi_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:114:28: note: ‘gs_samsunggdi_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevgdi.c:114:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 419| device_(gs_rinkj_device)
# 420| device_(gs_rpdl_device)
# 421|-> device_(gs_samsunggdi_device)
# 422| device_(gs_sj48_device)
# 423| device_(gs_st800_device)
Error: COMPILER_WARNING (CWE-704): [#def2247]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:422:1: warning[-Wlto-type-mismatch]: type of ‘gs_sj48_device’ does not match original declaration
# 422 | device_(gs_sj48_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevsj48.c:43:28: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 43 | gx_device_printer far_data gs_sj48_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevsj48.c:43:28: note: ‘gs_sj48_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevsj48.c:43:28: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 420| device_(gs_rpdl_device)
# 421| device_(gs_samsunggdi_device)
# 422|-> device_(gs_sj48_device)
# 423| device_(gs_st800_device)
# 424| device_(gs_stcolor_device)
Error: COMPILER_WARNING (CWE-704): [#def2248]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:423:1: warning[-Wlto-type-mismatch]: type of ‘gs_st800_device’ does not match original declaration
# 423 | device_(gs_st800_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevescp.c:89:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 89 | const gx_device_printer far_data gs_st800_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevescp.c:89:34: note: ‘gs_st800_device’ was previously declared here
# 421| device_(gs_samsunggdi_device)
# 422| device_(gs_sj48_device)
# 423|-> device_(gs_st800_device)
# 424| device_(gs_stcolor_device)
# 425| device_(gs_t4693d2_device)
Error: COMPILER_WARNING (CWE-704): [#def2249]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:424:1: warning[-Wlto-type-mismatch]: type of ‘gs_stcolor_device’ does not match original declaration
# 424 | device_(gs_stcolor_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:163:25: note: type ‘struct stcolor_device’ should match type ‘struct gx_device’
# 163 | stcolor_device far_data gs_stcolor_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:163:25: note: ‘gs_stcolor_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevstc.c:163:25: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 422| device_(gs_sj48_device)
# 423| device_(gs_st800_device)
# 424|-> device_(gs_stcolor_device)
# 425| device_(gs_t4693d2_device)
# 426| device_(gs_t4693d4_device)
Error: COMPILER_WARNING (CWE-704): [#def2250]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:425:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d2_device’ does not match original declaration
# 425 | device_(gs_t4693d2_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:44:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 44 | const gx_device_printer gs_t4693d2_device = t4693d_prn_device("t4693d2",8, 3);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:44:25: note: ‘gs_t4693d2_device’ was previously declared here
# 423| device_(gs_st800_device)
# 424| device_(gs_stcolor_device)
# 425|-> device_(gs_t4693d2_device)
# 426| device_(gs_t4693d4_device)
# 427| device_(gs_t4693d8_device)
Error: COMPILER_WARNING (CWE-704): [#def2251]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:426:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d4_device’ does not match original declaration
# 426 | device_(gs_t4693d4_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:45:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 45 | const gx_device_printer gs_t4693d4_device = t4693d_prn_device("t4693d4",16, 15);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:45:25: note: ‘gs_t4693d4_device’ was previously declared here
# 424| device_(gs_stcolor_device)
# 425| device_(gs_t4693d2_device)
# 426|-> device_(gs_t4693d4_device)
# 427| device_(gs_t4693d8_device)
# 428| device_(gs_tek4696_device)
Error: COMPILER_WARNING (CWE-704): [#def2252]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:427:1: warning[-Wlto-type-mismatch]: type of ‘gs_t4693d8_device’ does not match original declaration
# 427 | device_(gs_t4693d8_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:46:25: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 46 | const gx_device_printer gs_t4693d8_device = t4693d_prn_device("t4693d8",24, 255);
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdev4693.c:46:25: note: ‘gs_t4693d8_device’ was previously declared here
# 425| device_(gs_t4693d2_device)
# 426| device_(gs_t4693d4_device)
# 427|-> device_(gs_t4693d8_device)
# 428| device_(gs_tek4696_device)
# 429| device_(gs_uniprint_device)
Error: COMPILER_WARNING (CWE-704): [#def2253]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:428:1: warning[-Wlto-type-mismatch]: type of ‘gs_tek4696_device’ does not match original declaration
# 428 | device_(gs_tek4696_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtknk.c:52:34: note: type ‘const struct gx_device_printer’ should match type ‘struct gx_device’
# 52 | const gx_device_printer far_data gs_tek4696_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevtknk.c:52:34: note: ‘gs_tek4696_device’ was previously declared here
# 426| device_(gs_t4693d4_device)
# 427| device_(gs_t4693d8_device)
# 428|-> device_(gs_tek4696_device)
# 429| device_(gs_uniprint_device)
# 430| device_(gs_xes_device)
Error: COMPILER_WARNING (CWE-704): [#def2254]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:429:1: warning[-Wlto-type-mismatch]: type of ‘gs_uniprint_device’ does not match original declaration
# 429 | device_(gs_uniprint_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevupd.c:248:21: note: type ‘struct upd_device’ should match type ‘struct gx_device’
# 248 | upd_device far_data gs_uniprint_device = { /** */
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevupd.c:248:21: note: ‘gs_uniprint_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevupd.c:248:21: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 427| device_(gs_t4693d8_device)
# 428| device_(gs_tek4696_device)
# 429|-> device_(gs_uniprint_device)
# 430| device_(gs_xes_device)
# 431| #endif
Error: COMPILER_WARNING (CWE-704): [#def2255]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:430:1: warning[-Wlto-type-mismatch]: type of ‘gs_xes_device’ does not match original declaration
# 430 | device_(gs_xes_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevxes.c:69:19: note: type ‘struct gx_device_printer’ should match type ‘struct gx_device’
# 69 | gx_device_printer gs_xes_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevxes.c:69:19: note: ‘gs_xes_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/gdevxes.c:69:19: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 428| device_(gs_tek4696_device)
# 429| device_(gs_uniprint_device)
# 430|-> device_(gs_xes_device)
# 431| #endif
# 432| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2256]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:433:1: warning[-Wlto-type-mismatch]: type of ‘gs_appleraster_device’ does not match original declaration
# 433 | device2_(gs_appleraster_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:486:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
# 486 | gx_device_cups gs_appleraster_device = { gs_xxx_device("appleraster",
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:486:17: note: ‘gs_appleraster_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:486:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 431| #endif
# 432| #ifdef device2_
# 433|-> device2_(gs_appleraster_device)
# 434| device2_(gs_cups_device)
# 435| device2_(gs_pwgraster_device)
Error: COMPILER_WARNING (CWE-704): [#def2257]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:434:1: warning[-Wlto-type-mismatch]: type of ‘gs_cups_device’ does not match original declaration
# 434 | device2_(gs_cups_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:482:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
# 482 | gx_device_cups gs_cups_device = { gs_xxx_device("cups", "") };
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:482:17: note: ‘gs_cups_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:482:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 432| #ifdef device2_
# 433| device2_(gs_appleraster_device)
# 434|-> device2_(gs_cups_device)
# 435| device2_(gs_pwgraster_device)
# 436| device2_(gs_urf_device)
Error: COMPILER_WARNING (CWE-704): [#def2258]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:435:1: warning[-Wlto-type-mismatch]: type of ‘gs_pwgraster_device’ does not match original declaration
# 435 | device2_(gs_pwgraster_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:483:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
# 483 | gx_device_cups gs_pwgraster_device = { gs_xxx_device("pwgraster",
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:483:17: note: ‘gs_pwgraster_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:483:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 433| device2_(gs_appleraster_device)
# 434| device2_(gs_cups_device)
# 435|-> device2_(gs_pwgraster_device)
# 436| device2_(gs_urf_device)
# 437| #endif
Error: COMPILER_WARNING (CWE-704): [#def2259]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:436:1: warning[-Wlto-type-mismatch]: type of ‘gs_urf_device’ does not match original declaration
# 436 | device2_(gs_urf_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:488:17: note: type ‘struct gx_device_cups’ should match type ‘const struct gx_device’
# 488 | gx_device_cups gs_urf_device = { gs_xxx_device("urf",
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:488:17: note: ‘gs_urf_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/cups/gdevcups.c:488:17: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 434| device2_(gs_cups_device)
# 435| device2_(gs_pwgraster_device)
# 436|-> device2_(gs_urf_device)
# 437| #endif
# 438| #ifdef device_
Error: COMPILER_WARNING (CWE-704): [#def2260]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:439:1: warning[-Wlto-type-mismatch]: type of ‘gs_ijs_device’ does not match original declaration
# 439 | device_(gs_ijs_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevijs.c:144:15: note: type ‘struct gx_device_ijs’ should match type ‘struct gx_device’
# 144 | gx_device_ijs gs_ijs_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevijs.c:144:15: note: ‘gs_ijs_device’ was previously declared here
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevijs.c:144:15: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
# 437| #endif
# 438| #ifdef device_
# 439|-> device_(gs_ijs_device)
# 440| #endif
# 441| #ifdef device2_
Error: COMPILER_WARNING (CWE-704): [#def2261]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:442:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16_device’ does not match original declaration
# 442 | device2_(gs_png16_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:120:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 120 | const gx_device_png gs_png16_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:120:21: note: ‘gs_png16_device’ was previously declared here
# 440| #endif
# 441| #ifdef device2_
# 442|-> device2_(gs_png16_device)
# 443| device2_(gs_png16m_device)
# 444| device2_(gs_png16malpha_device)
Error: COMPILER_WARNING (CWE-704): [#def2262]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:443:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16m_device’ does not match original declaration
# 443 | device2_(gs_png16m_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:217:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 217 | const gx_device_png gs_png16m_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:217:21: note: ‘gs_png16m_device’ was previously declared here
# 441| #ifdef device2_
# 442| device2_(gs_png16_device)
# 443|-> device2_(gs_png16m_device)
# 444| device2_(gs_png16malpha_device)
# 445| device2_(gs_png256_device)
Error: COMPILER_WARNING (CWE-704): [#def2263]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:444:1: warning[-Wlto-type-mismatch]: type of ‘gs_png16malpha_device’ does not match original declaration
# 444 | device2_(gs_png16malpha_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:321:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
# 321 | const gx_device_pngalpha gs_png16malpha_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:321:26: note: ‘gs_png16malpha_device’ was previously declared here
# 442| device2_(gs_png16_device)
# 443| device2_(gs_png16m_device)
# 444|-> device2_(gs_png16malpha_device)
# 445| device2_(gs_png256_device)
# 446| device2_(gs_png48_device)
Error: COMPILER_WARNING (CWE-704): [#def2264]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:445:1: warning[-Wlto-type-mismatch]: type of ‘gs_png256_device’ does not match original declaration
# 445 | device2_(gs_png256_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:144:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 144 | const gx_device_png gs_png256_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:144:21: note: ‘gs_png256_device’ was previously declared here
# 443| device2_(gs_png16m_device)
# 444| device2_(gs_png16malpha_device)
# 445|-> device2_(gs_png256_device)
# 446| device2_(gs_png48_device)
# 447| device2_(gs_pngalpha_device)
Error: COMPILER_WARNING (CWE-704): [#def2265]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:446:1: warning[-Wlto-type-mismatch]: type of ‘gs_png48_device’ does not match original declaration
# 446 | device2_(gs_png48_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:241:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 241 | const gx_device_png gs_png48_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:241:21: note: ‘gs_png48_device’ was previously declared here
# 444| device2_(gs_png16malpha_device)
# 445| device2_(gs_png256_device)
# 446|-> device2_(gs_png48_device)
# 447| device2_(gs_pngalpha_device)
# 448| device2_(gs_pnggray_device)
Error: COMPILER_WARNING (CWE-704): [#def2266]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:447:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngalpha_device’ does not match original declaration
# 447 | device2_(gs_pngalpha_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:286:26: note: type ‘const struct gx_device_pngalpha’ should match type ‘const struct gx_device’
# 286 | const gx_device_pngalpha gs_pngalpha_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:286:26: note: ‘gs_pngalpha_device’ was previously declared here
# 445| device2_(gs_png256_device)
# 446| device2_(gs_png48_device)
# 447|-> device2_(gs_pngalpha_device)
# 448| device2_(gs_pnggray_device)
# 449| device2_(gs_pngmono_device)
Error: COMPILER_WARNING (CWE-704): [#def2267]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:448:1: warning[-Wlto-type-mismatch]: type of ‘gs_pnggray_device’ does not match original declaration
# 448 | device2_(gs_pnggray_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:167:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 167 | const gx_device_png gs_pnggray_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:167:21: note: ‘gs_pnggray_device’ was previously declared here
# 446| device2_(gs_png48_device)
# 447| device2_(gs_pngalpha_device)
# 448|-> device2_(gs_pnggray_device)
# 449| device2_(gs_pngmono_device)
# 450| device2_(gs_pngmonod_device)
Error: COMPILER_WARNING (CWE-704): [#def2268]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:449:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmono_device’ does not match original declaration
# 449 | device2_(gs_pngmono_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:95:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 95 | const gx_device_png gs_pngmono_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:95:21: note: ‘gs_pngmono_device’ was previously declared here
# 447| device2_(gs_pngalpha_device)
# 448| device2_(gs_pnggray_device)
# 449|-> device2_(gs_pngmono_device)
# 450| device2_(gs_pngmonod_device)
# 451| device2_(gs_nullpage_device)
Error: COMPILER_WARNING (CWE-704): [#def2269]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:450:1: warning[-Wlto-type-mismatch]: type of ‘gs_pngmonod_device’ does not match original declaration
# 450 | device2_(gs_pngmonod_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:190:21: note: type ‘const struct gx_device_png’ should match type ‘const struct gx_device’
# 190 | const gx_device_png gs_pngmonod_device =
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/devices/gdevpng.c:190:21: note: ‘gs_pngmonod_device’ was previously declared here
# 448| device2_(gs_pnggray_device)
# 449| device2_(gs_pngmono_device)
# 450|-> device2_(gs_pngmonod_device)
# 451| device2_(gs_nullpage_device)
# 452| #endif
Error: COMPILER_WARNING (CWE-704): [#def2270]
ghostscript-10.03.1-build/ghostscript-10.03.1/soobj/gconfig.h:451:1: warning[-Wlto-type-mismatch]: type of ‘gs_nullpage_device’ does not match original declaration
# 451 | device2_(gs_nullpage_device)
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnfwd.c:1007:22: note: type ‘const struct gx_device_null’ should match type ‘const struct gx_device’
# 1007 | const gx_device_null gs_nullpage_device = {
# | ^
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gdevnfwd.c:1007:22: note: ‘gs_nullpage_device’ was previously declared here
# 449| device2_(gs_pngmono_device)
# 450| device2_(gs_pngmonod_device)
# 451|-> device2_(gs_nullpage_device)
# 452| #endif
# 453| #ifdef io_device_
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-184.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | ghostscript-10.03.1-2.fc41 |
store-results-to | /tmp/tmpvn05j0pi/ghostscript-10.03.1-2.fc41.tar.xz |
time-created | 2024-07-03 12:59:35 |
time-finished | 2024-07-03 13:12:46 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvn05j0pi/ghostscript-10.03.1-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpvn05j0pi/ghostscript-10.03.1-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |