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/log4cplus-2.0.5/catch/examples/000-CatchMain.cpp
Examining data/log4cplus-2.0.5/catch/examples/010-TestCase.cpp
Examining data/log4cplus-2.0.5/catch/examples/020-TestCase-1.cpp
Examining data/log4cplus-2.0.5/catch/examples/020-TestCase-2.cpp
Examining data/log4cplus-2.0.5/catch/examples/030-Asn-Require-Check.cpp
Examining data/log4cplus-2.0.5/catch/examples/100-Fix-Section.cpp
Examining data/log4cplus-2.0.5/catch/examples/110-Fix-ClassFixture.cpp
Examining data/log4cplus-2.0.5/catch/examples/120-Bdd-ScenarioGivenWhenThen.cpp
Examining data/log4cplus-2.0.5/catch/examples/200-Rpt-CatchMain.cpp
Examining data/log4cplus-2.0.5/catch/examples/207-Rpt-TeamCityReporter.cpp
Examining data/log4cplus-2.0.5/catch/examples/210-Evt-EventListeners.cpp
Examining data/log4cplus-2.0.5/catch/examples/231-Cfg-OutputStreams.cpp
Examining data/log4cplus-2.0.5/catch/examples/300-Gen-OwnGenerator.cpp
Examining data/log4cplus-2.0.5/catch/examples/301-Gen-MapTypeConversion.cpp
Examining data/log4cplus-2.0.5/catch/examples/310-Gen-VariablesInGenerators.cpp
Examining data/log4cplus-2.0.5/catch/include/catch.hpp
Examining data/log4cplus-2.0.5/catch/include/catch_with_main.hpp
Examining data/log4cplus-2.0.5/catch/include/external/clara.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_approx.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_approx.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_assertionhandler.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_assertionhandler.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_assertioninfo.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_assertionresult.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_assertionresult.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_benchmark.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_benchmark.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_capture.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_capture_matchers.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_capture_matchers.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_clara.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_commandline.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_commandline.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_common.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_common.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_compiler_capabilities.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_config.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_config.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_console_colour.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_console_colour.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_context.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_context.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_debug_console.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_debug_console.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_debugger.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_debugger.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_decomposer.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_decomposer.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_default_main.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_enforce.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_enforce.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_errno_guard.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_errno_guard.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_exception_translator_registry.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_exception_translator_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_external_interfaces.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_fatal_condition.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_fatal_condition.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_generators.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_generators.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_generators_generic.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_generators_specific.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_impl.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_capture.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_capture.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_config.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_config.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_exception.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_exception.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_generatortracker.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_registry_hub.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_registry_hub.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_reporter.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_reporter.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_runner.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_runner.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_tag_alias_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_testcase.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_interfaces_testcase.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_leak_detector.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_leak_detector.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_list.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_list.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_floating.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_floating.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_generic.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_generic.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_string.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_string.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_matchers_vector.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_message.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_message.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_meta.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_objc.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_objc_arc.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_option.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_platform.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_polyfills.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_polyfills.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_preprocessor.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_random_number_generator.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_random_number_generator.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_reenable_warnings.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_registry_hub.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_reporter_registrars.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_reporter_registry.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_reporter_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_result_type.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_result_type.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_run_context.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_run_context.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_section.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_section.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_section_info.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_section_info.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_session.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_session.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_singletons.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_singletons.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_startup_exception_registry.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_startup_exception_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_stream.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_stream.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_string_manip.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_string_manip.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_stringref.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_stringref.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_suppress_warnings.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias_autoregistrar.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias_autoregistrar.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias_registry.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tag_alias_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_info.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_info.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_registry_impl.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_registry_impl.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_tracker.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_case_tracker.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_registry.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_registry.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_spec.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_spec.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_spec_parser.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_test_spec_parser.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_text.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_timer.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_timer.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_to_string.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tostring.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_tostring.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_totals.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_totals.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_type_traits.hpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_uncaught_exceptions.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_uncaught_exceptions.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_user_interfaces.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_version.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_version.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_wildcard_pattern.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_wildcard_pattern.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_windows_h_proxy.h
Examining data/log4cplus-2.0.5/catch/include/internal/catch_xmlwriter.cpp
Examining data/log4cplus-2.0.5/catch/include/internal/catch_xmlwriter.h
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_automake.hpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_bases.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_bases.hpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_compact.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_compact.h
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_console.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_console.h
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_junit.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_junit.h
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_listening.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_listening.h
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_tap.hpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_teamcity.hpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_xml.cpp
Examining data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_xml.h
Examining data/log4cplus-2.0.5/catch/misc/coverage-helper.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X01-PrefixedMacros.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X02-DisabledMacros.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X10-FallbackStringifier.cpp
Examining data/log4cplus-2.0.5/catch/projects/ExtraTests/X11-DisableStringification.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/CompileTimePerfTests/10.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/CompileTimePerfTests/100.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/CompileTimePerfTests/All.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/String.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/TagAlias.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/IntrospectiveTests/Xml.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_debugger.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_option.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_stream.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_test_case_tracker.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_test_spec.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/TestMain.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Approx.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/BDD.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Benchmark.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Class.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Compilation.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Condition.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Decomposition.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/EnumToString.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Exception.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Generators.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Matchers.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Message.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Misc.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringChrono.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringOptional.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringPair.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringTuple.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringVector.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Tricky.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/VariadicMacros.tests.cpp
Examining data/log4cplus-2.0.5/catch/projects/XCode/OCTest/OCTest/CatchOCTestCase.h
Examining data/log4cplus-2.0.5/catch/projects/XCode/OCTest/OCTest/TestObj.h
Examining data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp
Examining data/log4cplus-2.0.5/catch/single_include/catch2/catch_reporter_automake.hpp
Examining data/log4cplus-2.0.5/catch/single_include/catch2/catch_reporter_tap.hpp
Examining data/log4cplus-2.0.5/catch/single_include/catch2/catch_reporter_teamcity.hpp
Examining data/log4cplus-2.0.5/catch/third_party/clara.hpp
Examining data/log4cplus-2.0.5/include/log4cplus/appender.h
Examining data/log4cplus-2.0.5/include/log4cplus/asyncappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/callbackappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/clfsappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/clogger.h
Examining data/log4cplus-2.0.5/include/log4cplus/config/macosx.h
Examining data/log4cplus-2.0.5/include/log4cplus/config/win32.h
Examining data/log4cplus-2.0.5/include/log4cplus/config/windowsh-inc-full.h
Examining data/log4cplus-2.0.5/include/log4cplus/config/windowsh-inc.h
Examining data/log4cplus-2.0.5/include/log4cplus/configurator.h
Examining data/log4cplus-2.0.5/include/log4cplus/consoleappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/fileappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/fstreams.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/appenderattachableimpl.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/connectorthread.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/fileinfo.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/lockfile.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/loglog.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/pointer.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/property.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/snprintf.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/socket.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/socketbuffer.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/stringhelper.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/thread-config.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/timehelper.h
Examining data/log4cplus-2.0.5/include/log4cplus/helpers/queue.h
Examining data/log4cplus-2.0.5/include/log4cplus/hierarchy.h
Examining data/log4cplus-2.0.5/include/log4cplus/hierarchylocker.h
Examining data/log4cplus-2.0.5/include/log4cplus/initializer.h
Examining data/log4cplus-2.0.5/include/log4cplus/internal/customloglevelmanager.h
Examining data/log4cplus-2.0.5/include/log4cplus/internal/cygwin-win32.h
Examining data/log4cplus-2.0.5/include/log4cplus/internal/env.h
Examining data/log4cplus-2.0.5/include/log4cplus/internal/internal.h
Examining data/log4cplus-2.0.5/include/log4cplus/internal/socket.h
Examining data/log4cplus-2.0.5/include/log4cplus/layout.h
Examining data/log4cplus-2.0.5/include/log4cplus/log4cplus.h
Examining data/log4cplus-2.0.5/include/log4cplus/log4judpappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/logger.h
Examining data/log4cplus-2.0.5/include/log4cplus/loggingmacros.h
Examining data/log4cplus-2.0.5/include/log4cplus/loglevel.h
Examining data/log4cplus-2.0.5/include/log4cplus/mdc.h
Examining data/log4cplus-2.0.5/include/log4cplus/msttsappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/ndc.h
Examining data/log4cplus-2.0.5/include/log4cplus/nteventlogappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/nullappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/qt4debugappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/qt5debugappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/socketappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/appenderattachable.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/factory.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/filter.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/loggerfactory.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/loggerimpl.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/loggingevent.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/objectregistry.h
Examining data/log4cplus-2.0.5/include/log4cplus/spi/rootlogger.h
Examining data/log4cplus-2.0.5/include/log4cplus/streams.h
Examining data/log4cplus-2.0.5/include/log4cplus/syslogappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/tchar.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/impl/syncprims-cxx11.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/impl/syncprims-impl.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/impl/syncprims-pmsm.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/impl/threads-impl.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/impl/tls.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/syncprims-pub-impl.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/syncprims.h
Examining data/log4cplus-2.0.5/include/log4cplus/thread/threads.h
Examining data/log4cplus-2.0.5/include/log4cplus/tracelogger.h
Examining data/log4cplus-2.0.5/include/log4cplus/tstring.h
Examining data/log4cplus-2.0.5/include/log4cplus/version.h
Examining data/log4cplus-2.0.5/include/log4cplus/win32consoleappender.h
Examining data/log4cplus-2.0.5/include/log4cplus/win32debugappender.h
Examining data/log4cplus-2.0.5/qt4debugappender/qt4debugappender.cxx
Examining data/log4cplus-2.0.5/qt5debugappender/qt5debugappender.cxx
Examining data/log4cplus-2.0.5/simpleserver/loggingserver.cxx
Examining data/log4cplus-2.0.5/src/appender.cxx
Examining data/log4cplus-2.0.5/src/appenderattachableimpl.cxx
Examining data/log4cplus-2.0.5/src/asyncappender.cxx
Examining data/log4cplus-2.0.5/src/callbackappender.cxx
Examining data/log4cplus-2.0.5/src/clfsappender.cxx
Examining data/log4cplus-2.0.5/src/clogger.cxx
Examining data/log4cplus-2.0.5/src/configurator.cxx
Examining data/log4cplus-2.0.5/src/connectorthread.cxx
Examining data/log4cplus-2.0.5/src/consoleappender.cxx
Examining data/log4cplus-2.0.5/src/cygwin-win32.cxx
Examining data/log4cplus-2.0.5/src/env.cxx
Examining data/log4cplus-2.0.5/src/factory.cxx
Examining data/log4cplus-2.0.5/src/fileappender.cxx
Examining data/log4cplus-2.0.5/src/fileinfo.cxx
Examining data/log4cplus-2.0.5/src/filter.cxx
Examining data/log4cplus-2.0.5/src/global-init.cxx
Examining data/log4cplus-2.0.5/src/hierarchy.cxx
Examining data/log4cplus-2.0.5/src/hierarchylocker.cxx
Examining data/log4cplus-2.0.5/src/layout.cxx
Examining data/log4cplus-2.0.5/src/lockfile.cxx
Examining data/log4cplus-2.0.5/src/log4judpappender.cxx
Examining data/log4cplus-2.0.5/src/logger.cxx
Examining data/log4cplus-2.0.5/src/loggerimpl.cxx
Examining data/log4cplus-2.0.5/src/loggingevent.cxx
Examining data/log4cplus-2.0.5/src/loggingmacros.cxx
Examining data/log4cplus-2.0.5/src/loglevel.cxx
Examining data/log4cplus-2.0.5/src/loglog.cxx
Examining data/log4cplus-2.0.5/src/mdc.cxx
Examining data/log4cplus-2.0.5/src/msttsappender.cxx
Examining data/log4cplus-2.0.5/src/ndc.cxx
Examining data/log4cplus-2.0.5/src/nteventlogappender.cxx
Examining data/log4cplus-2.0.5/src/nullappender.cxx
Examining data/log4cplus-2.0.5/src/objectregistry.cxx
Examining data/log4cplus-2.0.5/src/pointer.cxx
Examining data/log4cplus-2.0.5/src/property.cxx
Examining data/log4cplus-2.0.5/src/queue.cxx
Examining data/log4cplus-2.0.5/src/rootlogger.cxx
Examining data/log4cplus-2.0.5/src/snprintf.cxx
Examining data/log4cplus-2.0.5/src/socket-unix.cxx
Examining data/log4cplus-2.0.5/src/socket-win32.cxx
Examining data/log4cplus-2.0.5/src/socket.cxx
Examining data/log4cplus-2.0.5/src/socketappender.cxx
Examining data/log4cplus-2.0.5/src/socketbuffer.cxx
Examining data/log4cplus-2.0.5/src/stringhelper-clocale.cxx
Examining data/log4cplus-2.0.5/src/stringhelper-cxxlocale.cxx
Examining data/log4cplus-2.0.5/src/stringhelper-iconv.cxx
Examining data/log4cplus-2.0.5/src/stringhelper.cxx
Examining data/log4cplus-2.0.5/src/syncprims.cxx
Examining data/log4cplus-2.0.5/src/syslogappender.cxx
Examining data/log4cplus-2.0.5/src/threads.cxx
Examining data/log4cplus-2.0.5/src/timehelper.cxx
Examining data/log4cplus-2.0.5/src/tls.cxx
Examining data/log4cplus-2.0.5/src/version.cxx
Examining data/log4cplus-2.0.5/src/win32consoleappender.cxx
Examining data/log4cplus-2.0.5/src/win32debugappender.cxx
Examining data/log4cplus-2.0.5/src/patternlayout.cxx
Examining data/log4cplus-2.0.5/tests/appender_test/main.cxx
Examining data/log4cplus-2.0.5/tests/configandwatch_test/main.cxx
Examining data/log4cplus-2.0.5/tests/customloglevel_test/customloglevel.cxx
Examining data/log4cplus-2.0.5/tests/customloglevel_test/customloglevel.h
Examining data/log4cplus-2.0.5/tests/customloglevel_test/func.cxx
Examining data/log4cplus-2.0.5/tests/customloglevel_test/main.cxx
Examining data/log4cplus-2.0.5/tests/fileappender_test/main.cxx
Examining data/log4cplus-2.0.5/tests/filter_test/main.cxx
Examining data/log4cplus-2.0.5/tests/hierarchy_test/main.cxx
Examining data/log4cplus-2.0.5/tests/loglog_test/main.cxx
Examining data/log4cplus-2.0.5/tests/ndc_test/main.cxx
Examining data/log4cplus-2.0.5/tests/ostream_test/main.cxx
Examining data/log4cplus-2.0.5/tests/patternlayout_test/main.cxx
Examining data/log4cplus-2.0.5/tests/performance_test/main.cxx
Examining data/log4cplus-2.0.5/tests/priority_test/func.cxx
Examining data/log4cplus-2.0.5/tests/priority_test/main.cxx
Examining data/log4cplus-2.0.5/tests/propertyconfig_test/main.cxx
Examining data/log4cplus-2.0.5/tests/socket_test/main.cxx
Examining data/log4cplus-2.0.5/tests/thread_test/main.cxx
Examining data/log4cplus-2.0.5/tests/timeformat_test/main.cxx
Examining data/log4cplus-2.0.5/tests/unit_tests/unit_tests.cxx
Examining data/log4cplus-2.0.5/threadpool/ThreadPool.h
Examining data/log4cplus-2.0.5/threadpool/example.cpp

FINAL RESULTS:

data/log4cplus-2.0.5/catch/misc/coverage-helper.cpp:102:32:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    std::shared_ptr<FILE> pipe(popen(cmd.c_str(), "r"), pclose);
data/log4cplus-2.0.5/src/snprintf.cxx:76:17:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return std::vfwprintf (file, fmt, args);
data/log4cplus-2.0.5/src/snprintf.cxx:82:17:  [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.
    return std::vfprintf (file, fmt, args);
data/log4cplus-2.0.5/src/snprintf.cxx:102:16:  [4] (format) vswprintf:
  Potential format string problem (CWE-134). Make format string constant.
    ret = std::vswprintf (dest, dest_size, fmt, args);
data/log4cplus-2.0.5/src/snprintf.cxx:108:16:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    ret = std::vsprintf (dest, fmt, args);
data/log4cplus-2.0.5/src/snprintf.cxx:142:11:  [4] (format) vswprintf:
  Potential format string problem (CWE-134). Make format string constant.
    ret = vswprintf (dest, dest_size, fmt, args);
data/log4cplus-2.0.5/src/snprintf.cxx:152:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = vsnprintf (dest, dest_size, fmt, args);
data/log4cplus-2.0.5/catch/examples/300-Gen-OwnGenerator.cpp:40:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
Catch::Generators::GeneratorWrapper<int> random(int low, int high) {
data/log4cplus-2.0.5/catch/examples/300-Gen-OwnGenerator.cpp:48:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        auto i = GENERATE(take(100, random(-100, 100)));
data/log4cplus-2.0.5/catch/examples/310-Gen-VariablesInGenerators.cpp:41:45:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
Catch::Generators::GeneratorWrapper<double> random(double low, double high) {
data/log4cplus-2.0.5/catch/examples/310-Gen-VariablesInGenerators.cpp:65:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            return makeGenerators(take(50, random(std::get<0>(r), std::get<1>(r))));
data/log4cplus-2.0.5/catch/include/internal/catch_generators_specific.hpp:69:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/log4cplus-2.0.5/catch/include/internal/catch_generators_specific.hpp:78:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/log4cplus-2.0.5/catch/include/internal/catch_random_number_generator.cpp:21:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            std::srand( config.rngSeed() );
data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Generators.tests.cpp:176:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        auto val = GENERATE(take(4, random(0, 1)));
data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Generators.tests.cpp:181:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        auto val = GENERATE(take(4, random(0., 1.)));
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:4092:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:4101:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9934:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            std::srand( config.rngSeed() );
data/log4cplus-2.0.5/src/env.cxx:143:16:  [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.
        = std::getenv (LOG4CPLUS_TSTRING_TO_STRING (name).c_str ());
data/log4cplus-2.0.5/catch/include/internal/catch_matchers_floating.cpp:38:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &f, sizeof(f));
data/log4cplus-2.0.5/catch/include/internal/catch_matchers_floating.cpp:47:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &d, sizeof(d));
data/log4cplus-2.0.5/catch/include/internal/catch_option.hpp:68:29:  [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.
        alignas(alignof(T)) char storage[sizeof(T)];
data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.cpp:70:13:  [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[100];
data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.cpp:79:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.cpp:104: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 buffer[100] = {};
data/log4cplus-2.0.5/catch/include/internal/catch_output_redirect.h:87: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 m_buffer[L_tmpnam] = { 0 };
data/log4cplus-2.0.5/catch/include/internal/catch_run_context.cpp:39:30:  [2] (misc) open:
  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).
                    tracker->open();
data/log4cplus-2.0.5/catch/include/internal/catch_session.cpp:197:31:  [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 **utf8Argv = new char *[ argc ];
data/log4cplus-2.0.5/catch/include/internal/catch_stream.cpp:31:13:  [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 data[bufferSize];
data/log4cplus-2.0.5/catch/include/internal/catch_stream.cpp:80:23:  [2] (misc) open:
  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).
                m_ofs.open( filename.c_str() );
data/log4cplus-2.0.5/catch/include/internal/catch_stringref.cpp:60:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( m_data, m_start, m_size );
data/log4cplus-2.0.5/catch/include/internal/catch_test_case_tracker.cpp:126:23:  [2] (misc) open:
  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).
    void TrackerBase::open() {
data/log4cplus-2.0.5/catch/include/internal/catch_test_case_tracker.cpp:226:13:  [2] (misc) open:
  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).
            open();
data/log4cplus-2.0.5/catch/include/internal/catch_test_case_tracker.h:125:14:  [2] (misc) open:
  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).
        void open();
data/log4cplus-2.0.5/catch/include/internal/catch_tostring.cpp:43: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 asChar[sizeof (int)];
data/log4cplus-2.0.5/catch/include/internal/catch_tostring.h:628:13:  [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 timeStamp[timeStampSize];
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_bases.cpp:32: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 buffer[maxDoubleSize];
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_bases.cpp:39:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        std::sprintf(buffer, "%.3f", duration);
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_bases.hpp:257:16:  [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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_console.cpp:282:10:  [2] (misc) open:
  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).
    void open() {
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_console.cpp:311:12:  [2] (misc) open:
  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).
        tp.open();
data/log4cplus-2.0.5/catch/include/reporters/catch_reporter_junit.cpp:39:13:  [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 timeStamp[timeStampSize];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:1816:13:  [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 timeStamp[timeStampSize];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:4854:29:  [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.
        alignas(alignof(T)) char storage[sizeof(T)];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:5313:16:  [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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:5876:14:  [2] (misc) open:
  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).
        void open();
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9309:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &f, sizeof(f));
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9318:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&i, &d, sizeof(d));
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9733: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 m_buffer[L_tmpnam] = { 0 };
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9820:13:  [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[100];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9829:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:9853: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 buffer[100] = {};
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:10269:30:  [2] (misc) open:
  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).
                    tracker->open();
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11024:31:  [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 **utf8Argv = new char *[ argc ];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11178:13:  [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 data[bufferSize];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11227:23:  [2] (misc) open:
  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).
                m_ofs.open( filename.c_str() );
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11458:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( m_data, m_start, m_size );
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11971:23:  [2] (misc) open:
  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).
    void TrackerBase::open() {
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:12071:13:  [2] (misc) open:
  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).
            open();
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:12356: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 asChar[sizeof (int)];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:13013: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 buffer[maxDoubleSize];
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:13020:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        std::sprintf(buffer, "%.3f", duration);
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:13588:10:  [2] (misc) open:
  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).
    void open() {
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:13617:12:  [2] (misc) open:
  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).
        tp.open();
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:13963:13:  [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 timeStamp[timeStampSize];
data/log4cplus-2.0.5/include/log4cplus/fileappender.h:142:22:  [2] (misc) open:
  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).
        virtual void open(std::ios_base::openmode mode);
data/log4cplus-2.0.5/include/log4cplus/fileappender.h:402:14:  [2] (misc) open:
  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).
        void open(std::ios_base::openmode mode);
data/log4cplus-2.0.5/include/log4cplus/helpers/lockfile.h:52:10:  [2] (misc) open:
  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).
    void open (int) const;
data/log4cplus-2.0.5/simpleserver/loggingserver.cxx:240: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).
    int const port = std::atoi(argv[2]);
data/log4cplus-2.0.5/simpleserver/loggingserver.cxx:241:42:  [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).
    bool const ipv6 = argc >= 5 ? !!std::atoi(argv[4]) : false;
data/log4cplus-2.0.5/src/fileappender.cxx:301:5:  [2] (misc) open:
  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).
    open(fileOpenMode);
data/log4cplus-2.0.5/src/fileappender.cxx:365:19:  [2] (misc) open:
  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).
FileAppenderBase::open(std::ios_base::openmode mode)
data/log4cplus-2.0.5/src/fileappender.cxx:370:9:  [2] (misc) open:
  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).
    out.open(LOG4CPLUS_FSTREAM_PREFERED_FILE_NAME(filename).c_str(), mode);
data/log4cplus-2.0.5/src/fileappender.cxx:401:13:  [2] (misc) open:
  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).
            open(std::ios_base::out | std::ios_base::ate | std::ios_base::app);
data/log4cplus-2.0.5/src/fileappender.cxx:481:31:  [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).
        tmpMaxFileSize = std::atoi(LOG4CPLUS_TSTRING_TO_STRING(tmp).c_str());
data/log4cplus-2.0.5/src/fileappender.cxx:587:13:  [2] (misc) open:
  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).
            open (std::ios_base::out | std::ios_base::ate | std::ios_base::app);
data/log4cplus-2.0.5/src/fileappender.cxx:624:5:  [2] (misc) open:
  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).
    open(std::ios::out | std::ios::trunc);
data/log4cplus-2.0.5/src/fileappender.cxx:852:5:  [2] (misc) open:
  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).
    open(std::ios::out | std::ios::trunc);
data/log4cplus-2.0.5/src/fileappender.cxx:1344:31:  [2] (misc) open:
  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).
TimeBasedRollingFileAppender::open(std::ios_base::openmode mode)
data/log4cplus-2.0.5/src/fileappender.cxx:1352:9:  [2] (misc) open:
  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).
    out.open(LOG4CPLUS_FSTREAM_PREFERED_FILE_NAME(currentFilename).c_str(), mode);
data/log4cplus-2.0.5/src/fileappender.cxx:1415:5:  [2] (misc) open:
  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).
    open(std::ios::out | std::ios::trunc);
data/log4cplus-2.0.5/src/lockfile.cxx:197:5:  [2] (misc) open:
  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).
    open (OPEN_FLAGS);
data/log4cplus-2.0.5/src/lockfile.cxx:211:11:  [2] (misc) open:
  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).
LockFile::open (int open_flags) const
data/log4cplus-2.0.5/src/lockfile.cxx:232:18:  [2] (misc) open:
  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).
    data->fd = ::open (LOG4CPLUS_TSTRING_TO_STRING (lock_file_name).c_str (),
data/log4cplus-2.0.5/src/lockfile.cxx:292:5:  [2] (misc) open:
  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).
    open (OPEN_FLAGS | O_EXLOCK);
data/log4cplus-2.0.5/src/patternlayout.cxx:750:18:  [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).
        r = std::atoi(LOG4CPLUS_TSTRING_TO_STRING(opt).c_str());
data/log4cplus-2.0.5/src/property.cxx:218:10:  [2] (misc) open:
  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.open(LOG4CPLUS_FSTREAM_PREFERED_FILE_NAME(inputFile).c_str(),
data/log4cplus-2.0.5/src/property.cxx:260:18:  [2] (misc) open:
  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.open (LOG4CPLUS_FSTREAM_PREFERED_FILE_NAME(included).c_str(),
data/log4cplus-2.0.5/src/snprintf.cxx:209:22:  [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).
        fnull = std::fopen (NULL_FILE, "wb");
data/log4cplus-2.0.5/src/socket-unix.cxx:110:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy (addr, ai->ai_addr, ai->ai_addrlen);
data/log4cplus-2.0.5/src/socketbuffer.cxx:223:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(buffer + pos, &s, sizeof (s));
data/log4cplus-2.0.5/src/socketbuffer.cxx:242:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(buffer + pos, &i, sizeof (i));
data/log4cplus-2.0.5/src/socketbuffer.cxx:266:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&buffer[pos], str.data(), strlen);
data/log4cplus-2.0.5/src/socketbuffer.cxx:289:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&buffer[pos], buf.buffer, buf.getSize());
data/log4cplus-2.0.5/catch/include/internal/catch_session.cpp:226:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/log4cplus-2.0.5/catch/include/internal/catch_session.cpp:231:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/log4cplus-2.0.5/catch/include/internal/catch_string_manip.cpp:24:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/log4cplus-2.0.5/catch/include/internal/catch_string_manip.cpp:30:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/log4cplus-2.0.5/catch/include/internal/catch_stringref.cpp:28:67:  [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).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )
data/log4cplus-2.0.5/catch/projects/SelfTest/UsageTests/Generators.tests.cpp:53: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).
    REQUIRE(strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)));
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11053:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11058:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11349:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11355:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/log4cplus-2.0.5/catch/single_include/catch2/catch.hpp:11426:67:  [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).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )
data/log4cplus-2.0.5/include/log4cplus/helpers/socket.h:97:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            virtual bool read(SocketBuffer& buffer);
data/log4cplus-2.0.5/include/log4cplus/helpers/socket.h:149:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        LOG4CPLUS_EXPORT long read(SOCKET_TYPE sock, SocketBuffer& buffer);
data/log4cplus-2.0.5/simpleserver/loggingserver.cxx:199:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (!clientsock.read(msgSizeBuffer))
data/log4cplus-2.0.5/simpleserver/loggingserver.cxx:205:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (!clientsock.read(buffer))
data/log4cplus-2.0.5/src/env.cxx:325:22:  [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).
    buf.resize (std::strlen (buf.c_str ()));
data/log4cplus-2.0.5/src/socket-unix.cxx:332:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read(SOCKET_TYPE sock, SocketBuffer& buffer)
data/log4cplus-2.0.5/src/socket-unix.cxx:338:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long const res = ::read(to_os_socket (sock),
data/log4cplus-2.0.5/src/socket-unix.cxx:579:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ret = ::read (interrupt_pipe.fd, &ch, 1);
data/log4cplus-2.0.5/src/socket-win32.cxx:321:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read(SOCKET_TYPE sock, SocketBuffer& buffer)
data/log4cplus-2.0.5/src/socket-win32.cxx:329:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            buffer.getBuffer() + read,
data/log4cplus-2.0.5/src/socket-win32.cxx:330:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<int>(buffer.getMaxSize() - read),
data/log4cplus-2.0.5/src/socket-win32.cxx:341:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return read;
data/log4cplus-2.0.5/src/socket-win32.cxx:345:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read < static_cast<long>(buffer.getMaxSize()));
data/log4cplus-2.0.5/src/socket-win32.cxx:347:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read;
data/log4cplus-2.0.5/src/socket.cxx:177:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Socket::read(SocketBuffer& buffer)
data/log4cplus-2.0.5/src/socket.cxx:179:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long retval = helpers::read(sock, buffer);
data/log4cplus-2.0.5/src/socketbuffer.cxx:138: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).
    std::size_t bufferLen = strlen * sizeOfChar;
data/log4cplus-2.0.5/src/socketbuffer.cxx:156:35:  [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).
        tstring ret(&buffer[pos], strlen);
data/log4cplus-2.0.5/src/socketbuffer.cxx:157:16:  [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).
        pos += strlen;
data/log4cplus-2.0.5/src/socketbuffer.cxx:162:39:  [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(tstring::size_type i=0; i<strlen; ++i) {
data/log4cplus-2.0.5/src/socketbuffer.cxx:174:39:  [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).
        std::string ret(&buffer[pos], strlen);
data/log4cplus-2.0.5/src/socketbuffer.cxx:175:16:  [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).
        pos += strlen;
data/log4cplus-2.0.5/src/socketbuffer.cxx:180:39:  [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(tstring::size_type i=0; i<strlen; ++i) {
data/log4cplus-2.0.5/src/socketbuffer.cxx:255:38:  [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((pos + sizeof(unsigned int) + strlen * sizeOfChar) > maxsize)
data/log4cplus-2.0.5/src/socketbuffer.cxx:264: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).
    appendInt(static_cast<unsigned>(strlen));
data/log4cplus-2.0.5/src/socketbuffer.cxx:266:43:  [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).
    std::memcpy(&buffer[pos], str.data(), strlen);
data/log4cplus-2.0.5/src/socketbuffer.cxx:267:12:  [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).
    pos += strlen;
data/log4cplus-2.0.5/src/socketbuffer.cxx:270:35:  [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(tstring::size_type i=0; i<strlen; ++i) {
data/log4cplus-2.0.5/src/stringhelper-clocale.cxx:93:39:  [1] (buffer) wcslen:
  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).
    tostring_internal (ret, src, std::wcslen (src));
data/log4cplus-2.0.5/src/stringhelper-clocale.cxx:145:40:  [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).
    towstring_internal (ret, src, std::strlen (src));
data/log4cplus-2.0.5/src/stringhelper-cxxlocale.cxx:133:40:  [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).
    towstring_internal (ret, src, std::strlen (src), std::locale ());
data/log4cplus-2.0.5/src/stringhelper-cxxlocale.cxx:221:39:  [1] (buffer) wcslen:
  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).
    tostring_internal (ret, src, std::wcslen (src), std::locale ());
data/log4cplus-2.0.5/src/stringhelper-iconv.cxx:243:41:  [1] (buffer) wcslen:
  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).
    iconv_conv (ret, "UTF-8", src, std::wcslen (src), "WCHAR_T");
data/log4cplus-2.0.5/src/stringhelper-iconv.cxx:262:43:  [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).
    iconv_conv (ret, "WCHAR_T", src, std::strlen (src), "UTF-8");
data/log4cplus-2.0.5/src/stringhelper.cxx:118:39:  [1] (buffer) wcslen:
  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).
    tostring_internal (ret, src, std::wcslen (src));
data/log4cplus-2.0.5/src/stringhelper.cxx:153:40:  [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).
    towstring_internal (ret, src, std::strlen (src));

ANALYSIS SUMMARY:

Hits = 142
Lines analyzed = 72645 in approximately 1.62 seconds (44947 lines/second)
Physical Source Lines of Code (SLOC) = 48938
Hits@level = [0]   3 [1]  47 [2]  75 [3]  13 [4]   7 [5]   0
Hits@level+ = [0+] 145 [1+] 142 [2+]  95 [3+]  20 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 2.96293 [1+] 2.90163 [2+] 1.94123 [3+] 0.40868 [4+] 0.143038 [5+]   0
Dot directories skipped = 4 (--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.