Task #112229 - added.err
back to task #112229download
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.07.0/base/gdevdbit.c:296:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’
ghostscript-10.07.0/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:194:18: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch...
ghostscript-10.07.0/base/gdevdbit.c:220:9: branch_true: ...to here
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)...
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:296:38: danger: use of uninitialized value ‘src_planes[<unknown>]’ here
# 294| However, this stuff should really be done with
# 295| the device encode/decode procedure. */
# 296|-> byte *ptr = ((src_planes[k]) + (sx - data_x) * word_width);
# 297| curr_cv[k] = 0;
# 298| switch (word_width) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.07.0/base/gdevdbit.c:315:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’
ghostscript-10.07.0/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:194:18: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch...
ghostscript-10.07.0/base/gdevdbit.c:220:9: branch_true: ...to here
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)...
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:292:33: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:313:24: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:315:38: danger: use of uninitialized value ‘src_planes[<unknown>]’ here
# 313| if (has_tags)
# 314| {
# 315|-> byte *ptr = ((src_planes[k]) + (sx - data_x) * word_width);
# 316| curr_cv[k] = 0;
# 317| switch (word_width) {
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.07.0/base/gdevdbit.c:329:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’
ghostscript-10.07.0/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:194:18: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch...
ghostscript-10.07.0/base/gdevdbit.c:220:9: branch_true: ...to here
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)...
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:329:34: danger: use of uninitialized value ‘src_planes[<unknown>]’ here
# 327| /* Update our plane data buffers. Just reuse the current one */
# 328| for (k = 0; k < ncomps-has_tags; k++) {
# 329|-> byte *ptr = ((src_planes[k]) + (sx - data_x) * word_width);
# 330| switch (word_width) {
# 331| case 2:
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.07.0/base/gdevdbit.c:339:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’
ghostscript-10.07.0/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:194:18: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:198:8: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch...
ghostscript-10.07.0/base/gdevdbit.c:220:9: branch_true: ...to here
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)...
ghostscript-10.07.0/base/gdevdbit.c:222:21: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:328:29: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gdevdbit.c:337:20: branch_false: ...to here
ghostscript-10.07.0/base/gdevdbit.c:339:34: danger: use of uninitialized value ‘src_planes[<unknown>]’ here
# 337| if (has_tags)
# 338| {
# 339|-> byte *ptr = ((src_planes[k]) + (sx - data_x) * word_width);
# 340| switch (word_width) {
# 341| case 2:
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.07.0/base/gdevp14.c:8820: warning[uninitvar]: Uninitialized variable: comp_value
# 8818| for (i = pgs->color_component_map.num_components - 1; i >= 0; i--)
# 8819| comp_value[i] = all;
# 8820|-> map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps, n);
# 8821| }
# 8822|
Error: CPPCHECK_WARNING (CWE-476):
ghostscript-10.07.0/base/gsicc_cache.c:631: error[nullPointer]: Null pointer dereference: segv
# 629| void (*segv)(void) = NULL;
# 630| if_debug2m(gs_debug_flag_icc, link->memory, "link at "PRI_INTPTR" being removed, but has ref_count = %d\n", (intptr_t)link, link->ref_count);
# 631|-> segv();
# 632| }
# 633| curr = icc_link_cache->head;
Error: GCC_ANALYZER_WARNING (CWE-476):
ghostscript-10.07.0/base/gsicc_cache.c:631:7: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ghostscript-10.07.0/base/gsicc_cache.c:985:1: enter_function: entry to ‘gsicc_get_link_profile’
ghostscript-10.07.0/base/gsicc_cache.c:1036:12: call_function: calling ‘gsicc_compute_linkhash’ from ‘gsicc_get_link_profile’
ghostscript-10.07.0/base/gsicc_cache.c:1036:12: return_function: returning to ‘gsicc_get_link_profile’ from ‘gsicc_compute_linkhash’
ghostscript-10.07.0/base/gsicc_cache.c:1039:8: branch_false: following ‘false’ branch...
ghostscript-10.07.0/base/gsicc_cache.c:1042:18: branch_false: ...to here
ghostscript-10.07.0/base/gsicc_cache.c:1042:18: call_function: calling ‘gsicc_findcachelink’ from ‘gsicc_get_link_profile’
# 629| void (*segv)(void) = NULL;
# 630| if_debug2m(gs_debug_flag_icc, link->memory, "link at "PRI_INTPTR" being removed, but has ref_count = %d\n", (intptr_t)link, link->ref_count);
# 631|-> segv();
# 632| }
# 633| curr = icc_link_cache->head;
Error: GCC_ANALYZER_WARNING (CWE-457):
ghostscript-10.07.0/base/gxdevice.h:709:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bpp’
ghostscript-10.07.0/base/spwgd.c:67:9: call_function: inlined call to ‘check_int_multiply’ from ‘s_PWGD_process’
# 707| static inline int check_int_multiply(int x, int y, int *result)
# 708| {
# 709|-> *result = x * y;
# 710|
# 711| if (x != 0 && (*result) / x != y)
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.07.0/base/spwgd.c:64: error[uninitvar]: Uninitialized variable: bpp
# 62| byte *wlimit = pw->limit;
# 63| int bpp;
# 64|-> int wb = ss->width * bpp;
# 65| int line_pos = ss->line_pos;
# 66|
Error: COMPILER_WARNING (CWE-457):
ghostscript-10.07.0/base/spwgd.c: scope_hint: In function ‘s_PWGD_process’
ghostscript-10.07.0/base/spwgd.c:64:24: warning[-Wuninitialized]: ‘bpp’ is used uninitialized
# 64 | int wb = ss->width * bpp;
# | ~~~~~~~~~~^~~~~
ghostscript-10.07.0/base/spwgd.c:63:9: note: ‘bpp’ was declared here
# 63 | int bpp;
# | ^~~
# 62| byte *wlimit = pw->limit;
# 63| int bpp;
# 64|-> int wb = ss->width * bpp;
# 65| int line_pos = ss->line_pos;
# 66|
Error: CPPCHECK_WARNING (CWE-457):
ghostscript-10.07.0/devices/gdevpdfimg.c:715: error[uninitvar]: Uninitialized variable: buf
# 713| stream_cursor_write_init(&w, buf, sizeof(buf));
# 714| status = (*templat->process) (st, &r, &w, true);
# 715|-> nw = stream_write(s, buf, (uint) (w.ptr + 1 - buf));
# 716| if (nw != ((int) (w.ptr + 1 - buf)))
# 717| status = gs_note_error(gs_error_ioerror);