Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-134): [#def1]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/program-state.cc: scope_hint: In function ‘void ana::log_set_of_svalues(logger*, const char*, const svalue_set&)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/program-state.cc:1498:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 1498 |   logger->log (name);
#      |   ~~~~~~~~~~~~^~~~~~
# 1496|   		    const svalue_set &set)
# 1497|   {
# 1498|->   logger->log (name);
# 1499|     logger->inc_indent ();
# 1500|     auto_vec<const svalue *> sval_vecs (set.elements ());

Error: COMPILER_WARNING (CWE-134): [#def2]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc: scope_hint: In function ‘void c_parse_error(const char*, cpp_ttype, tree, unsigned char, rich_location*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc:6764:14: warning[-Wformat-security]: format not a string literal and no format arguments
# 6764 |     error_at (richloc, gmsgid);
#      |     ~~~~~~~~~^~~~~~~~~~~~~~~~~
# 6762|       }
# 6763|     else
# 6764|->     error_at (richloc, gmsgid);
# 6765|   
# 6766|     if (message)

Error: COMPILER_WARNING (CWE-134): [#def3]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc:6768:16: warning[-Wformat-security]: format not a string literal and no format arguments
# 6768 |       error_at (richloc, message);
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 6766|     if (message)
# 6767|       {
# 6768|->       error_at (richloc, message);
# 6769|         free (message);
# 6770|       }

Error: COMPILER_WARNING (CWE-134): [#def4]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-convert.cc: scope_hint: In function ‘tree_node* c_convert(tree, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-convert.cc:84:13: warning[-Wformat-security]: format not a string literal and no format arguments
#   84 |       error (invalid_conv_diag);
#      |       ~~~~~~^~~~~~~~~~~~~~~~~~~
#   82|          = targetm.invalid_conversion (TREE_TYPE (expr), type)))
#   83|       {
#   84|->       error (invalid_conv_diag);
#   85|         return error_mark_node;
#   86|       }

Error: COMPILER_WARNING (CWE-134): [#def5]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘int convert_arguments(location_t, vec<unsigned int>, tree, vec<tree_node*, va_gc>*, vec<tree_node*, va_gc>*, tree, tree)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:3880:17: warning[-Wformat-security]: format not a string literal and no format arguments
# 3880 |           error (invalid_func_diag);
#      |           ~~~~~~^~~~~~~~~~~~~~~~~~~
# 3878|   		targetm.calls.invalid_arg_for_unprototyped_fn (typelist, fundecl, val)))
# 3879|   	{
# 3880|-> 	  error (invalid_func_diag);
# 3881|   	  return -1;
# 3882|   	}

Error: COMPILER_WARNING (CWE-134): [#def6]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘tree_node* build_unary_op(location_t, tree_code, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:4650:16: warning[-Wformat-security]: format not a string literal and no format arguments
# 4650 |       error_at (location, invalid_op_diag);
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4648|          = targetm.invalid_unary_op (code, TREE_TYPE (xarg))))
# 4649|       {
# 4650|->       error_at (location, invalid_op_diag);
# 4651|         return error_mark_node;
# 4652|       }

Error: COMPILER_WARNING (CWE-134): [#def7]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘void warning_init(location_t, int, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:6915:23: warning[-Wformat-security]: format not a string literal and no format arguments
# 6915 |   warned = warning_at (exploc, opt, gmsgid);
#      |            ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
# 6913|   
# 6914|     /* The gmsgid may be a format string with %< and %>. */
# 6915|->   warned = warning_at (exploc, opt, gmsgid);
# 6916|     ofwhat = print_spelling ((char *) alloca (spelling_length () + 1));
# 6917|     if (*ofwhat && warned)

Error: COMPILER_WARNING (CWE-134): [#def8]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘tree_node* build_binary_op(location_t, tree_code, tree, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:12455:16: warning[-Wformat-security]: format not a string literal and no format arguments
#12455 |       error_at (location, invalid_op_diag);
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12453|          = targetm.invalid_binary_op (code, type0, type1)))
#12454|       {
#12455|->       error_at (location, invalid_op_diag);
#12456|         return error_mark_node;
#12457|       }

Error: COMPILER_WARNING (CWE-134): [#def9]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect-utils.cc: scope_hint: In function ‘pex_obj* collect_execute(const char*, char**, const char*, const char*, int, bool, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect-utils.cc:237:21: warning[-Wformat-security]: format not a string literal and no format arguments
#  237 |         fatal_error (input_location, errmsg);
#      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
#  235|   	}
#  236|         else
#  237|-> 	fatal_error (input_location, errmsg);
#  238|       }
#  239|   

Error: COMPILER_WARNING (CWE-134): [#def10]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc: scope_hint: In function ‘void scan_prog_file(const char*, scanpass, scanfilter)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc:2401:21: warning[-Wformat-security]: format not a string literal and no format arguments
# 2401 |         fatal_error (input_location, errmsg);
#      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# 2399|   	}
# 2400|         else
# 2401|-> 	fatal_error (input_location, errmsg);
# 2402|       }
# 2403|   

Error: COMPILER_WARNING: [#def11]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1290:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1290 |         fatal_error (input_location, "cannot open omp_requires file %qs",
#      |                                                   ^~~~~~~~~~~~
# 1288|         in = fopen (omp_requires_file, "rb");
# 1289|         if (!in)
# 1290|-> 	fatal_error (input_location, "cannot open omp_requires file %qs",
# 1291|   		     omp_requires_file);
# 1292|         uint32_t omp_requires;

Error: COMPILER_WARNING: [#def12]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1294:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1294 |         fatal_error (input_location, "cannot read omp_requires file %qs",
#      |                                                   ^~~~~~~~~~~~
# 1292|         uint32_t omp_requires;
# 1293|         if (fread (&omp_requires, sizeof (omp_requires), 1, in) != 1)
# 1294|-> 	fatal_error (input_location, "cannot read omp_requires file %qs",
# 1295|   		     omp_requires_file);
# 1296|         fclose (in);

Error: COMPILER_WARNING: [#def13]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1300:68: warning[-Wformat-diag]: unquoted keyword ‘asm’ in format
# 1300 |         fatal_error (input_location, "cannot open intermediate gcn asm file");
#      |                                                                    ^~~
# 1298|         in = fopen (gcn_s1_name, "r");
# 1299|         if (!in)
# 1300|-> 	fatal_error (input_location, "cannot open intermediate gcn asm file");
# 1301|   
# 1302|         out = fopen (gcn_s2_name, "w");

Error: COMPILER_WARNING: [#def14]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc: scope_hint: In function ‘void compile_native(const char*, const char*, const char*, bool, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:591:40: warning[-Wformat-diag]: unquoted identifier or keyword ‘COLLECT_GCC_OPTIONS’ in format
#  591 |                  "environment variable COLLECT_GCC_OPTIONS must be set");
#      |                                        ^~~~~~~~~~~~~~~~~~~
#  589|     if (!collect_gcc_options)
#  590|       fatal_error (input_location,
#  591|-> 		 "environment variable COLLECT_GCC_OPTIONS must be set");
#  592|   
#  593|     struct obstack argv_obstack;

Error: COMPILER_WARNING: [#def15]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:650:35: warning[-Wformat-diag]: unquoted identifier or keyword ‘COLLECT_GCC’ in format
#  650 |     fatal_error (input_location, "COLLECT_GCC must be set.");
#      |                                   ^~~~~~~~~~~
#  648|     char *collect_gcc = getenv ("COLLECT_GCC");
#  649|     if (collect_gcc == NULL)
#  650|->     fatal_error (input_location, "COLLECT_GCC must be set.");
#  651|     const char *gcc_path = dirname (ASTRDUP (collect_gcc));
#  652|     const char *gcc_exec = basename (ASTRDUP (collect_gcc));

Error: COMPILER_WARNING: [#def16]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:721:26: warning[-Wformat-diag]: spurious trailing punctuation sequence ‘=’ in format
#  721 |                          "unrecognizable argument of option " STR);
#      |                          ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:712:27: note: format string is defined here
#  712 | #define STR "-foffload-abi="
#      |                           ^
#  719|   	  else
#  720|   	    fatal_error (input_location,
#  721|-> 			 "unrecognizable argument of option " STR);
#  722|   	}
#  723|   #undef STR

Error: COMPILER_WARNING: [#def17]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:721:26: warning[-Wformat-diag]: unquoted option name ‘-foffload-abi’ in format
#  721 |                          "unrecognizable argument of option " STR);
#      |                          ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:712:14: note: format string is defined here
#  712 | #define STR "-foffload-abi="
#      |              ^~~~~~~~~~~~~
#  719|   	  else
#  720|   	    fatal_error (input_location,
#  721|-> 			 "unrecognizable argument of option " STR);
#  722|   	}
#  723|   #undef STR

Error: COMPILER_WARNING: [#def18]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:843:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
#  843 |         fatal_error (input_location, "cannot open omp_requires file %qs",
#      |                                                   ^~~~~~~~~~~~
#  841|         in = fopen (omp_requires_file, "rb");
#  842|         if (!in)
#  843|-> 	fatal_error (input_location, "cannot open omp_requires file %qs",
#  844|   		     omp_requires_file);
#  845|         uint32_t omp_requires;

Error: COMPILER_WARNING: [#def19]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:847:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
#  847 |         fatal_error (input_location, "cannot read omp_requires file %qs",
#      |                                                   ^~~~~~~~~~~~
#  845|         uint32_t omp_requires;
#  846|         if (fread (&omp_requires, sizeof (omp_requires), 1, in) != 1)
#  847|-> 	fatal_error (input_location, "cannot read omp_requires file %qs",
#  848|   		     omp_requires_file);
#  849|         fclose (in);

Error: COMPILER_WARNING: [#def20]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/nvptx.cc: scope_hint: In function ‘void handle_ptx_version_option()’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/nvptx.cc:325:12: warning[-Wformat-diag]: unquoted identifier or keyword ‘sm_’ in format
#  325 |     error ("PTX version (%<-mptx%>) needs to be at least %s to support selected"
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  326 |            " %<-misa%> (sm_%s)", ptx_version_to_string (first),
#      |            ~~~~~~~~~~~~~~~~~~~~
#  323|   
#  324|     if (ptx_version_option < first)
#  325|->     error ("PTX version (%<-mptx%>) needs to be at least %s to support selected"
#  326|   	   " %<-misa%> (sm_%s)", ptx_version_to_string (first),
#  327|   	   sm_version_to_string ((enum ptx_isa)ptx_isa_option));

Error: COMPILER_WARNING (CWE-134): [#def21]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/constexpr.cc: scope_hint: In function ‘bool cxx_eval_assert(const constexpr_ctx*, tree, const char*, location_t, bool, bool*, bool*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/constexpr.cc:2136:20: warning[-Wformat-security]: format not a string literal and no format arguments
# 2136 |           error_at (cloc, msg);
#      |           ~~~~~~~~~^~~~~~~~~~~
# 2134|   	  /* Report the error. */
# 2135|   	  auto_diagnostic_group d;
# 2136|-> 	  error_at (cloc, msg);
# 2137|   	  diagnose_failing_condition (bad, cloc, true, ctx);
# 2138|   	  return bad;

Error: COMPILER_WARNING (CWE-134): [#def22]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/coroutines.cc: scope_hint: In function ‘bool coro_promise_type_found_p(tree, location_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/coroutines.cc:523:18: warning[-Wformat-security]: format not a string literal and no format arguments
#  523 |           inform (DECL_SOURCE_LOCATION (has_ret_val), message);
#      |           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  521|   	      message = "%<return_value%> first declared here";
#  522|   	    }
#  523|-> 	  inform (DECL_SOURCE_LOCATION (has_ret_val), message);
#  524|   	  coro_info->coro_co_return_error_emitted = true;
#  525|   	  return false;

Error: COMPILER_WARNING (CWE-134): [#def23]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cvt.cc: scope_hint: In function ‘tree_node* ocp_convert(tree, tree, int, int, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cvt.cc:727:15: warning[-Wformat-security]: format not a string literal and no format arguments
#  727 |         error (invalid_conv_diag);
#      |         ~~~~~~^~~~~~~~~~~~~~~~~~~
#  725|       {
#  726|         if (complain & tf_error)
#  727|-> 	error (invalid_conv_diag);
#  728|         return error_mark_node;
#  729|       }

Error: COMPILER_WARNING (CWE-134): [#def24]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/decl.cc: scope_hint: In function ‘bool check_previous_goto_1(tree, cp_binding_level*, tree, bool, const location_t*, vec<tree_node*, va_gc>*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/decl.cc:3814:20: warning[-Wformat-security]: format not a string literal and no format arguments
# 3814 |             inform (loc, inf);
#      |             ~~~~~~~^~~~~~~~~~
# 3812|   	  identified = 2;
# 3813|   	  if (complained)
# 3814|-> 	    inform (loc, inf);
# 3815|   	}
# 3816|       }

Error: CLANG_WARNING: [#def25]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/optimize.cc:776:5: warning[core.CallAndMessage]: Called C++ object pointer is null
#  774|     n1->add_to_same_comdat_group (n0);
#  775|     if (fns[2])
#  776|->     n2->add_to_same_comdat_group (n0);
#  777|     import_export_decl (fns[1]);
#  778|     /* Remove the body now that it is an alias.  */

Error: COMPILER_WARNING (CWE-134): [#def26]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/pt.cc: scope_hint: In function ‘tree_node* tsubst_expr(tree, tree, tsubst_flags_t, tree)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/pt.cc:20082:17: warning[-Wformat-security]: format not a string literal and no format arguments
#20082 |           error (error_msg);
#      |           ~~~~~~^~~~~~~~~~~
#20080|   				     input_location);
#20081|   	if (error_msg)
#20082|-> 	  error (error_msg);
#20083|   	if (identifier_p (decl))
#20084|   	  {

Error: COMPILER_WARNING (CWE-134): [#def27]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc: scope_hint: In function ‘tree_node* cp_build_binary_op(const op_location_t&, tree_code, tree, tree, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc:5314:19: warning[-Wformat-security]: format not a string literal and no format arguments
# 5314 |             error (invalid_op_diag);
#      |             ~~~~~~^~~~~~~~~~~~~~~~~
# 5312|   	    }
# 5313|   	  else
# 5314|-> 	    error (invalid_op_diag);
# 5315|   	}
# 5316|         return error_mark_node;

Error: COMPILER_WARNING (CWE-134): [#def28]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc: scope_hint: In function ‘tree_node* cp_build_unary_op(tree_code, tree, bool, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc:7417:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 7417 |         error (invalid_op_diag);
#      |         ~~~~~~^~~~~~~~~~~~~~~~~
# 7415|       {
# 7416|         if (complain & tf_error)
# 7417|-> 	error (invalid_op_diag);
# 7418|         return error_mark_node;
# 7419|       }

Error: COMPILER_WARNING (CWE-134): [#def29]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fold-const.cc: scope_hint: In function ‘void fold_overflow_warning(const char*, warn_strict_overflow_code)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fold-const.cc:384:13: warning[-Wformat-security]: format not a string literal and no format arguments
#  384 |     warning (OPT_Wstrict_overflow, gmsgid);
#      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  382|       }
#  383|     else if (issue_strict_overflow_warning (wc))
#  384|->     warning (OPT_Wstrict_overflow, gmsgid);
#  385|   }
#  386|   

Error: COMPILER_WARNING (CWE-134): [#def30]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-devirt.cc: scope_hint: In function ‘void warn_odr(tree, tree, tree, tree, bool, bool*, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-devirt.cc:967:10: warning[-Wformat-security]: format not a string literal and no format arguments
#  967 |   inform (DECL_SOURCE_LOCATION (decl2), reason);
#      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  965|     else
#  966|       return;
#  967|->   inform (DECL_SOURCE_LOCATION (decl2), reason);
#  968|   
#  969|     if (warned)

Error: COMPILER_WARNING: [#def31]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc: scope_hint: In function ‘void input_offload_tables(bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc:1976:35: warning[-Wformat-diag]: unquoted identifier or keyword ‘GCC_OFFLOAD_OMP_REQUIRES_FILE’ in format
# 1976 |     fatal_error (input_location, "GCC_OFFLOAD_OMP_REQUIRES_FILE unset");
#      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1974|     char *omp_requires_file = getenv ("GCC_OFFLOAD_OMP_REQUIRES_FILE");
# 1975|     if (omp_requires_file == NULL || omp_requires_file[0] == '\0')
# 1976|->     fatal_error (input_location, "GCC_OFFLOAD_OMP_REQUIRES_FILE unset");
# 1977|     FILE *f = fopen (omp_requires_file, "wb");
# 1978|     if (!f)

Error: COMPILER_WARNING: [#def32]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc:1979:47: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1979 |     fatal_error (input_location, "Cannot open omp_requires file %qs",
#      |                                               ^~~~~~~~~~~~
# 1977|     FILE *f = fopen (omp_requires_file, "wb");
# 1978|     if (!f)
# 1979|->     fatal_error (input_location, "Cannot open omp_requires file %qs",
# 1980|   		 omp_requires_file);
# 1981|     uint32_t req_mask = omp_requires_mask;

Error: COMPILER_WARNING (CWE-134): [#def33]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc: scope_hint: In function ‘void print_lto_docs_link()’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc:1373:10: warning[-Wformat-security]: format not a string literal and no format arguments
# 1373 |   inform (UNKNOWN_LOCATION, pp_formatted_text (&pp));
#      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1371|       pp_end_url (&pp);
# 1372|     pp_string (&pp, " for more information");
# 1373|->   inform (UNKNOWN_LOCATION, pp_formatted_text (&pp));
# 1374|   }
# 1375|   

Error: COMPILER_WARNING (CWE-134): [#def34]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc: scope_hint: In function ‘void run_gcc(unsigned int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc:1975:23: warning[-Wformat-security]: format not a string literal and no format arguments
# 1975 |               warning (0, jinfo.error_msg.c_str ());
#      |               ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1973|   	  if (jobserver_requested && !jinfo.is_active)
# 1974|   	    {
# 1975|-> 	      warning (0, jinfo.error_msg.c_str ());
# 1976|   	      print_lto_docs_link ();
# 1977|   	    }

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-251.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegcc-14.0.1-0.15.fc40
diffbase-store-results-to/tmp/tmpm17bu3dp/gcc-14.0.1-0.15.fc40.tar.xz
diffbase-time-created2024-07-03 12:41:21
diffbase-time-finished2024-07-03 22:53:59
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpm17bu3dp/gcc-14.0.1-0.15.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpm17bu3dp/gcc-14.0.1-0.15.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-251.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegcc-14.1.1-7.fc41
store-results-to/tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.tar.xz
time-created2024-07-03 22:55:08
time-finished2024-07-04 09:17:44
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9