The following issues were found
src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/exitfuncs.py
1 issues
Line: 30
Column: 1
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
__revision__ = "src/engine/SCons/exitfuncs.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import atexit
_exithandlers = []
Reported by Pylint.
src/third_party/boost/boost/atomic/detail/string_ops.hpp
1 issues
Line: 42
Column: 41
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
#if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY)
#define BOOST_ATOMIC_DETAIL_MEMCPY __builtin_memcpy
#else
#define BOOST_ATOMIC_DETAIL_MEMCPY std::memcpy
#endif
#if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP)
#define BOOST_ATOMIC_DETAIL_MEMCMP __builtin_memcmp
#else
Reported by FlawFinder.
src/third_party/boost/boost/atomic/detail/storage_type.hpp
1 issues
Line: 41
Column: 34
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
template< std::size_t Size >
struct BOOST_ATOMIC_DETAIL_MAY_ALIAS buffer_storage
{
BOOST_ALIGNMENT(16) unsigned char data[Size];
BOOST_FORCEINLINE bool operator! () const BOOST_NOEXCEPT
{
return (data[0] == 0u && BOOST_ATOMIC_DETAIL_MEMCMP(data, data + 1, Size - 1) == 0);
}
Reported by FlawFinder.
src/third_party/boost/boost/atomic/detail/storage_traits.hpp
1 issues
Line: 44
Column: 22
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
template< std::size_t Size, std::size_t Alignment = 1u >
struct BOOST_ATOMIC_DETAIL_MAY_ALIAS buffer_storage
{
typedef unsigned char data_type[Size];
BOOST_ATOMIC_DETAIL_ALIGNED_VAR_TPL(Alignment, data_type, data);
BOOST_FORCEINLINE bool operator! () const BOOST_NOEXCEPT
{
return (data[0] == 0u && BOOST_ATOMIC_DETAIL_MEMCMP(data, data + 1, Size - 1u) == 0);
Reported by FlawFinder.
src/third_party/boost/boost/regex/v5/basic_regex.hpp
1 issues
Line: 187
Column: 13
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
size_type m_mark_count; // the number of marked sub-expressions
BOOST_REGEX_DETAIL_NS::re_syntax_base* m_first_state; // the first state of the machine
unsigned m_restart_type; // search optimisation type
unsigned char m_startmap[1 << CHAR_BIT]; // which characters can start a match
unsigned int m_can_be_null; // whether we can match a null string
BOOST_REGEX_DETAIL_NS::raw_storage m_data; // the buffer in which our states are constructed
typename traits::char_class_type m_word_mask; // mask used to determine if a character is a word character
std::vector<
std::pair<
Reported by FlawFinder.
src/third_party/boost/boost/regex/v5/regex_raw_buffer.hpp
1 issues
Line: 128
Column: 18
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
pointer ptr = static_cast<pointer>(::operator new(newsize));
BOOST_REGEX_NOEH_ASSERT(ptr)
if (start)
std::memcpy(ptr, start, datasize);
// get rid of old buffer:
::operator delete(start);
// and set up pointers:
Reported by FlawFinder.
src/third_party/boost/boost/atomic/detail/lock_pool.hpp
1 issues
Line: 52
Column: 7
CWE codes:
676
Suggestion:
Use nanosleep(2) or setitimer(2) instead
ts.tv_nsec = 1000;
::nanosleep(&ts, NULL);
#else
::usleep(1);
#endif
}
namespace lock_pool {
Reported by FlawFinder.
src/third_party/boost/boost/serialization/access.hpp
1 issues
Line: 49
Column: 7
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
// in any serialized class to permit clean, safe access to private class members
// by the serialization system
class access {
public:
// grant access to "real" serialization defaults
#ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
public:
#else
Reported by FlawFinder.
src/third_party/boost/boost/serialization/base_object.hpp
1 issues
Line: 94
Column: 12
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
BOOST_STATIC_ASSERT(! is_pointer<Derived>::value);
typedef typename detail::base_cast<Base, Derived>::type type;
detail::base_register<type, Derived>::invoke();
return access::cast_reference<type, Derived>(d);
}
} // namespace serialization
} // namespace boost
Reported by FlawFinder.
src/third_party/boost/boost/serialization/extended_type_info_no_rtti.hpp
1 issues
Line: 149
Column: 31
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
}
}
void destroy(void const * const p) const BOOST_OVERRIDE {
boost::serialization::access::destroy(
static_cast<T const *>(p)
);
//delete static_cast<T const * const>(p) ;
}
};
Reported by FlawFinder.