The following issues were found
src/third_party/boost/boost/asio/ssl/detail/read_op.hpp
1 issues
Line: 52
Column: 16
CWE codes:
120
20
boost::asio::detail::buffer_sequence_adapter<boost::asio::mutable_buffer,
MutableBufferSequence>::first(buffers_);
return eng.read(buffer, ec, bytes_transferred);
}
template <typename Handler>
void call_handler(Handler& handler,
const boost::system::error_code& ec,
Reported by FlawFinder.
src/third_party/boost/boost/ratio/config.hpp
1 issues
Line: 79
Column: 59
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
//~ #elif defined(BOOST_RATIO_USES_ARRAY_ASSERT)
#define BOOST_RATIO_CONCAT(A,B) A##B
#define BOOST_RATIO_NAME(A,B) BOOST_RATIO_CONCAT(A,B)
#define BOOST_RATIO_STATIC_ASSERT(CND, MSG, TYPES) static char BOOST_RATIO_NAME(__boost_ratio_test_,__LINE__)[(CND)?1:-1]
//~ #define BOOST_RATIO_STATIC_ASSERT(CND, MSG, TYPES)
#endif
#if !defined(BOOST_NO_CXX11_STATIC_ASSERT) || !defined(BOOST_RATIO_USES_MPL_ASSERT)
#define BOOST_RATIO_OVERFLOW_IN_ADD "overflow in ratio add"
Reported by FlawFinder.
src/third_party/boost/libs/locale/src/shared/formatting.cpp
1 issues
Line: 34
Column: 17
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
ptr=new char[other.size];
size=other.size;
type=other.type;
memcpy(ptr,other.ptr,size);
}
else {
ptr=0;
size=0;
type=0;
Reported by FlawFinder.
src/third_party/boost/boost/range/size_type.hpp
1 issues
Line: 42
Column: 31
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 has_size_type
{
typedef char no_type;
struct yes_type { char dummy[2]; };
template<typename C>
static yes_type test(BOOST_DEDUCED_TYPENAME C::size_type x);
template<typename C>
Reported by FlawFinder.
src/third_party/boost/boost/asio/ssl/detail/engine.hpp
1 issues
Line: 98
Column: 24
CWE codes:
120
20
boost::system::error_code& ec, std::size_t& bytes_transferred);
// Read bytes from the SSL session.
BOOST_ASIO_DECL want read(const boost::asio::mutable_buffer& data,
boost::system::error_code& ec, std::size_t& bytes_transferred);
// Get output data to be written to the transport.
BOOST_ASIO_DECL boost::asio::mutable_buffer get_output(
const boost::asio::mutable_buffer& data);
Reported by FlawFinder.
src/third_party/boost/libs/log/src/dump.cpp
1 issues
Line: 55
Column: 14
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
enum { stride = 256 };
extern const char g_hex_char_table[2][16] =
{
{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' },
{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }
};
Reported by FlawFinder.
src/third_party/boost/libs/log/src/dump_avx2.cpp
1 issues
Line: 37
Column: 14
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
namespace aux {
extern const char g_hex_char_table[2][16];
template< typename CharT >
extern void dump_data_generic(const void* data, std::size_t size, std::basic_ostream< CharT >& strm);
BOOST_LOG_ANONYMOUS_NAMESPACE {
Reported by FlawFinder.
src/third_party/boost/libs/log/src/dump_ssse3.cpp
1 issues
Line: 37
Column: 14
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
namespace aux {
extern const char g_hex_char_table[2][16];
template< typename CharT >
extern void dump_data_generic(const void* data, std::size_t size, std::basic_ostream< CharT >& strm);
BOOST_LOG_ANONYMOUS_NAMESPACE {
Reported by FlawFinder.
src/third_party/boost/libs/log/src/global_logger_storage.cpp
1 issues
Line: 86
Column: 5
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
typeindex::type_index logger_type,
logger_holder_base const& registered)
{
char buf[std::numeric_limits< unsigned int >::digits10 + 3];
if (log::aux::snprintf(buf, sizeof(buf), "%u", registered.m_RegistrationLine) < 0)
buf[0] = '\0';
std::string str =
std::string("Could not initialize global logger with tag \"") +
tag_type.pretty_name() +
Reported by FlawFinder.
src/third_party/boost/libs/log/src/id_formatting.hpp
1 issues
Line: 30
Column: 14
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
namespace aux {
// Defined in dump.cpp
extern const char g_hex_char_table[2][16];
template< std::size_t IdSize, typename CharT, typename IdT >
inline void format_id(CharT* buf, std::size_t size, IdT id, bool uppercase) BOOST_NOEXCEPT
{
const char* const char_table = g_hex_char_table[uppercase];
Reported by FlawFinder.