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/creduce-2.10.0+20201029/clang_delta/RewriteUtils.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDerivedClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyNestedClass.h Examining data/creduce-2.10.0+20201029/clang_delta/ClangDelta.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RenameFun.h Examining data/creduce-2.10.0+20201029/clang_delta/ClassTemplateToClass.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameVar.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RenameClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemovePointer.cpp Examining data/creduce-2.10.0+20201029/clang_delta/InstantiateTemplateTypeParamToInt.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceOneLevelTypedefType.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceArrayIndexVar.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReduceArraySize.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveTrivialBaseTemplate.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveAddrTaken.h Examining data/creduce-2.10.0+20201029/clang_delta/UnionToStruct.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveNestedFunction.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveNamespace.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameParam.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyCommaExpr.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RenameCXXMethod.cpp Examining data/creduce-2.10.0+20201029/clang_delta/UnifyFunctionDecl.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyCommaExpr.h Examining data/creduce-2.10.0+20201029/clang_delta/ParamToLocal.cpp Examining data/creduce-2.10.0+20201029/clang_delta/CombineLocalVarDecl.h Examining data/creduce-2.10.0+20201029/clang_delta/MoveGlobalVar.h Examining data/creduce-2.10.0+20201029/clang_delta/InstantiateTemplateParam.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDependentTypedef.cpp Examining data/creduce-2.10.0+20201029/clang_delta/MoveFunctionBody.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceCallExpr.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyStruct.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveArray.cpp Examining data/creduce-2.10.0+20201029/clang_delta/TransformationManager.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceUndefinedFunction.h Examining data/creduce-2.10.0+20201029/clang_delta/ReducePointerPairs.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReduceArrayDim.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyStructUnionDecl.cpp Examining data/creduce-2.10.0+20201029/clang_delta/TemplateNonTypeArgToInt.h Examining data/creduce-2.10.0+20201029/clang_delta/Transformation.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RewriteUtils.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveNestedFunction.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceFunctionDefWithDecl.h Examining data/creduce-2.10.0+20201029/clang_delta/UnifyFunctionDecl.h Examining data/creduce-2.10.0+20201029/clang_delta/CommonStatementVisitor.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyIf.cpp Examining data/creduce-2.10.0+20201029/clang_delta/CallExprToValue.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnresolvedBase.cpp Examining data/creduce-2.10.0+20201029/clang_delta/git_version.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceClassWithBaseTemplateSpec.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedEnumMember.h Examining data/creduce-2.10.0+20201029/clang_delta/CopyPropagation.cpp Examining data/creduce-2.10.0+20201029/clang_delta/MoveGlobalVar.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedFunction.cpp Examining data/creduce-2.10.0+20201029/clang_delta/CombineGlobalVarDecl.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemovePointer.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveBaseClass.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveEnumMemberValue.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceUndefinedFunction.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceFunctionDefWithDecl.cpp Examining data/creduce-2.10.0+20201029/clang_delta/Transformation.h Examining data/creduce-2.10.0+20201029/clang_delta/TemplateArgToInt.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyStructUnionDecl.h Examining data/creduce-2.10.0+20201029/clang_delta/ReturnVoid.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedOuterClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReducePointerPairs.h Examining data/creduce-2.10.0+20201029/clang_delta/MoveFunctionBody.h Examining data/creduce-2.10.0+20201029/clang_delta/CommonTemplateArgumentVisitor.h Examining data/creduce-2.10.0+20201029/clang_delta/InstantiateTemplateParam.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedVar.h Examining data/creduce-2.10.0+20201029/clang_delta/TransformationManager.cpp Examining data/creduce-2.10.0+20201029/clang_delta/VectorToArray.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedStructField.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyIf.h Examining data/creduce-2.10.0+20201029/clang_delta/EmptyStructToInt.h Examining data/creduce-2.10.0+20201029/clang_delta/CommonRenameClassRewriteVisitor.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceClassWithBaseTemplateSpec.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyCallExpr.cpp Examining data/creduce-2.10.0+20201029/clang_delta/LiftAssignmentExpr.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveCtorInitializer.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ParamToGlobal.h Examining data/creduce-2.10.0+20201029/clang_delta/CallExprToValue.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimpleInliner.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReduceArraySize.h Examining data/creduce-2.10.0+20201029/clang_delta/BinOpSimplification.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveEnumMemberValue.cpp Examining data/creduce-2.10.0+20201029/clang_delta/UnionToStruct.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameClass.h Examining data/creduce-2.10.0+20201029/clang_delta/ParamToGlobal.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyRecursiveTemplateInstantiation.h Examining data/creduce-2.10.0+20201029/clang_delta/ReduceClassTemplateParameter.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveCtorInitializer.h Examining data/creduce-2.10.0+20201029/clang_delta/BinOpSimplification.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyDependentTypedef.h Examining data/creduce-2.10.0+20201029/clang_delta/AggregateToScalar.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimpleInliner.h Examining data/creduce-2.10.0+20201029/clang_delta/ClassTemplateToClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDependentName.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveBaseClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/CommonParameterRewriteVisitor.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDependentName.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameFun.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveNamespace.cpp Examining data/creduce-2.10.0+20201029/clang_delta/AggregateToScalar.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyRecursiveTemplateInstantiation.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ParamToLocal.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceArrayAccessWithIndex.cpp Examining data/creduce-2.10.0+20201029/clang_delta/EmptyStructToInt.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ExpressionDetector.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameVar.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedStructField.h Examining data/creduce-2.10.0+20201029/clang_delta/TemplateNonTypeArgToInt.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceOneLevelTypedefType.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-param/invalid.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/not_valid4.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/not_valid3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/test4.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/not_valid1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/test3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/not_valid2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/template-arg-to-int/not_valid5.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-nested-function/remove_nested_func1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace7.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace4.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace10.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace14.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/macro.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace11.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace3.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace5.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace8.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace6.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace12.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace9.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace15.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-namespace/namespace13.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/cast.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/test4.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-cxx-method/overloaded.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-cxx-method/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-cxx-method/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-cxx-method/test3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/struct_int.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/test3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct6.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct3.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct4.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct5.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct7.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/copy-propagation/copy2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/copy-propagation/copy1.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-fun/overloaded.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-fun/test1.h Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-fun/test1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-fun/func_templ.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test5.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test4.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test6.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-var/rename-var.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/explicit_specialization.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/template_parm.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/static_member.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/parm.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/template_template.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/dtor1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/elaborated_type2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/typedef2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/dependent.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/typedef.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/using.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/injected_name.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/template_template_parm.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/partial_specialization.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/rename-class2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/derive.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/forward_decl.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/template_class_1.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/class_template2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/class_template.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/base_specifier.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/specialization.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/bool.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/dtor.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/instantiation.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/elaborated_type1.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/rename-class1.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/dependent_name.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/rename-class/using1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-array-dim/non-type-temp-arg.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/designated2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/designated1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/unused_field2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/designated3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/unused_field3.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/designated4.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/unused_field1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-field/designated5.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/param-to-global/macro.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/simplify-callexpr/test2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/simplify-callexpr/test.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/simplify-callexpr/macro.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-pointer-level/scalar-init-expr.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-derived-class/replace-derived1.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-derived-class/replace-derived3.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-derived-class/replace-derived4.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-derived-class/replace-derived2.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/instantiate-template-param/default_param.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/instantiate-template-param/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/instantiate-template-param/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/instantiate-template-param/test3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/simplify-if/macro.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/callexpr-to-value/macro1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/callexpr-to-value/test2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/callexpr-to-value/macro2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/callexpr-to-value/test1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/partial4.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/spec.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/partial3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/default_arg.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/template_specilization_type.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/class_template1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/non_type_param.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/test1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/partial5.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/test2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/class_template2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/partial2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/partial1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/class_template3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/default_partial.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/reduce-class-template-param/test3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-function-def-with-decl/macro1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/replace-function-def-with-decl/macro2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/union-to-struct/union3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/union-to-struct/union1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/union-to-struct/union2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/delete.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/unused-funcs.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/inline_ns.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/const.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/macro1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/template2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/class.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/macro3.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/delete2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/default.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/macro2.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-function/template1.cc Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-var/struct1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-var/struct2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-unused-var/unused_var.cpp Examining data/creduce-2.10.0+20201029/clang_delta/tests/remove-enum-member-value/builtin_macro.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/local-to-global/unnamed_3.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/local-to-global/unnamed_1.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/local-to-global/unnamed_2.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/local-to-global/macro.c Examining data/creduce-2.10.0+20201029/clang_delta/tests/simplify-recursive-template-instantiation/test.cc Examining data/creduce-2.10.0+20201029/clang_delta/LocalToGlobal.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyDependentTypedef.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceCallExpr.h Examining data/creduce-2.10.0+20201029/clang_delta/VectorToArray.h Examining data/creduce-2.10.0+20201029/clang_delta/ReducePointerLevel.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedEnumMember.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedFunction.h Examining data/creduce-2.10.0+20201029/clang_delta/CopyPropagation.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceArrayAccessWithIndex.h Examining data/creduce-2.10.0+20201029/clang_delta/ExpressionDetector.cpp Examining data/creduce-2.10.0+20201029/clang_delta/LocalToGlobal.h Examining data/creduce-2.10.0+20201029/clang_delta/CombineLocalVarDecl.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyNestedClass.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDerivedClass.h Examining data/creduce-2.10.0+20201029/clang_delta/TemplateArgToInt.h Examining data/creduce-2.10.0+20201029/clang_delta/ReturnVoid.h Examining data/creduce-2.10.0+20201029/clang_delta/RenameParam.cpp Examining data/creduce-2.10.0+20201029/clang_delta/CombineGlobalVarDecl.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceSimpleTypedef.h Examining data/creduce-2.10.0+20201029/clang_delta/InstantiateTemplateTypeParamToInt.h Examining data/creduce-2.10.0+20201029/clang_delta/LiftAssignmentExpr.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnresolvedBase.h Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyCallExpr.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedOuterClass.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveUnusedVar.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RenameCXXMethod.h Examining data/creduce-2.10.0+20201029/clang_delta/ReduceClassTemplateParameter.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveTrivialBaseTemplate.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceSimpleTypedef.cpp Examining data/creduce-2.10.0+20201029/clang_delta/SimplifyStruct.h Examining data/creduce-2.10.0+20201029/clang_delta/ReduceArrayDim.cpp Examining data/creduce-2.10.0+20201029/clang_delta/RemoveAddrTaken.cpp Examining data/creduce-2.10.0+20201029/clang_delta/ReducePointerLevel.h Examining data/creduce-2.10.0+20201029/clang_delta/RemoveArray.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceArrayIndexVar.h Examining data/creduce-2.10.0+20201029/clang_delta/ReplaceDependentTypedef.h Examining data/creduce-2.10.0+20201029/delta/test0_delta/hello.c Examining data/creduce-2.10.0+20201029/unifdef/unifdef.h Examining data/creduce-2.10.0+20201029/unifdef/unifdef.c Examining data/creduce-2.10.0+20201029/unifdef/version.h Examining data/creduce-2.10.0+20201029/tests/file1.c Examining data/creduce-2.10.0+20201029/tests/file2.c Examining data/creduce-2.10.0+20201029/tests/file3.c Examining data/creduce-2.10.0+20201029/clex/defs.h Examining data/creduce-2.10.0+20201029/clex/driver.c FINAL RESULTS: data/creduce-2.10.0+20201029/clang_delta/tests/return-void/test5.c:4:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). char *strcat (char *dest, const char *src) { } data/creduce-2.10.0+20201029/tests/file1.c:1:12: [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. extern int printf (const char *, ...); data/creduce-2.10.0+20201029/tests/file2.c:2:12: [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. extern int printf (const char *, ...); data/creduce-2.10.0+20201029/tests/file3.c:9:12: [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. extern int printf (const char *, ...); data/creduce-2.10.0+20201029/unifdef/unifdef.c:851:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tline + len, newline); data/creduce-2.10.0+20201029/unifdef/unifdef.h:31:30: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define errx(code, ...) do { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); exit(code); } while(0) data/creduce-2.10.0+20201029/unifdef/unifdef.h:33:25: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define warnx(...) do { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); } while(0) data/creduce-2.10.0+20201029/unifdef/unifdef.h:35:32: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vwarnx(fmt, args) do { vfprintf(stderr, fmt, args); fprintf(stderr, "\n"); } while(0) data/creduce-2.10.0+20201029/clang_delta/TransformationManager.cpp:97:25: [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. if (const char *env = getenv("CREDUCE_TARGET_TRIPLE")) { data/creduce-2.10.0+20201029/clang_delta/TransformationManager.cpp:122:27: [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. const char *CLCPath = getenv("CREDUCE_LIBCLC_INCLUDE_PATH"); data/creduce-2.10.0+20201029/clang_delta/TransformationManager.cpp:152:25: [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. if (const char *env = getenv("CREDUCE_INCLUDE_PATH")) { data/creduce-2.10.0+20201029/unifdef/unifdef.c:258:16: [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. while ((opt = getopt(argc, argv, "i:D:U:f:I:M:o:x:bBcdehKklmnsStV")) != -1) data/creduce-2.10.0+20201029/clang_delta/tests/aggregate-to-scalar/cast.c:10: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 (*)[t]) a)[0][0] = 0; data/creduce-2.10.0+20201029/clang_delta/tests/empty-struct-to-int/empty-struct5.cpp:6: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 a[2]; data/creduce-2.10.0+20201029/clex/driver.c:167: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 newname[255]; data/creduce-2.10.0+20201029/clex/driver.c:337:12: [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. unsigned char patterns[n_patterns]; data/creduce-2.10.0+20201029/clex/driver.c:499:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *in = fopen(argv[3], "r"); data/creduce-2.10.0+20201029/tests/file1.c:1008: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 g_261[5] = {0L, 0L, 0L, 0L, 0L}; data/creduce-2.10.0+20201029/tests/file1.c:1009: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 g_272[7] = {0x0DL, 0x0DL, 0x3DL, 0x0DL, 0x0DL, 0x3DL, 0x0DL}; data/creduce-2.10.0+20201029/tests/file1.c:1259:21: [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 l_858[2][7] = {{0L, 0L, 0x41L, 0L, 0L, 0x41L, 0L}, {0L, 0L, 0x41L, 0L, 0L, 0x41L, 0L}}; data/creduce-2.10.0+20201029/tests/file1.c:1281:21: [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 *l_904[9][5] = {{&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}, {&l_869, &g_261[4], (void*)0, (void*)0, &g_272[2]}}; data/creduce-2.10.0+20201029/tests/file1.c:1319:25: [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 *l_945[7][4][3] = {{{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}, {{&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}, {&g_606, &g_606, &g_261[2]}}}; data/creduce-2.10.0+20201029/tests/file1.c:1508:14: [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. unsigned char l_44[5][5] = {{250UL, 0x32L, 0x80L, 0x80L, 0x32L}, {250UL, 0x32L, 0x80L, 0x80L, 0x32L}, {250UL, 0x32L, 0x80L, 0x80L, 0x32L}, {250UL, 0x32L, 0x80L, 0x80L, 0x32L}, {250UL, 0x32L, 0x80L, 0x80L, 0x32L}}; data/creduce-2.10.0+20201029/tests/file2.c:975:17: [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 volatile char g_17[5] = {1L, 1L, 1L, 1L, 1L}; data/creduce-2.10.0+20201029/tests/file3.c:1054: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 *g_25[8] = {(void*)0, (void*)0, (void*)0, (void*)0, (void*)0, (void*)0, (void*)0, (void*)0}; data/creduce-2.10.0+20201029/tests/file3.c:1179: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 g_1294[7] = {1L, 1L, 0x1EL, 1L, 1L, 0x1EL, 1L}; data/creduce-2.10.0+20201029/tests/file3.c:1284:9: [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 l_1287[2]; data/creduce-2.10.0+20201029/tests/file3.c:1347:25: [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 l_1312[9][2] = {{0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}, {0L, 0L}}; data/creduce-2.10.0+20201029/tests/file3.c:1350:34: [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. unsigned char *l_1339[9][6][4] = {{{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}, {{&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}, {&g_976, (void*)0, &g_81, &l_1218}}}; data/creduce-2.10.0+20201029/tests/file3.c:1413:17: [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 l_1364[5][2]; data/creduce-2.10.0+20201029/tests/file3.c:1477:30: [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. unsigned char *l_1401[8][6] = {{&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}, {&g_976, &l_1218, &g_81, &l_1218, &g_976, &l_1218}}; data/creduce-2.10.0+20201029/tests/file3.c:1707: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 l_921[4][2][3] = {{{0x45L, 0x45L, 0x87L}, {0x45L, 0x45L, 0x87L}}, {{0x45L, 0x45L, 0x87L}, {0x45L, 0x45L, 0x87L}}, {{0x45L, 0x45L, 0x87L}, {0x45L, 0x45L, 0x87L}}, {{0x45L, 0x45L, 0x87L}, {0x45L, 0x45L, 0x87L}}}; data/creduce-2.10.0+20201029/tests/file3.c:1768:30: [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. unsigned char l_575[1]; data/creduce-2.10.0+20201029/tests/file3.c:1822:17: [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 *l_593[2][1][5] = {{{&g_168, &g_482.f4, &g_168, &g_482.f4, &g_168}}, {{&g_168, &g_482.f4, &g_168, &g_482.f4, &g_168}}}; data/creduce-2.10.0+20201029/tests/file3.c:1922:22: [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. unsigned char *l_480[1]; data/creduce-2.10.0+20201029/tests/file3.c:1970:18: [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. unsigned char *l_372[4][5][9] = {{{&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}}, {{&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}}, {{&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}}, {{&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}, {&g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81, &g_81}}}; data/creduce-2.10.0+20201029/tests/file3.c:2014: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 l_288[1][4][8] = {{{0x48L, (-9L), 0L, 0xACL, 0x4EL, 0xACL, 0L, (-9L)}, {0x48L, (-9L), 0L, 0xACL, 0x4EL, 0xACL, 0L, (-9L)}, {0x48L, (-9L), 0L, 0xACL, 0x4EL, 0xACL, 0L, (-9L)}, {0x48L, (-9L), 0L, 0xACL, 0x4EL, 0xACL, 0L, (-9L)}}}; data/creduce-2.10.0+20201029/tests/file3.c:2069:21: [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 *l_242[6] = {&g_30.f4, &g_30.f4, &g_30.f4, &g_30.f4, &g_30.f4, &g_30.f4}; data/creduce-2.10.0+20201029/tests/file3.c:2118:18: [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. unsigned char l_300[6][7] = {{0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}, {0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}, {0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}, {0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}, {0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}, {0UL, 0xCFL, 0x87L, 0xCAL, 1UL, 0xCAL, 0x87L}}; data/creduce-2.10.0+20201029/tests/file3.c:2122:18: [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. unsigned char l_324[7][1] = {{0x3EL}, {0x3EL}, {0x3EL}, {0x3EL}, {0x3EL}, {0x3EL}, {0x3EL}}; data/creduce-2.10.0+20201029/tests/file3.c:2132:19: [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. const char l_361[9][1] = {{0x30L}, {0x30L}, {0x30L}, {0x30L}, {0x30L}, {0x30L}, {0x30L}, {0x30L}, {0x30L}}; data/creduce-2.10.0+20201029/tests/file3.c:2266:22: [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. unsigned char l_118[9]; data/creduce-2.10.0+20201029/unifdef/unifdef.c:165:14: [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 const char *symname[MAXSYMS]; /* symbol name */ data/creduce-2.10.0+20201029/unifdef/unifdef.c:166:14: [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 const char *value[MAXSYMS]; /* -Dsym=value */ data/creduce-2.10.0+20201029/unifdef/unifdef.c:179: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 tline[MAXLINE+EDITSLOP];/* input buffer plus space */ data/creduce-2.10.0+20201029/unifdef/unifdef.c:336:15: [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). exitmode = atoi(optarg); data/creduce-2.10.0+20201029/unifdef/unifdef.c:391:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input = fopen(ifn, "rb"); data/creduce-2.10.0+20201029/unifdef/unifdef.c:401:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). output = fopen(ofn, "wb"); data/creduce-2.10.0+20201029/unifdef/unifdef.c:576:28: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static void Mpass (void) { memcpy(keyword, "if ", 4); Pelif(); } data/creduce-2.10.0+20201029/unifdef/unifdef.c:1527:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input = fopen(fn, "rb"); data/creduce-2.10.0+20201029/unifdef/unifdef.h:55:11: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int fd = mkstemp(tmp); data/creduce-2.10.0+20201029/clex/driver.c:82:13: [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). int pos = strlen(name) - 1; data/creduce-2.10.0+20201029/clex/driver.c:90:17: [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). int len = strlen(name); data/creduce-2.10.0+20201029/clex/driver.c:101:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(name, "a"); data/creduce-2.10.0+20201029/clex/driver.c:118:17: [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). for (i=0; i < strlen(name); i++) { data/creduce-2.10.0+20201029/clex/driver.c:122: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(newname) > strlen(name)) data/creduce-2.10.0+20201029/clex/driver.c:122:25: [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(newname) > strlen(name)) data/creduce-2.10.0+20201029/clex/driver.c:187:20: [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). for (j = 0; j < (strlen(s) - i + 1); j++) { data/creduce-2.10.0+20201029/clex/driver.c:197:19: [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). for (i = 0; i < strlen(s); i++) { data/creduce-2.10.0+20201029/clex/driver.c:225:17: [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). int len = strlen(s) - 2; data/creduce-2.10.0+20201029/clex/driver.c:251:23: [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). for (j = 0; j < strlen(s); j++) { data/creduce-2.10.0+20201029/unifdef/unifdef.c:852:10: [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). cp += strlen(newline); data/creduce-2.10.0+20201029/unifdef/unifdef.c:1128:29: [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 (strncmp(cp, op->str, strlen(op->str)) == 0) { data/creduce-2.10.0+20201029/unifdef/unifdef.c:1139:9: [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). cp += strlen(op->str); data/creduce-2.10.0+20201029/unifdef/unifdef.c:1556:13: [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). end = cp + strlen(cp); ANALYSIS SUMMARY: Hits = 65 Lines analyzed = 45551 in approximately 1.34 seconds (33997 lines/second) Physical Source Lines of Code (SLOC) = 31822 Hits@level = [0] 75 [1] 14 [2] 39 [3] 4 [4] 8 [5] 0 Hits@level+ = [0+] 140 [1+] 65 [2+] 51 [3+] 12 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 4.39947 [1+] 2.04261 [2+] 1.60266 [3+] 0.377098 [4+] 0.251398 [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.