Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c: scope_hint: In function ‘gather_info_on_varying_deref’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:99:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘producer_info.texcoord_array’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:902:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:908:4: note: in expansion of macro ‘nir_foreach_variable_in_list’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:914:4: note: in expansion of macro ‘nir_foreach_variable_in_shader’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:153:5: note: in expansion of macro ‘nir_foreach_variable_with_modes’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4339:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4396:4: note: in expansion of macro ‘nir_foreach_function’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4339:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:188:4: note: in expansion of macro ‘nir_foreach_function’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:192:4: note: in expansion of macro ‘nir_foreach_block’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c: scope_hint: In function ‘gather_info_on_varying_deref’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:192:4: note: in expansion of macro ‘nir_foreach_block’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:735:33: note: in definition of macro ‘exec_node_data_forward’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:3099:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:193:7: note: in expansion of macro ‘nir_foreach_instr’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:742:10: note: in expansion of macro ‘exec_node_data_forward’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:3099:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:193:7: note: in expansion of macro ‘nir_foreach_instr’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:3099:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c:193:7: note: in expansion of macro ‘nir_foreach_instr’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4858:1: note: in expansion of macro ‘NIR_SRC_AS_’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4858:1: note: in expansion of macro ‘NIR_SRC_AS_’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/gl_nir_opt_dead_builtin_varyings.c: scope_hint: In function ‘gather_info_on_varying_deref’
#   97|      nir_variable *var = nir_deref_instr_get_variable(deref);
#   98|   
#   99|->    if (!glsl_type_is_array(var->type) || !is_gl_identifier(var->name))
#  100|         return;
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:145:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cursor.<Ue8e8>.block’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4389:4: note: in expansion of macro ‘nir_foreach_function_with_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:1193:4: note: in expansion of macro ‘nir_foreach_function_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:742:10: note: in expansion of macro ‘exec_node_data_forward’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4347:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4347:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4389:4: note: in expansion of macro ‘nir_foreach_function_with_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:1193:4: note: in expansion of macro ‘nir_foreach_function_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir.h:4389:4: note: in expansion of macro ‘nir_foreach_function_with_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:1193:4: note: in expansion of macro ‘nir_foreach_function_impl’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:742:10: note: in expansion of macro ‘exec_node_data_forward’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:963:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:963:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:742:10: note: in expansion of macro ‘exec_node_data_forward’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:963:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:963:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:963:4: note: in expansion of macro ‘foreach_list_typed’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c:57:4: note: in expansion of macro ‘foreach_list_typed_safe’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/glsl/list.h:282:28: note: in definition of macro ‘exec_node_data’
mesa-24.2.4-build/mesa-24.2.4/src/compiler/nir/nir_opt_loop_unroll.c: scope_hint: In function ‘complex_unroll_loop_body’
#  143|   exec_node_get_prev(struct exec_node *n)
#  144|   {
#  145|->    return n->prev;
#  146|   }
#  147|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
mesa-24.2.4-build/mesa-24.2.4/src/egl/drivers/dri2/platform_drm.c: scope_hint: In function ‘dri2_drm_config_is_compatible’
mesa-24.2.4-build/mesa-24.2.4/src/egl/drivers/dri2/platform_drm.c:125:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘visual’
#  123|         util_format_description(gl_config->color_format);
#  124|      const struct util_format_description *fmt_s =
#  125|->       util_format_description(visual->dri_image_format);
#  126|   
#  127|      if (util_is_format_compatible(fmt_c, fmt_s) ||

Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
mesa-24.2.4-build/mesa-24.2.4/src/intel/isl/isl.c: scope_hint: In function ‘isl_tiling_get_info’
mesa-24.2.4-build/mesa-24.2.4/src/intel/isl/isl.c:941:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘logical_el.<Ua1c8>.w’
#  939|   #undef tile_extent3d
#  940|   
#  941|->       phys_B.w = logical_el.w * bs;
#  942|         phys_B.h = 64 * 1024 / phys_B.w;
#  943|         break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
mesa-24.2.4-build/mesa-24.2.4/src/panfrost/compiler/bi_ra.c:30: included_from: Included from here.
mesa-24.2.4-build/mesa-24.2.4/src/panfrost/compiler/nodearray.h: scope_hint: In function ‘nodearray_orr.part.0’
mesa-24.2.4-build/mesa-24.2.4/src/panfrost/compiler/nodearray.h:207:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*a.<Ud260>.sparse’ where non-null expected
mesa-24.2.4-build/mesa-24.2.4/src/util/u_debug.h:52: included_from: Included from here.
mesa-24.2.4-build/mesa-24.2.4/src/util/u_memory.h:37: included_from: Included from here.
mesa-24.2.4-build/mesa-24.2.4/src/panfrost/compiler/bi_ra.c:27: included_from: Included from here.
mesa-24.2.4-build/mesa-24.2.4/src/util/macros.h:370:27: note: in definition of macro ‘MIN2’
mesa-24.2.4-build/mesa-24.2.4/src/panfrost/compiler/nodearray.h:201:21: note: in expansion of macro ‘MAX2’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  205|   
#  206|               if (left)
#  207|->                memcpy(a->sparse, data, left * sizeof(nodearray_sparse));
#  208|            }
#  209|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-223.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namemesa-24.2.6-1.fc42
diffbase-store-results-to/tmp/tmpag65cwli/mesa-24.2.6-1.fc42.tar.xz
diffbase-time-created2024-11-13 02:57:27
diffbase-time-finished2024-11-13 03:55:20
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpag65cwli/mesa-24.2.6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpag65cwli/mesa-24.2.6-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-223.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namemesa-24.2.4-1.fc41
store-results-to/tmp/tmpu51kvnqn/mesa-24.2.4-1.fc41.tar.xz
time-created2024-11-13 01:59:06
time-finished2024-11-13 02:56:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpu51kvnqn/mesa-24.2.4-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpu51kvnqn/mesa-24.2.4-1.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9