Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/iwyu-8.15/iwyu.cc
Examining data/iwyu-8.15/iwyu_ast_util.cc
Examining data/iwyu-8.15/iwyu_ast_util.h
Examining data/iwyu-8.15/iwyu_cache.cc
Examining data/iwyu-8.15/iwyu_cache.h
Examining data/iwyu-8.15/iwyu_driver.cc
Examining data/iwyu-8.15/iwyu_driver.h
Examining data/iwyu-8.15/iwyu_getopt.cc
Examining data/iwyu-8.15/iwyu_getopt.h
Examining data/iwyu-8.15/iwyu_globals.cc
Examining data/iwyu-8.15/iwyu_globals.h
Examining data/iwyu-8.15/iwyu_include_picker.cc
Examining data/iwyu-8.15/iwyu_include_picker.h
Examining data/iwyu-8.15/iwyu_lexer_utils.cc
Examining data/iwyu-8.15/iwyu_lexer_utils.h
Examining data/iwyu-8.15/iwyu_location_util.cc
Examining data/iwyu-8.15/iwyu_location_util.h
Examining data/iwyu-8.15/iwyu_output.cc
Examining data/iwyu-8.15/iwyu_output.h
Examining data/iwyu-8.15/iwyu_path_util.cc
Examining data/iwyu-8.15/iwyu_path_util.h
Examining data/iwyu-8.15/iwyu_port.h
Examining data/iwyu-8.15/iwyu_preprocessor.cc
Examining data/iwyu-8.15/iwyu_preprocessor.h
Examining data/iwyu-8.15/iwyu_stl_util.h
Examining data/iwyu-8.15/iwyu_string_util.h
Examining data/iwyu-8.15/iwyu_use_flags.h
Examining data/iwyu-8.15/iwyu_verrs.cc
Examining data/iwyu-8.15/iwyu_verrs.h
Examining data/iwyu-8.15/iwyu_version.h
Examining data/iwyu-8.15/more_tests/iwyu_include_picker_test.cc
Examining data/iwyu-8.15/more_tests/iwyu_lexer_utils_test.cc
Examining data/iwyu-8.15/more_tests/iwyu_output_test.cc
Examining data/iwyu-8.15/more_tests/iwyu_string_util_test.cc
Examining data/iwyu-8.15/tests/c/elaborated_struct-d1.h
Examining data/iwyu-8.15/tests/c/elaborated_struct.c
Examining data/iwyu-8.15/tests/c/keep_includes-d1.h
Examining data/iwyu-8.15/tests/c/keep_includes.c
Examining data/iwyu-8.15/tests/cxx/alias_template.cc
Examining data/iwyu-8.15/tests/cxx/alias_template_use-d1.h
Examining data/iwyu-8.15/tests/cxx/alias_template_use-i1.h
Examining data/iwyu-8.15/tests/cxx/alias_template_use-i2.h
Examining data/iwyu-8.15/tests/cxx/alias_template_use.cc
Examining data/iwyu-8.15/tests/cxx/anonymous_struct.cc
Examining data/iwyu-8.15/tests/cxx/array.cc
Examining data/iwyu-8.15/tests/cxx/associated_h_file_heuristic.cc
Examining data/iwyu-8.15/tests/cxx/associated_include-i1.h
Examining data/iwyu-8.15/tests/cxx/associated_include.cc
Examining data/iwyu-8.15/tests/cxx/associated_include.h
Examining data/iwyu-8.15/tests/cxx/associated_skipped-d1.h
Examining data/iwyu-8.15/tests/cxx/associated_skipped-i1.h
Examining data/iwyu-8.15/tests/cxx/associated_skipped.cc
Examining data/iwyu-8.15/tests/cxx/associated_skipped.h
Examining data/iwyu-8.15/tests/cxx/auto_type_within_template.cc
Examining data/iwyu-8.15/tests/cxx/avoids_double_specialization.cc
Examining data/iwyu-8.15/tests/cxx/backwards_includes-d1-inl.h
Examining data/iwyu-8.15/tests/cxx/backwards_includes-d1.h
Examining data/iwyu-8.15/tests/cxx/backwards_includes-d2.h
Examining data/iwyu-8.15/tests/cxx/backwards_includes-d3.h
Examining data/iwyu-8.15/tests/cxx/backwards_includes.cc
Examining data/iwyu-8.15/tests/cxx/badinc-d1.h
Examining data/iwyu-8.15/tests/cxx/badinc-d2.h
Examining data/iwyu-8.15/tests/cxx/badinc-d3.h
Examining data/iwyu-8.15/tests/cxx/badinc-d4.h
Examining data/iwyu-8.15/tests/cxx/badinc-extradef.cc
Examining data/iwyu-8.15/tests/cxx/badinc-i1.h
Examining data/iwyu-8.15/tests/cxx/badinc-i2-inl.h
Examining data/iwyu-8.15/tests/cxx/badinc-i2.h
Examining data/iwyu-8.15/tests/cxx/badinc-i3.h
Examining data/iwyu-8.15/tests/cxx/badinc-i4.h
Examining data/iwyu-8.15/tests/cxx/badinc-i5.h
Examining data/iwyu-8.15/tests/cxx/badinc-i6.h
Examining data/iwyu-8.15/tests/cxx/badinc-inl.h
Examining data/iwyu-8.15/tests/cxx/badinc-private.h
Examining data/iwyu-8.15/tests/cxx/badinc-private2.h
Examining data/iwyu-8.15/tests/cxx/badinc.cc
Examining data/iwyu-8.15/tests/cxx/badinc.h
Examining data/iwyu-8.15/tests/cxx/badinc2.c
Examining data/iwyu-8.15/tests/cxx/binary_type_trait-d1.h
Examining data/iwyu-8.15/tests/cxx/binary_type_trait-i1.h
Examining data/iwyu-8.15/tests/cxx/binary_type_trait-i2.h
Examining data/iwyu-8.15/tests/cxx/binary_type_trait.cc
Examining data/iwyu-8.15/tests/cxx/builtins_no_includes.cc
Examining data/iwyu-8.15/tests/cxx/builtins_template.cc
Examining data/iwyu-8.15/tests/cxx/builtins_with_mapping-d1.h
Examining data/iwyu-8.15/tests/cxx/builtins_with_mapping.cc
Examining data/iwyu-8.15/tests/cxx/builtins_with_mapping.h
Examining data/iwyu-8.15/tests/cxx/casts-d1.h
Examining data/iwyu-8.15/tests/cxx/casts-d2.h
Examining data/iwyu-8.15/tests/cxx/casts-d3.h
Examining data/iwyu-8.15/tests/cxx/casts-i1.h
Examining data/iwyu-8.15/tests/cxx/casts-i2.h
Examining data/iwyu-8.15/tests/cxx/casts-i3.h
Examining data/iwyu-8.15/tests/cxx/casts.cc
Examining data/iwyu-8.15/tests/cxx/catch-byptr.h
Examining data/iwyu-8.15/tests/cxx/catch-byref.h
Examining data/iwyu-8.15/tests/cxx/catch-byvalue.h
Examining data/iwyu-8.15/tests/cxx/catch-elab.h
Examining data/iwyu-8.15/tests/cxx/catch-exceptions.h
Examining data/iwyu-8.15/tests/cxx/catch-logex.h
Examining data/iwyu-8.15/tests/cxx/catch-thrown.h
Examining data/iwyu-8.15/tests/cxx/catch.cc
Examining data/iwyu-8.15/tests/cxx/check_also-d1.h
Examining data/iwyu-8.15/tests/cxx/check_also-i1.h
Examining data/iwyu-8.15/tests/cxx/check_also-n1.h
Examining data/iwyu-8.15/tests/cxx/check_also.cc
Examining data/iwyu-8.15/tests/cxx/clmode.cc
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d1.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d10.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d11.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d12.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d13.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d14.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d15.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d16.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d17.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d18.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d19.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d2.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d20.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d21.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d22.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d3.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d4.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d5.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d6.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d7.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d8.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-d9.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i1.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i10.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i11.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i2.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i3.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i4.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i5.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i6.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i7.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i8.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas-i9.h
Examining data/iwyu-8.15/tests/cxx/comment_pragmas.cc
Examining data/iwyu-8.15/tests/cxx/computed_include.cc
Examining data/iwyu-8.15/tests/cxx/computed_include.h
Examining data/iwyu-8.15/tests/cxx/conversion_ctor.cc
Examining data/iwyu-8.15/tests/cxx/cvr-base.h
Examining data/iwyu-8.15/tests/cxx/cvr-class.h
Examining data/iwyu-8.15/tests/cxx/cvr-derived.h
Examining data/iwyu-8.15/tests/cxx/cvr.cc
Examining data/iwyu-8.15/tests/cxx/cxx17ns-i1.h
Examining data/iwyu-8.15/tests/cxx/cxx17ns.cc
Examining data/iwyu-8.15/tests/cxx/default_template_arg_other_file-d1.h
Examining data/iwyu-8.15/tests/cxx/default_template_arg_other_file-d2.h
Examining data/iwyu-8.15/tests/cxx/default_template_arg_other_file-i2.h
Examining data/iwyu-8.15/tests/cxx/default_template_arg_other_file-o1.h
Examining data/iwyu-8.15/tests/cxx/default_template_arg_other_file.cc
Examining data/iwyu-8.15/tests/cxx/defn_is_use-decl.h
Examining data/iwyu-8.15/tests/cxx/defn_is_use-namespace.h
Examining data/iwyu-8.15/tests/cxx/defn_is_use.cc
Examining data/iwyu-8.15/tests/cxx/deleted_implicit.cc
Examining data/iwyu-8.15/tests/cxx/depopulated_h_file-i1.h
Examining data/iwyu-8.15/tests/cxx/depopulated_h_file.cc
Examining data/iwyu-8.15/tests/cxx/depopulated_h_file.h
Examining data/iwyu-8.15/tests/cxx/derived_function_tpl_args-d1.h
Examining data/iwyu-8.15/tests/cxx/derived_function_tpl_args-i1.h
Examining data/iwyu-8.15/tests/cxx/derived_function_tpl_args.cc
Examining data/iwyu-8.15/tests/cxx/direct.h
Examining data/iwyu-8.15/tests/cxx/direct_near.h
Examining data/iwyu-8.15/tests/cxx/dotdot.cc
Examining data/iwyu-8.15/tests/cxx/double_include.cc
Examining data/iwyu-8.15/tests/cxx/double_include.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type.cc
Examining data/iwyu-8.15/tests/cxx/elaborated_type_class.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type_enum1.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type_enum2.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type_namespace.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type_struct.h
Examining data/iwyu-8.15/tests/cxx/elaborated_type_union.h
Examining data/iwyu-8.15/tests/cxx/enum_base-d1.h
Examining data/iwyu-8.15/tests/cxx/enum_base-i1.h
Examining data/iwyu-8.15/tests/cxx/enum_base.cc
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation-template.h
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation-template_direct.h
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation.cc
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation2-template_helpers.h
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation2-template_short.h
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation2-template_short_direct.h
Examining data/iwyu-8.15/tests/cxx/explicit_instantiation2.cc
Examining data/iwyu-8.15/tests/cxx/export_near.h
Examining data/iwyu-8.15/tests/cxx/export_nesting-d1.h
Examining data/iwyu-8.15/tests/cxx/export_nesting-i1.h
Examining data/iwyu-8.15/tests/cxx/export_nesting.cc
Examining data/iwyu-8.15/tests/cxx/export_nesting.h
Examining data/iwyu-8.15/tests/cxx/export_private_near.h
Examining data/iwyu-8.15/tests/cxx/external_including_internal.cc
Examining data/iwyu-8.15/tests/cxx/forward_declare_in_macro.cc
Examining data/iwyu-8.15/tests/cxx/forward_declare_in_macro.h
Examining data/iwyu-8.15/tests/cxx/fullinfo_for_templates-d1.h
Examining data/iwyu-8.15/tests/cxx/fullinfo_for_templates-d2.h
Examining data/iwyu-8.15/tests/cxx/fullinfo_for_templates.cc
Examining data/iwyu-8.15/tests/cxx/funcptrs-d1.h
Examining data/iwyu-8.15/tests/cxx/funcptrs-i1.h
Examining data/iwyu-8.15/tests/cxx/funcptrs.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_class_template-i1.h
Examining data/iwyu-8.15/tests/cxx/fwd_decl_class_template.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_class_template.h
Examining data/iwyu-8.15/tests/cxx/fwd_decl_final-d1.h
Examining data/iwyu-8.15/tests/cxx/fwd_decl_final.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_final.h
Examining data/iwyu-8.15/tests/cxx/fwd_decl_nested_class.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_of_nested_class_defined_later.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_static_member.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_then_dfn.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_with_attribute.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_with_instantiation-d1.h
Examining data/iwyu-8.15/tests/cxx/fwd_decl_with_instantiation.cc
Examining data/iwyu-8.15/tests/cxx/fwd_decl_with_instantiation.h
Examining data/iwyu-8.15/tests/cxx/fwd_declare_enum.cc
Examining data/iwyu-8.15/tests/cxx/header_in_subdir.cc
Examining data/iwyu-8.15/tests/cxx/header_in_subdir_nopath.cc
Examining data/iwyu-8.15/tests/cxx/header_near.cc
Examining data/iwyu-8.15/tests/cxx/header_near.h
Examining data/iwyu-8.15/tests/cxx/implicit_ctor-d1.h
Examining data/iwyu-8.15/tests/cxx/implicit_ctor-i1.h
Examining data/iwyu-8.15/tests/cxx/implicit_ctor-i2.h
Examining data/iwyu-8.15/tests/cxx/implicit_ctor.cc
Examining data/iwyu-8.15/tests/cxx/include_cycle.cc
Examining data/iwyu-8.15/tests/cxx/include_with_using-d1.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d2.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d3.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d3b.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d4.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d5.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-d5b.h
Examining data/iwyu-8.15/tests/cxx/include_with_using-i1.h
Examining data/iwyu-8.15/tests/cxx/include_with_using.cc
Examining data/iwyu-8.15/tests/cxx/indirect.h
Examining data/iwyu-8.15/tests/cxx/inheriting_ctor-d1.h
Examining data/iwyu-8.15/tests/cxx/inheriting_ctor-i1.h
Examining data/iwyu-8.15/tests/cxx/inheriting_ctor.cc
Examining data/iwyu-8.15/tests/cxx/inline_namespace-d1.h
Examining data/iwyu-8.15/tests/cxx/inline_namespace-i1.h
Examining data/iwyu-8.15/tests/cxx/inline_namespace.cc
Examining data/iwyu-8.15/tests/cxx/inline_namespace.h
Examining data/iwyu-8.15/tests/cxx/integer_template_arg.cc
Examining data/iwyu-8.15/tests/cxx/internal/associated_h_file_heuristic.h
Examining data/iwyu-8.15/tests/cxx/internal/include_cycle-d1.h
Examining data/iwyu-8.15/tests/cxx/internal/include_cycle-i1.h
Examining data/iwyu-8.15/tests/cxx/internal/internal_files.cc
Examining data/iwyu-8.15/tests/cxx/internal/private.h
Examining data/iwyu-8.15/tests/cxx/iterator.cc
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-autocast.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-autocast2.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-d1.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-d2.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-fnreturn.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-i1.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-i2.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp-typedefs.h
Examining data/iwyu-8.15/tests/cxx/iwyu_stricter_than_cpp.cc
Examining data/iwyu-8.15/tests/cxx/keep_mapping-pragma1.h
Examining data/iwyu-8.15/tests/cxx/keep_mapping-pragma2.h
Examining data/iwyu-8.15/tests/cxx/keep_mapping-priv.h
Examining data/iwyu-8.15/tests/cxx/keep_mapping-private.h
Examining data/iwyu-8.15/tests/cxx/keep_mapping-public.h
Examining data/iwyu-8.15/tests/cxx/keep_mapping.cc
Examining data/iwyu-8.15/tests/cxx/keep_moc-d1.h
Examining data/iwyu-8.15/tests/cxx/keep_moc-i1.h
Examining data/iwyu-8.15/tests/cxx/keep_moc.cc
Examining data/iwyu-8.15/tests/cxx/lambda_fwd_decl.cc
Examining data/iwyu-8.15/tests/cxx/lateparsed_template-notchecked.h
Examining data/iwyu-8.15/tests/cxx/lateparsed_template.cc
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-d1.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-d2.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-d3.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-d4.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-g1.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-g2.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-g3.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-g4.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-g5.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-i1.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-i2.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-i3.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-i4.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-prefix.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer-xmacro.h
Examining data/iwyu-8.15/tests/cxx/macro_defined_by_includer.cc
Examining data/iwyu-8.15/tests/cxx/macro_location-byteswap.h
Examining data/iwyu-8.15/tests/cxx/macro_location-d1.h
Examining data/iwyu-8.15/tests/cxx/macro_location-d2.h
Examining data/iwyu-8.15/tests/cxx/macro_location-d3.h
Examining data/iwyu-8.15/tests/cxx/macro_location-d4.h
Examining data/iwyu-8.15/tests/cxx/macro_location-i3.h
Examining data/iwyu-8.15/tests/cxx/macro_location-i4.h
Examining data/iwyu-8.15/tests/cxx/macro_location-i5.h
Examining data/iwyu-8.15/tests/cxx/macro_location-inet.h
Examining data/iwyu-8.15/tests/cxx/macro_location.cc
Examining data/iwyu-8.15/tests/cxx/macro_location.h
Examining data/iwyu-8.15/tests/cxx/macro_use_expanded_decl-class.h
Examining data/iwyu-8.15/tests/cxx/macro_use_expanded_decl-macro.h
Examining data/iwyu-8.15/tests/cxx/macro_use_expanded_decl.cc
Examining data/iwyu-8.15/tests/cxx/mapping_to_self-d1.h
Examining data/iwyu-8.15/tests/cxx/mapping_to_self-i1.h
Examining data/iwyu-8.15/tests/cxx/mapping_to_self.cc
Examining data/iwyu-8.15/tests/cxx/mapping_to_self.h
Examining data/iwyu-8.15/tests/cxx/member_expr-d1.h
Examining data/iwyu-8.15/tests/cxx/member_expr.cc
Examining data/iwyu-8.15/tests/cxx/ms_inline_asm.cc
Examining data/iwyu-8.15/tests/cxx/multiple_include_paths.cc
Examining data/iwyu-8.15/tests/cxx/new_header_path_local.cc
Examining data/iwyu-8.15/tests/cxx/new_header_path_provided.cc
Examining data/iwyu-8.15/tests/cxx/no_char_traits.cc
Examining data/iwyu-8.15/tests/cxx/no_comments.cc
Examining data/iwyu-8.15/tests/cxx/no_definition.cc
Examining data/iwyu-8.15/tests/cxx/no_deque.cc
Examining data/iwyu-8.15/tests/cxx/no_fwd_decl_nested_class-d1.h
Examining data/iwyu-8.15/tests/cxx/no_fwd_decl_nested_class.cc
Examining data/iwyu-8.15/tests/cxx/no_fwd_decl_std.cc
Examining data/iwyu-8.15/tests/cxx/no_fwd_decls-fwd.h
Examining data/iwyu-8.15/tests/cxx/no_fwd_decls-nameonly.h
Examining data/iwyu-8.15/tests/cxx/no_fwd_decls.cc
Examining data/iwyu-8.15/tests/cxx/no_h_includes_cc-inc.c
Examining data/iwyu-8.15/tests/cxx/no_h_includes_cc-inc2.c
Examining data/iwyu-8.15/tests/cxx/no_h_includes_cc.cc
Examining data/iwyu-8.15/tests/cxx/no_h_includes_cc.h
Examining data/iwyu-8.15/tests/cxx/non_transitive_include-d1.h
Examining data/iwyu-8.15/tests/cxx/non_transitive_include-d2.h
Examining data/iwyu-8.15/tests/cxx/non_transitive_include.cc
Examining data/iwyu-8.15/tests/cxx/operator_new.cc
Examining data/iwyu-8.15/tests/cxx/out_of_line-dep-char.h
Examining data/iwyu-8.15/tests/cxx/out_of_line-dep-int.h
Examining data/iwyu-8.15/tests/cxx/out_of_line-dep.h
Examining data/iwyu-8.15/tests/cxx/out_of_line.cc
Examining data/iwyu-8.15/tests/cxx/overloaded_class-d1.h
Examining data/iwyu-8.15/tests/cxx/overloaded_class-i1.h
Examining data/iwyu-8.15/tests/cxx/overloaded_class.cc
Examining data/iwyu-8.15/tests/cxx/pch.h
Examining data/iwyu-8.15/tests/cxx/pch_in_code.cc
Examining data/iwyu-8.15/tests/cxx/placement_new-d1.h
Examining data/iwyu-8.15/tests/cxx/placement_new-i1.h
Examining data/iwyu-8.15/tests/cxx/placement_new.cc
Examining data/iwyu-8.15/tests/cxx/pointer_arith.cc
Examining data/iwyu-8.15/tests/cxx/pragma_associated-d1.h
Examining data/iwyu-8.15/tests/cxx/pragma_associated-d2.h
Examining data/iwyu-8.15/tests/cxx/pragma_associated.cc
Examining data/iwyu-8.15/tests/cxx/pragma_associated.h
Examining data/iwyu-8.15/tests/cxx/precomputed_tpl_args-d1.h
Examining data/iwyu-8.15/tests/cxx/precomputed_tpl_args-i1.h
Examining data/iwyu-8.15/tests/cxx/precomputed_tpl_args.cc
Examining data/iwyu-8.15/tests/cxx/prefix_header_attribution-d1.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_attribution-i1.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_attribution.cc
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes-d1.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes-d2.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes-d3.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes-d4.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes-i1.h
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes_add.cc
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes_keep.cc
Examining data/iwyu-8.15/tests/cxx/prefix_header_includes_remove.cc
Examining data/iwyu-8.15/tests/cxx/prefix_header_operator_new.cc
Examining data/iwyu-8.15/tests/cxx/private.h
Examining data/iwyu-8.15/tests/cxx/public/pch_in_code.h
Examining data/iwyu-8.15/tests/cxx/quoted_includes_first.cc
Examining data/iwyu-8.15/tests/cxx/quoted_includes_first.h
Examining data/iwyu-8.15/tests/cxx/range_for-iterable.h
Examining data/iwyu-8.15/tests/cxx/range_for.cc
Examining data/iwyu-8.15/tests/cxx/re_fwd_decl-d1.h
Examining data/iwyu-8.15/tests/cxx/re_fwd_decl.cc
Examining data/iwyu-8.15/tests/cxx/re_fwd_decl.h
Examining data/iwyu-8.15/tests/cxx/redecls-d1.h
Examining data/iwyu-8.15/tests/cxx/redecls-d2.h
Examining data/iwyu-8.15/tests/cxx/redecls.cc
Examining data/iwyu-8.15/tests/cxx/redecls.h
Examining data/iwyu-8.15/tests/cxx/relative_exported_mapped_include-d1.h
Examining data/iwyu-8.15/tests/cxx/relative_exported_mapped_include.cc
Examining data/iwyu-8.15/tests/cxx/relative_include_of_double_export-d1.h
Examining data/iwyu-8.15/tests/cxx/relative_include_of_double_export.cc
Examining data/iwyu-8.15/tests/cxx/relative_include_of_export.cc
Examining data/iwyu-8.15/tests/cxx/relative_include_of_export_added-d1.h
Examining data/iwyu-8.15/tests/cxx/relative_include_of_export_added.cc
Examining data/iwyu-8.15/tests/cxx/remove_fwd_decl_when_including.cc
Examining data/iwyu-8.15/tests/cxx/self_include.cc
Examining data/iwyu-8.15/tests/cxx/sizeof_in_template_arg.cc
Examining data/iwyu-8.15/tests/cxx/sizeof_reference.cc
Examining data/iwyu-8.15/tests/cxx/specialization_needs_decl-d1.h
Examining data/iwyu-8.15/tests/cxx/specialization_needs_decl-i1.h
Examining data/iwyu-8.15/tests/cxx/specialization_needs_decl.cc
Examining data/iwyu-8.15/tests/cxx/stl_container_provides_allocator.cc
Examining data/iwyu-8.15/tests/cxx/subdir/direct_subdir.h
Examining data/iwyu-8.15/tests/cxx/subdir/dotdot_indirect.h
Examining data/iwyu-8.15/tests/cxx/subdir/indirect_subdir.h
Examining data/iwyu-8.15/tests/cxx/subdir/relative_exported_mapped_include-i1.h
Examining data/iwyu-8.15/tests/cxx/system_namespaces-d1.h
Examining data/iwyu-8.15/tests/cxx/system_namespaces-d2.h
Examining data/iwyu-8.15/tests/cxx/system_namespaces-d3.h
Examining data/iwyu-8.15/tests/cxx/system_namespaces.cc
Examining data/iwyu-8.15/tests/cxx/template_args.cc
Examining data/iwyu-8.15/tests/cxx/template_default_args_roundtrip-direct.h
Examining data/iwyu-8.15/tests/cxx/template_default_args_roundtrip-indirect.h
Examining data/iwyu-8.15/tests/cxx/template_default_args_roundtrip-template.h
Examining data/iwyu-8.15/tests/cxx/template_default_args_roundtrip.cc
Examining data/iwyu-8.15/tests/cxx/template_specialization-d1.h
Examining data/iwyu-8.15/tests/cxx/template_specialization-i1.h
Examining data/iwyu-8.15/tests/cxx/template_specialization-i2.h
Examining data/iwyu-8.15/tests/cxx/template_specialization.cc
Examining data/iwyu-8.15/tests/cxx/templated_constructor.cc
Examining data/iwyu-8.15/tests/cxx/typedef_chain_class.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template-d1.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template-d2.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template-d3.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template-d4.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template-i1.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_in_template.cc
Examining data/iwyu-8.15/tests/cxx/typedef_chain_no_follow-d1.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_no_follow-d2.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_no_follow-d3.h
Examining data/iwyu-8.15/tests/cxx/typedef_chain_no_follow.cc
Examining data/iwyu-8.15/tests/cxx/typedef_in_template-d1.h
Examining data/iwyu-8.15/tests/cxx/typedef_in_template-i1.h
Examining data/iwyu-8.15/tests/cxx/typedef_in_template.cc
Examining data/iwyu-8.15/tests/cxx/typedefs_and_resugaring-d1.h
Examining data/iwyu-8.15/tests/cxx/typedefs_and_resugaring.cc
Examining data/iwyu-8.15/tests/cxx/unused_class_template_ctor-d1.h
Examining data/iwyu-8.15/tests/cxx/unused_class_template_ctor.cc
Examining data/iwyu-8.15/tests/cxx/uses_printf-d1.h
Examining data/iwyu-8.15/tests/cxx/uses_printf.cc
Examining data/iwyu-8.15/tests/cxx/using_aliased_symbol-alias.h
Examining data/iwyu-8.15/tests/cxx/using_aliased_symbol-declare.h
Examining data/iwyu-8.15/tests/cxx/using_aliased_symbol.cc
Examining data/iwyu-8.15/tests/cxx/using_aliased_symbol_unused.cc
Examining data/iwyu-8.15/tests/cxx/using_directive_decl.cc
Examining data/iwyu-8.15/tests/cxx/using_directive_decl_a.h
Examining data/iwyu-8.15/tests/cxx/using_overload-float.h
Examining data/iwyu-8.15/tests/cxx/using_overload-int.h
Examining data/iwyu-8.15/tests/cxx/using_overload_multiple.cc
Examining data/iwyu-8.15/tests/cxx/using_overload_single.cc
Examining data/iwyu-8.15/tests/cxx/using_specialization.cc
Examining data/iwyu-8.15/tests/cxx/using_unused-baseclass.h
Examining data/iwyu-8.15/tests/cxx/using_unused-declare.h
Examining data/iwyu-8.15/tests/cxx/using_unused.cc
Examining data/iwyu-8.15/tests/cxx/varargs_and_references.cc
Examining data/iwyu-8.15/tests/cxx/virtual_tpl_method.cc

FINAL RESULTS:

data/iwyu-8.15/tests/cxx/badinc-i5.h:18:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf   fabs
data/iwyu-8.15/iwyu_getopt.cc:40:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char* const argv[], const char* optstring) {
data/iwyu-8.15/iwyu_getopt.cc:146:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int argc, char* const argv[], const char* optstring,
data/iwyu-8.15/iwyu_getopt.cc:162:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    return getopt(argc, argv, optstring);
data/iwyu-8.15/iwyu_getopt.h:30:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char* const argv[], const char* optstring);
data/iwyu-8.15/iwyu_getopt.h:32:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int argc, char* const argv[],
data/iwyu-8.15/iwyu_globals.cc:160:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      verbose(getenv("IWYU_VERBOSE") ? atoi(getenv("IWYU_VERBOSE")) : 1),
data/iwyu-8.15/iwyu_globals.cc:160:45:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      verbose(getenv("IWYU_VERBOSE") ? atoi(getenv("IWYU_VERBOSE")) : 1),
data/iwyu-8.15/iwyu_globals.cc:192:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    switch (getopt_long(argc, argv, shortopts, longopts, nullptr)) {
data/iwyu-8.15/iwyu_globals.cc:243:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    switch (getopt_long(argc, argv, shortopts, longopts, nullptr)) {
data/iwyu-8.15/iwyu.cc:458:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[32];
data/iwyu-8.15/iwyu_globals.cc:160:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      verbose(getenv("IWYU_VERBOSE") ? atoi(getenv("IWYU_VERBOSE")) : 1),
data/iwyu-8.15/iwyu_globals.cc:196:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      case 'v': verbose = atoi(optarg); break;
data/iwyu-8.15/iwyu_globals.cc:215:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max_line_length = atoi(optarg);
data/iwyu-8.15/iwyu_output.cc:334:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];
data/iwyu-8.15/iwyu_output.cc:514:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];   // big enough for any two numbers
data/iwyu-8.15/tests/cxx/alias_template.cc:15:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char argument[sizeof(T)];
data/iwyu-8.15/tests/cxx/macro_location-i5.h:23:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char c[1];                     \
data/iwyu-8.15/tests/cxx/placement_new.cc:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char global_buffer[256];
data/iwyu-8.15/tests/cxx/placement_new.cc:58:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[sizeof(t)];
data/iwyu-8.15/tests/cxx/placement_new.cc:75:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char template_storage[sizeof(ClassTemplate<IndirectClass, IndirectClass>)];
data/iwyu-8.15/tests/cxx/sizeof_in_template_arg.cc:18:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char storage[Size];
data/iwyu-8.15/tests/cxx/sizeof_reference.cc:21:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char value[sizeof(T)];
data/iwyu-8.15/tests/cxx/sizeof_reference.cc:25:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char value[sizeof(T&)];
data/iwyu-8.15/tests/cxx/sizeof_reference.cc:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char value[sizeof(IndirectTemplateStruct<T>)];
data/iwyu-8.15/tests/cxx/sizeof_reference.cc:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char value[sizeof(IndirectTemplateStruct<T&>)];
data/iwyu-8.15/tests/cxx/sizeof_reference.cc:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char value5[sizeof(IndirectTemplateStruct<T>&)];
data/iwyu-8.15/tests/cxx/template_args.cc:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char Argument1[sizeof(A1)];
data/iwyu-8.15/iwyu_getopt.cc:161:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(argv[optind]) < 3 || strncmp(argv[optind], "--", 2) != 0)
data/iwyu-8.15/iwyu_path_util.cc:118:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 file_path.substr(internal_pos + strlen("/internal/")));
data/iwyu-8.15/iwyu_path_util.cc:124:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                 file_path.substr(include_pos + strlen("/include/")));
data/iwyu-8.15/iwyu_preprocessor.cc:78:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              symbol.substr(index + strlen(kAnonymousNamespaceQualifier)));
data/iwyu-8.15/more_tests/iwyu_lexer_utils_test.cc:62:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return CreateSourceLocationFromOffset(SourceLocation(), strlen("unused"));

ANALYSIS SUMMARY:

Hits = 33
Lines analyzed = 31434 in approximately 0.76 seconds (41099 lines/second)
Physical Source Lines of Code (SLOC) = 15156
Hits@level = [0]  10 [1]   5 [2]  18 [3]   9 [4]   1 [5]   0
Hits@level+ = [0+]  43 [1+]  33 [2+]  28 [3+]  10 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.83716 [1+] 2.17736 [2+] 1.84745 [3+] 0.659805 [4+] 0.0659805 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.