Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] ghostscript-10.07.1/base/gdevdbit.c:296:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’ ghostscript-10.07.1/base/gdevdbit.c:163:1: enter_function: entry to ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:194:18: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:195:9: call_function: calling ‘check_64bit_multiply’ from ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:195:9: return_function: returning to ‘gx_default_copy_alpha_hl_color’ from ‘check_64bit_multiply’ ghostscript-10.07.1/base/gdevdbit.c:195:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:197:15: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch... ghostscript-10.07.1/base/gdevdbit.c:220:9: branch_true: ...to here ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)... ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: ...to here ghostscript-10.07.1/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): [#def2] ghostscript-10.07.1/base/gdevdbit.c:315:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’ ghostscript-10.07.1/base/gdevdbit.c:163:1: enter_function: entry to ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:194:18: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:195:9: call_function: calling ‘check_64bit_multiply’ from ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:195:9: return_function: returning to ‘gx_default_copy_alpha_hl_color’ from ‘check_64bit_multiply’ ghostscript-10.07.1/base/gdevdbit.c:195:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:197:15: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch... ghostscript-10.07.1/base/gdevdbit.c:220:9: branch_true: ...to here ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)... ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:292:33: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:313:24: branch_false: ...to here ghostscript-10.07.1/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): [#def3] ghostscript-10.07.1/base/gdevdbit.c:329:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’ ghostscript-10.07.1/base/gdevdbit.c:163:1: enter_function: entry to ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:194:18: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:195:9: call_function: calling ‘check_64bit_multiply’ from ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:195:9: return_function: returning to ‘gx_default_copy_alpha_hl_color’ from ‘check_64bit_multiply’ ghostscript-10.07.1/base/gdevdbit.c:195:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:197:15: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch... ghostscript-10.07.1/base/gdevdbit.c:220:9: branch_true: ...to here ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)... ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: ...to here ghostscript-10.07.1/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): [#def4] ghostscript-10.07.1/base/gdevdbit.c:339:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_planes[<unknown>]’ ghostscript-10.07.1/base/gdevdbit.c:163:1: enter_function: entry to ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:192:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:194:18: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:195:9: call_function: calling ‘check_64bit_multiply’ from ‘gx_default_copy_alpha_hl_color’ ghostscript-10.07.1/base/gdevdbit.c:195:9: return_function: returning to ‘gx_default_copy_alpha_hl_color’ from ‘check_64bit_multiply’ ghostscript-10.07.1/base/gdevdbit.c:195:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:197:15: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:198:8: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:217:18: branch_true: following ‘true’ branch... ghostscript-10.07.1/base/gdevdbit.c:220:9: branch_true: ...to here ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: following ‘false’ branch (when ‘k >= ncomps’)... ghostscript-10.07.1/base/gdevdbit.c:222:21: branch_false: ...to here ghostscript-10.07.1/base/gdevdbit.c:328:29: branch_false: following ‘false’ branch... ghostscript-10.07.1/base/gdevdbit.c:337:20: branch_false: ...to here ghostscript-10.07.1/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): [#def5] ghostscript-10.07.1/base/gdevp14.c:8812: warning[uninitvar]: Uninitialized variable: comp_value # 8810| for (i = pgs->color_component_map.num_components - 1; i >= 0; i--) # 8811| comp_value[i] = all; # 8812|-> map_components_to_colorants(comp_value, &(pgs->color_component_map), cm_comps, n); # 8813| } # 8814| Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksCommand’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: following ‘true’ branch (when ‘num_blocks != 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: following ‘true’ branch (when ‘expected_num_clusters != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksCommand’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_true: following ‘true’ branch (when ‘i < length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:22: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: danger: dereference of NULL ‘block_lengths + block_idx * 4’ # 258| for (i = 0; i < length; ++i) { # 259| BROTLI_DCHECK(block_idx < num_blocks); # 260|-> ++block_lengths[block_idx]; # 261| if (i + 1 == length || block_ids[i] != block_ids[i + 1]) { # 262| ++block_idx; Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cluster_size’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_false: following ‘false’ branch (when ‘num_blocks == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: following ‘false’ branch (when ‘num_blocks == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:226:26: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_true: following ‘true’ branch (when ‘i < length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:22: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: danger: dereference of NULL ‘block_lengths + block_idx * 4’ # 258| for (i = 0; i < length; ++i) { # 259| BROTLI_DCHECK(block_idx < num_blocks); # 260|-> ++block_lengths[block_idx]; # 261| if (i + 1 == length || block_ids[i] != block_ids[i + 1]) { # 262| ++block_idx; Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘histogram_symbols’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_false: following ‘false’ branch (when ‘num_blocks == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: following ‘true’ branch (when ‘expected_num_clusters != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: following ‘false’ branch (when ‘num_blocks == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:226:26: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_true: following ‘true’ branch (when ‘i < length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:22: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: danger: dereference of NULL ‘block_lengths + block_idx * 4’ # 258| for (i = 0; i < length; ++i) { # 259| BROTLI_DCHECK(block_idx < num_blocks); # 260|-> ++block_lengths[block_idx]; # 261| if (i + 1 == length || block_ids[i] != block_ids[i + 1]) { # 262| ++block_idx; Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u32’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksCommand’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:212:7: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksCommand’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_true: following ‘true’ branch (when ‘i < length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:22: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:260:9: danger: dereference of NULL ‘block_lengths + block_idx * 4’ # 258| for (i = 0; i < length; ++i) { # 259| BROTLI_DCHECK(block_idx < num_blocks); # 260|-> ++block_lengths[block_idx]; # 261| if (i + 1 == length || block_ids[i] != block_ids[i + 1]) { # 262| ++block_idx; Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: following ‘true’ branch (when ‘num_blocks != 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: following ‘true’ branch (when ‘expected_num_clusters != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: following ‘false’ branch (when ‘i >= length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:269:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:271:9: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:274:17: branch_true: following ‘true’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:43: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: danger: dereference of NULL ‘block_lengths + (i + j) * 4’ # 274| for (j = 0; j < num_to_combine; ++j) { # 275| size_t k; # 276|-> size_t block_length = block_lengths[i + j]; # 277| FN(HistogramClear)(&histograms[j]); # 278| for (k = 0; k < block_length; ++k) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cluster_size’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: following ‘true’ branch (when ‘num_blocks != 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: following ‘false’ branch (when ‘i >= length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:269:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:271:9: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:274:17: branch_true: following ‘true’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:43: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: danger: dereference of NULL ‘block_lengths + (i + j) * 4’ # 274| for (j = 0; j < num_to_combine; ++j) { # 275| size_t k; # 276|-> size_t block_length = block_lengths[i + j]; # 277| FN(HistogramClear)(&histograms[j]); # 278| for (k = 0; k < block_length; ++k) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def12] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u32’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:212:7: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:216:7: branch_false: following ‘false’ branch (when ‘expected_num_clusters == 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: following ‘false’ branch (when ‘i >= length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:269:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:271:9: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:274:17: branch_true: following ‘true’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:43: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:276:29: danger: dereference of NULL ‘block_lengths + (i + j) * 4’ # 274| for (j = 0; j < num_to_combine; ++j) { # 275| size_t k; # 276|-> size_t block_length = block_lengths[i + j]; # 277| FN(HistogramClear)(&histograms[j]); # 278| for (k = 0; k < block_length; ++k) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def13] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: following ‘true’ branch (when ‘num_blocks != 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: following ‘false’ branch (when ‘i >= length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:269:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:271:9: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:274:17: branch_false: following ‘false’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:286:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:291:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:294:5: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:294:17: branch_true: following ‘true’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:70: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:58: danger: dereference of NULL ‘new_clusters + j * 4’ # 293| if (BROTLI_IS_OOM(m)) return; # 294| for (j = 0; j < num_new_clusters; ++j) { # 295|-> all_histograms[all_histograms_size++] = histograms[new_clusters[j]]; # 296| cluster_size[cluster_size_size++] = sizes[new_clusters[j]]; # 297| remap[new_clusters[j]] = (uint32_t)j; Error: GCC_ANALYZER_WARNING (CWE-476): [#def14] ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u32’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:203:13: enter_function: entry to ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:208:33: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:210:7: branch_false: following ‘false’ branch (when ‘num_blocks == 18446744073709551360’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:212:7: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: branch_true: following ‘true’ branch (when ‘num_blocks != 0’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:221:31: call_function: inlined call to ‘brotli_min_size_t’ from ‘ClusterBlocksDistance’ ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:236:7: branch_false: following ‘false’ branch (when ‘u32’ is NULL)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:244:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: following ‘false’ branch (when ‘i >= length’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:258:17: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:269:15: branch_true: following ‘true’ branch (when ‘i < num_blocks’)... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:271:9: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:274:17: branch_false: following ‘false’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:286:24: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:291:5: branch_false: following ‘false’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:294:5: branch_false: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:294:17: branch_true: following ‘true’ branch... ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:70: branch_true: ...to here ghostscript-10.07.1/brotli/c/enc/block_splitter_inc.h:295:58: danger: dereference of NULL ‘new_clusters + j * 4’ # 293| if (BROTLI_IS_OOM(m)) return; # 294| for (j = 0; j < num_new_clusters; ++j) { # 295|-> all_histograms[all_histograms_size++] = histograms[new_clusters[j]]; # 296| cluster_size[cluster_size_size++] = sizes[new_clusters[j]]; # 297| remap[new_clusters[j]] = (uint32_t)j; Error: CPPCHECK_WARNING (CWE-457): [#def15] ghostscript-10.07.1/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); Error: COMPILER_WARNING: [#def16] ghostscript-10.07.1/devices/vector/gdevpdfe.c: scope_hint: In function ‘pdf_make_uuid.constprop.0’ ghostscript-10.07.1/devices/vector/gdevpdfe.c:636:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 40 bytes from a string of length 44 # 636 | strncpy(buf, b, buf_length); # | ^ # 634| writehex(&p, node[5], 1); # 635| *p = 0; # 636|-> strncpy(buf, b, buf_length); # 637| } # 638| Error: COMPILER_WARNING (CWE-563): [#def17] ghostscript-10.07.1/pdf/pdf_obj.c: scope_hint: In function ‘pdfi_obj_name_str’ ghostscript-10.07.1/pdf/pdf_obj.c:570:23: warning[-Wunused-variable]: unused variable ‘size’ # 570 | int esc_size = 1, size = name->length + 1; # | ^~~~ # 568| int code = 0, i; # 569| pdf_name *name = (pdf_name *)obj; # 570|-> int esc_size = 1, size = name->length + 1; # 571| byte *buf; # 572|
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-246.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | ghostscript-10.06.0-2.fc44 |
| diffbase-store-results-to | /tmp/tmpjq2l4asj/ghostscript-10.06.0-2.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 14:21:46 |
| diffbase-time-finished | 2026-08-03 14:29:25 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpjq2l4asj/ghostscript-10.06.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjq2l4asj/ghostscript-10.06.0-2.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-246.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | ghostscript-10.07.1-2.fc45 |
| store-results-to | /tmp/tmpcsleuix8/ghostscript-10.07.1-2.fc45.tar.xz |
| time-created | 2026-08-03 14:30:00 |
| time-finished | 2026-08-03 14:36:46 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpcsleuix8/ghostscript-10.07.1-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpcsleuix8/ghostscript-10.07.1-2.fc45.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |