The following issues were found

src/third_party/boost/boost/system/is_error_code_enum.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 16 Column: 11 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

              namespace boost
{

namespace system
{

class error_code;

template<class T> struct is_error_code_enum

            

Reported by FlawFinder.

src/third_party/boost/boost/system/is_error_condition_enum.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 16 Column: 11 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

              namespace boost
{

namespace system
{

class error_condition;

template<class T> struct is_error_condition_enum

            

Reported by FlawFinder.

src/third_party/boost/boost/system/system_error.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 18 Column: 13 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

              
namespace boost
{
  namespace system
  {
    //  class system_error  ------------------------------------------------------------//

    class BOOST_SYMBOL_VISIBLE system_error : public std::runtime_error
    // BOOST_SYMBOL_VISIBLE is needed by GCC to ensure system_error thrown from a shared

            

Reported by FlawFinder.

src/third_party/boost/boost/system/windows_error.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 25 Column: 13 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

              
namespace boost
{
  namespace system
  {

    //  Microsoft Windows  ---------------------------------------------------//

    //  To construct an error_code after a API error:

            

Reported by FlawFinder.

src/third_party/boost/boost/test/tools/floating_point_comparison.hpp
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 60 Column: 33 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

              class is_abstract_class_or_function
{
    typedef char (&Two)[2];
    template<typename U> static char test(U(*)[1]);
    template<typename U> static Two test(...);

public:
    static const bool value =
           !is_reference<T>::value

            

Reported by FlawFinder.

src/third_party/boost/boost/test/unit_test_parameters.hpp
1 issues
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?
Security

Line: 133 Column: 31 CWE codes: 362

                      }
        else {
            m_cleaner = boost::make_shared<callback_cleaner>(cleaner_callback);
            m_cleaner->m_file.open( std::string(stream_name.begin(), stream_name.end()).c_str() );
            m_stream = &m_cleaner->m_file;
        }
    }

    // Access methods

            

Reported by FlawFinder.

src/third_party/boost/boost/test/utils/iterator/input_iterator_facade.hpp
1 issues
equal - Function does not check the second iterator for over-read conditions
Security

Line: 90 Column: 25 CWE codes: 126
Suggestion: 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

                  }

    // iterator facade interface implementation
    bool                equal( input_iterator_facade const& rhs ) const
    {
        // two invalid iterator equals, inequal otherwise
        return !m_valid && !rhs.m_valid;
    }
};

            

Reported by FlawFinder.

src/third_party/boost/boost/test/utils/runtime/env/fetch.hpp
1 issues
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
Security

Line: 44 Column: 23 CWE codes: 807 20
Suggestion: Check environment variables carefully before using them

              sys_read_var( cstring var_name )
{
    using namespace std;
    char const* res = getenv( var_name.begin() );

    return std::make_pair( cstring(res), res != NULL );
}

#ifdef BOOST_MSVC

            

Reported by FlawFinder.

src/third_party/boost/boost/test/utils/timer.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 53 Column: 21 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

                  typedef boost::int_least64_t nanosecond_type;

    nanosecond_type wall;
    nanosecond_type system;
    void clear() {
      wall = 0;
      system = 0;
    }
  };

            

Reported by FlawFinder.

src/third_party/boost/boost/timer/timer.hpp
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 39 Column: 21 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

                {
    nanosecond_type wall;
    nanosecond_type user;
    nanosecond_type system;

    void clear() { wall = user = system = 0; }
  };
      
  const short         default_places = 6;

            

Reported by FlawFinder.