qt6-qtshadertools-6.6.2-1.fc40

List of Defects

Error: CPPCHECK_WARNING: [#def1]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cfg.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_parser.cpp:24: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_parser.hpp:27: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_parsed_ir.hpp:27: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_common.hpp:1341:17: warning[core.NullDereference]: Dereference of undefined pointer value
# 1339|   	    , specialization(specialized)
# 1340|   	{
# 1341|-> 		bool matrix = vector_elements[0]->m.c[0].vecsize > 1;
# 1342|   
# 1343|   		if (matrix)

Error: CPPCHECK_WARNING: [#def3]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cpp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def5]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2973: error[danglingTempReference]: Using reference to dangling temporary.
# 2971|   		SPIRType sampler_type;
# 2972|   		auto &sampler = set<SPIRType>(type_id);
# 2973|-> 		sampler.basetype = SPIRType::Sampler;
# 2974|   
# 2975|   		auto &ptr_sampler = set<SPIRType>(ptr_type_id);

Error: CPPCHECK_WARNING (CWE-562): [#def6]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2976: error[danglingTempReference]: Using reference to dangling temporary.
# 2974|   
# 2975|   		auto &ptr_sampler = set<SPIRType>(ptr_type_id);
# 2976|-> 		ptr_sampler = sampler;
# 2977|   		ptr_sampler.self = type_id;
# 2978|   		ptr_sampler.storage = StorageClassUniformConstant;

Error: CPPCHECK_WARNING (CWE-562): [#def7]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2977: error[danglingTempReference]: Using reference to dangling temporary.
# 2975|   		auto &ptr_sampler = set<SPIRType>(ptr_type_id);
# 2976|   		ptr_sampler = sampler;
# 2977|-> 		ptr_sampler.self = type_id;
# 2978|   		ptr_sampler.storage = StorageClassUniformConstant;
# 2979|   		ptr_sampler.pointer = true;

Error: CPPCHECK_WARNING (CWE-562): [#def8]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2978: error[danglingTempReference]: Using reference to dangling temporary.
# 2976|   		ptr_sampler = sampler;
# 2977|   		ptr_sampler.self = type_id;
# 2978|-> 		ptr_sampler.storage = StorageClassUniformConstant;
# 2979|   		ptr_sampler.pointer = true;
# 2980|   		ptr_sampler.parent_type = type_id;

Error: CPPCHECK_WARNING (CWE-562): [#def9]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2979: error[danglingTempReference]: Using reference to dangling temporary.
# 2977|   		ptr_sampler.self = type_id;
# 2978|   		ptr_sampler.storage = StorageClassUniformConstant;
# 2979|-> 		ptr_sampler.pointer = true;
# 2980|   		ptr_sampler.parent_type = type_id;
# 2981|   

Error: CPPCHECK_WARNING (CWE-562): [#def10]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:2980: error[danglingTempReference]: Using reference to dangling temporary.
# 2978|   		ptr_sampler.storage = StorageClassUniformConstant;
# 2979|   		ptr_sampler.pointer = true;
# 2980|-> 		ptr_sampler.parent_type = type_id;
# 2981|   
# 2982|   		set<SPIRVariable>(var_id, ptr_type_id, StorageClassUniformConstant, 0);

Error: CPPCHECK_WARNING (CWE-562): [#def11]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:4604: error[danglingTempReference]: Using reference to dangling temporary.
# 4602|   	{
# 4603|   		auto &constant = set<SPIRConstant>(id, type);
# 4604|-> 		constant.make_null(constant_type);
# 4605|   	}
# 4606|   	else if (!constant_type.array.empty())

Error: CPPCHECK_WARNING (CWE-562): [#def12]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:4634: error[danglingTempReference]: Using reference to dangling temporary.
# 4632|   	{
# 4633|   		auto &constant = set<SPIRConstant>(id, type);
# 4634|-> 		constant.make_null(constant_type);
# 4635|   	}
# 4636|   }

Error: CPPCHECK_WARNING: [#def13]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def14]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:1804:3: warning[core.NullDereference]: Access to field 'context' results in a dereference of a null pointer (loaded from variable 'resources')
# 1802|   	if (!list)
# 1803|   	{
# 1804|-> 		resources->context->report_error("Invalid argument.");
# 1805|   		return SPVC_ERROR_INVALID_ARGUMENT;
# 1806|   	}

Error: CLANG_WARNING: [#def15]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_c.cpp:1835:3: warning[core.NullDereference]: Access to field 'context' results in a dereference of a null pointer (loaded from variable 'resources')
# 1833|   	if (!list)
# 1834|   	{
# 1835|-> 		resources->context->report_error("Invalid argument.");
# 1836|   		return SPVC_ERROR_INVALID_ARGUMENT;
# 1837|   	}

Error: CPPCHECK_WARNING: [#def16]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_parsed_ir.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_cross_util.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def19]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:5776: error[returnTempReference]: Reference to temporary returned.
# 5774|   	forced_temporaries.insert(id);
# 5775|   	emit_uninitialized_temporary(type, id);
# 5776|-> 	return set<SPIRExpression>(id, to_name(id), type, true);
# 5777|   }
# 5778|   

Error: CPPCHECK_WARNING (CWE-562): [#def20]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:5879: error[returnTempReference]: Reference to temporary returned.
# 5877|   			suppressed_usage_tracking.insert(result_id);
# 5878|   
# 5879|-> 		return set<SPIRExpression>(result_id, rhs, result_type, true);
# 5880|   	}
# 5881|   	else

Error: CPPCHECK_WARNING (CWE-562): [#def21]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:5885: error[returnTempReference]: Reference to temporary returned.
# 5883|   		// If expression isn't immutable, bind it to a temporary and make the new temporary immutable (they always are).
# 5884|   		statement(declare_temporary(result_type, result_id), rhs, ";");
# 5885|-> 		return set<SPIRExpression>(result_id, to_name(result_id), result_type, true);
# 5886|   	}
# 5887|   }

Error: CPPCHECK_WARNING (CWE-909): [#def22]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:6014: error[uninitStructMember]: Uninitialized struct member: expected_type.image
# 6012|   	}
# 6013|   
# 6014|-> 	return expected_type;
# 6015|   }
# 6016|   

Error: CPPCHECK_WARNING (CWE-457): [#def23]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:6014: error[uninitvar]: Uninitialized variable: expected_type.image
# 6012|   	}
# 6013|   
# 6014|-> 	return expected_type;
# 6015|   }
# 6016|   

Error: CPPCHECK_WARNING (CWE-457): [#def24]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:8520: warning[uninitvar]: Uninitialized variable: target_type.image
# 8518|   		return expr;
# 8519|   
# 8520|-> 	auto src_type = target_type;
# 8521|   	src_type.basetype = expr_type;
# 8522|   	return join(bitcast_glsl_op(target_type, src_type), "(", expr, ")");

Error: CPPCHECK_WARNING (CWE-562): [#def25]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:10795: error[danglingTempReference]: Using reference to dangling temporary.
#10793|   
#10794|   		auto *backing_variable = maybe_get_backing_variable(ops[2]);
#10795|-> 		expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]);
#10796|   		expr.need_transpose = meta.need_transpose;
#10797|   		expr.access_chain = true;

Error: CPPCHECK_WARNING (CWE-562): [#def26]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:10796: error[danglingTempReference]: Using reference to dangling temporary.
#10794|   		auto *backing_variable = maybe_get_backing_variable(ops[2]);
#10795|   		expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]);
#10796|-> 		expr.need_transpose = meta.need_transpose;
#10797|   		expr.access_chain = true;
#10798|   

Error: CPPCHECK_WARNING (CWE-562): [#def27]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:10797: error[danglingTempReference]: Using reference to dangling temporary.
#10795|   		expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]);
#10796|   		expr.need_transpose = meta.need_transpose;
#10797|-> 		expr.access_chain = true;
#10798|   
#10799|   		// Mark the result as being packed. Some platforms handled packed vectors differently than non-packed.

Error: CPPCHECK_WARNING (CWE-562): [#def28]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:10821: error[danglingTempReference]: Using reference to dangling temporary.
#10819|   		{
#10820|   			inherit_expression_dependencies(ops[1], ops[i]);
#10821|-> 			add_implied_read_expression(expr, ops[i]);
#10822|   		}
#10823|   

Error: CPPCHECK_WARNING (CWE-562): [#def29]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:10826: error[danglingTempReference]: Using reference to dangling temporary.
#10824|   		// If we have no dependencies after all, i.e., all indices in the access chain are immutable temporaries,
#10825|   		// we're not forwarded after all.
#10826|-> 		if (expr.expression_dependencies.empty())
#10827|   			forwarded_temporaries.erase(ops[1]);
#10828|   

Error: CPPCHECK_WARNING (CWE-562): [#def30]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:11327: error[danglingTempReference]: Using reference to dangling temporary.
#11325|   			// Cannot lower to a SPIRExpression, just copy the object.
#11326|   			auto &e = set<SPIRAccessChain>(id, *chain);
#11327|-> 			e.self = id;
#11328|   		}
#11329|   		else if (imgsamp)

Error: CPPCHECK_WARNING (CWE-562): [#def31]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:11336: error[danglingTempReference]: Using reference to dangling temporary.
#11334|   			// and in case GLSL or other subclasses require it in the future.
#11335|   			auto &e = set<SPIRCombinedImageSampler>(id, *imgsamp);
#11336|-> 			e.self = id;
#11337|   		}
#11338|   		else if (expression_is_lvalue(rhs) && !pointer)

Error: CPPCHECK_WARNING (CWE-562): [#def32]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:11353: error[danglingTempReference]: Using reference to dangling temporary.
#11351|   			{
#11352|   				auto *var = maybe_get_backing_variable(rhs);
#11353|-> 				e.loaded_from = var ? var->self : ID(0);
#11354|   			}
#11355|   

Error: CPPCHECK_WARNING (CWE-562): [#def33]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:11360: error[danglingTempReference]: Using reference to dangling temporary.
#11358|   			if (rhs_expr)
#11359|   			{
#11360|-> 				e.implied_read_expressions = rhs_expr->implied_read_expressions;
#11361|   				e.expression_dependencies = rhs_expr->expression_dependencies;
#11362|   			}

Error: CPPCHECK_WARNING (CWE-562): [#def34]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:11361: error[danglingTempReference]: Using reference to dangling temporary.
#11359|   			{
#11360|   				e.implied_read_expressions = rhs_expr->implied_read_expressions;
#11361|-> 				e.expression_dependencies = rhs_expr->expression_dependencies;
#11362|   			}
#11363|   		}

Error: CPPCHECK_WARNING (CWE-562): [#def35]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12667: error[danglingTempReference]: Using reference to dangling temporary.
#12665|   		// When using the pointer, we need to know which variable it is actually loaded from.
#12666|   		auto *var = maybe_get_backing_variable(ops[2]);
#12667|-> 		e.loaded_from = var ? var->self : ID(0);
#12668|   		inherit_expression_dependencies(id, ops[3]);
#12669|   		break;

Error: CPPCHECK_WARNING (CWE-562): [#def36]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:16574: error[danglingTempReference]: Using reference to dangling temporary.
#16572|   		{
#16573|   			auto &lhs_expr = set<SPIRExpression>(lhs_id, std::move(lhs), lhs_type_id, true);
#16574|-> 			lhs_expr.need_transpose = lhs_meta.need_transpose;
#16575|   
#16576|   			if (lhs_meta.storage_is_packed)

Error: CPPCHECK_WARNING (CWE-562): [#def37]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:16587: error[danglingTempReference]: Using reference to dangling temporary.
#16585|   		{
#16586|   			auto &rhs_expr = set<SPIRExpression>(rhs_id, std::move(rhs), rhs_type_id, true);
#16587|-> 			rhs_expr.need_transpose = rhs_meta.need_transpose;
#16588|   
#16589|   			if (rhs_meta.storage_is_packed)

Error: CPPCHECK_WARNING: [#def38]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def39]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4489: error[danglingTempReference]: Using reference to dangling temporary.
# 4487|   
# 4488|   		auto &e = set<SPIRAccessChain>(ops[1], ops[0], type.storage, base, offsets.first, offsets.second);
# 4489|-> 		e.row_major_matrix = row_major_matrix;
# 4490|   		e.matrix_stride = matrix_stride;
# 4491|   		e.array_stride = array_stride;

Error: CPPCHECK_WARNING (CWE-562): [#def40]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4490: error[danglingTempReference]: Using reference to dangling temporary.
# 4488|   		auto &e = set<SPIRAccessChain>(ops[1], ops[0], type.storage, base, offsets.first, offsets.second);
# 4489|   		e.row_major_matrix = row_major_matrix;
# 4490|-> 		e.matrix_stride = matrix_stride;
# 4491|   		e.array_stride = array_stride;
# 4492|   		e.immutable = should_forward(ops[2]);

Error: CPPCHECK_WARNING (CWE-562): [#def41]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4491: error[danglingTempReference]: Using reference to dangling temporary.
# 4489|   		e.row_major_matrix = row_major_matrix;
# 4490|   		e.matrix_stride = matrix_stride;
# 4491|-> 		e.array_stride = array_stride;
# 4492|   		e.immutable = should_forward(ops[2]);
# 4493|   		e.loaded_from = backing_variable ? backing_variable->self : ID(0);

Error: CPPCHECK_WARNING (CWE-562): [#def42]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4492: error[danglingTempReference]: Using reference to dangling temporary.
# 4490|   		e.matrix_stride = matrix_stride;
# 4491|   		e.array_stride = array_stride;
# 4492|-> 		e.immutable = should_forward(ops[2]);
# 4493|   		e.loaded_from = backing_variable ? backing_variable->self : ID(0);
# 4494|   

Error: CPPCHECK_WARNING (CWE-562): [#def43]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4493: error[danglingTempReference]: Using reference to dangling temporary.
# 4491|   		e.array_stride = array_stride;
# 4492|   		e.immutable = should_forward(ops[2]);
# 4493|-> 		e.loaded_from = backing_variable ? backing_variable->self : ID(0);
# 4494|   
# 4495|   		if (chain)

Error: CPPCHECK_WARNING (CWE-562): [#def44]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4497: error[danglingTempReference]: Using reference to dangling temporary.
# 4495|   		if (chain)
# 4496|   		{
# 4497|-> 			e.dynamic_index += chain->dynamic_index;
# 4498|   			e.static_index += chain->static_index;
# 4499|   		}

Error: CPPCHECK_WARNING (CWE-562): [#def45]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4498: error[danglingTempReference]: Using reference to dangling temporary.
# 4496|   		{
# 4497|   			e.dynamic_index += chain->dynamic_index;
# 4498|-> 			e.static_index += chain->static_index;
# 4499|   		}
# 4500|   

Error: CPPCHECK_WARNING (CWE-562): [#def46]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:4504: error[danglingTempReference]: Using reference to dangling temporary.
# 4502|   		{
# 4503|   			inherit_expression_dependencies(ops[1], ops[i]);
# 4504|-> 			add_implied_read_expression(e, ops[i]);
# 4505|   		}
# 4506|   	}

Error: CPPCHECK_WARNING (CWE-562): [#def47]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5489: error[danglingTempReference]: Using reference to dangling temporary.
# 5487|   		// When using the pointer, we need to know which variable it is actually loaded from.
# 5488|   		auto *var = maybe_get_backing_variable(ops[2]);
# 5489|-> 		e.loaded_from = var ? var->self : ID(0);
# 5490|   		inherit_expression_dependencies(id, ops[3]);
# 5491|   		break;

Error: CPPCHECK_WARNING (CWE-562): [#def48]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5954: error[danglingTempReference]: Using reference to dangling temporary.
# 5952|   
# 5953|   	// Preserve self.
# 5954|-> 	ptr_type.self = block_type_id;
# 5955|   
# 5956|   	set<SPIRVariable>(variable_id, block_pointer_type_id, StorageClassUniform);

Error: CPPCHECK_WARNING: [#def49]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_msl.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def51]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_parser.cpp:804: error[danglingTempReference]: Using reference to dangling temporary.
#  802|   		// Instead of a temporary, create a new function-wide temporary with this ID instead.
#  803|   		auto &var = set<SPIRVariable>(id, result_type, spv::StorageClassFunction);
#  804|-> 		var.phi_variable = true;
#  805|   
#  806|   		current_function->add_local_variable(id);

Error: CPPCHECK_WARNING: [#def52]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/SPIRV-Cross/spirv_reflect.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/SPIRV/InReadableOrder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def54]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/SPIRV/SPVRemapper.cpp:710:18: warning[deadcode.DeadStores]: Value stored to 'nextInst' during its initialization is never read
#  708|   
#  709|           // basic parsing and InstructionDesc table borrowed from SpvDisassemble.cpp...
#  710|->         unsigned nextInst = unsigned(spv.size());
#  711|   
#  712|           for (unsigned word = begin; word < end; word = nextInst) {

Error: CPPCHECK_WARNING: [#def55]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/SPIRV/SpvBuilder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/SPIRV/SpvPostProcess.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/SPIRV/disassemble.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def58]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/Constant.cpp:39: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/localintermediate.h:42: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/Include/intermediate.h:58: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/Include/ConstantUnion.h:940:52: warning[core.CallAndMessage]: Called C++ object pointer is null
#  938|   
#  939|       int size() const { return unionArray ? (int)unionArray->size() : 0; }
#  940|->     TConstUnion& operator[](size_t index) { return (*unionArray)[index]; }
#  941|       const TConstUnion& operator[](size_t index) const { return (*unionArray)[index]; }
#  942|       bool operator==(const TConstUnionArray& rhs) const

Error: CLANG_WARNING: [#def59]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/IntermTraverse.cpp:38: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/Include/intermediate.h:57: included_from: Included from here.
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/Include/Types.h:2732:14: warning[deadcode.DeadStores]: Value stored to 'rv' during its initialization is never read
# 2730|   
# 2731|       bool sameCoopMatBaseType(const TType &right) const {
# 2732|->         bool rv = coopmat && right.coopmat;
# 2733|           if (getBasicType() == EbtFloat || getBasicType() == EbtFloat16)
# 2734|               rv = right.getBasicType() == EbtFloat || right.getBasicType() == EbtFloat16;

Error: COMPILER_WARNING: [#def60]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/ShaderLang.cpp:845:39: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  845 |     std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
#      |                                       ^
/usr/include/c++/14/new: scope_hint: In member function ‘compile’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
#  843|       const int numPost = requireNonempty? 1 : 0;
#  844|       const int numTotal = numPre + numStrings + numPost;
#  845|->     std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
#  846|       std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
#  847|       std::unique_ptr<const char*[]> names(new const char*[numTotal]);

Error: COMPILER_WARNING: [#def61]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/ShaderLang.cpp:846:44: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  846 |     std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
#      |                                            ^
/usr/include/c++/14/new: scope_hint: In member function ‘compile’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
#  844|       const int numTotal = numPre + numStrings + numPost;
#  845|       std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
#  846|->     std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
#  847|       std::unique_ptr<const char*[]> names(new const char*[numTotal]);
#  848|       for (int s = 0; s < numStrings; ++s) {

Error: COMPILER_WARNING: [#def62]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/ShaderLang.cpp:847:42: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  847 |     std::unique_ptr<const char*[]> names(new const char*[numTotal]);
#      |                                          ^
/usr/include/c++/14/new: scope_hint: In member function ‘compile’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
#  845|       std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
#  846|       std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
#  847|->     std::unique_ptr<const char*[]> names(new const char*[numTotal]);
#  848|       for (int s = 0; s < numStrings; ++s) {
#  849|           strings[s + numPre] = shaderStrings[s];

Error: CPPCHECK_WARNING: [#def63]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/glslang_tab.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def64]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/preprocessor/Pp.cpp:942:13: warning[deadcode.DeadStores]: Value stored to 'token' is never read
#  940|               if (ifdepth == 0)
#  941|                   parseContext.ppError(ppToken->loc, "mismatched statements", "#else", "");
#  942|->             token = extraTokenCheck(PpAtomElse, ppToken, scanToken(ppToken));
#  943|               token = CPPelse(0, ppToken);
#  944|               break;

Error: CLANG_WARNING: [#def65]
qt6-qtshadertools-6.6.2-build/qtshadertools-everywhere-src-6.6.2/src/3rdparty/glslang/glslang/MachineIndependent/preprocessor/PpScanner.cpp:1234:9: warning[deadcode.DeadStores]: Value stored to 'token' is never read
# 1232|   
# 1233|           // next token has to be ##
# 1234|->         token = scanToken(&pastedPpToken);
# 1235|           assert(token == PpAtomPaste);
# 1236|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-175.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameqt6-qtshadertools-6.6.2-1.fc40
store-results-to/tmp/tmp8_ww2s97/qt6-qtshadertools-6.6.2-1.fc40.tar.xz
time-created2024-07-03 17:53:23
time-finished2024-07-03 17:58:01
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp8_ww2s97/qt6-qtshadertools-6.6.2-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp8_ww2s97/qt6-qtshadertools-6.6.2-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9