The following issues were found
src/third_party/boost/boost/fusion/adapted/struct/detail/extension.hpp
1 issues
Line: 31
Column: 16
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
{
struct no_such_member;
struct access
{
template<typename Seq, int N>
struct struct_member;
template<typename Seq, int N>
Reported by FlawFinder.
src/third_party/boost/boost/fusion/adapted/struct/detail/deref_impl.hpp
1 issues
Line: 23
Column: 16
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
struct apply
{
typedef typename
access::struct_member<
typename remove_const<typename It::seq_type>::type
, It::index::value
>::template apply<typename It::seq_type>
impl;
Reported by FlawFinder.
src/third_party/boost/boost/fusion/adapted/struct/detail/at_impl.hpp
1 issues
Line: 26
Column: 13
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
{
template <typename Seq, typename N>
struct apply
: access::struct_member<
typename remove_const<Seq>::type
, N::value
>::template apply<Seq>
{};
};
Reported by FlawFinder.
src/third_party/boost/boost/fusion/adapted/struct/detail/adapt_base.hpp
1 issues
Line: 171
Column: 12
CWE codes:
362/367!
Suggestion:
Set up the correct permissions (e.g., using setuid()) and try to open the file directly
template< \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
> \
struct access::struct_member< \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
, I \
> \
{ \
BOOST_PP_IF(DEDUCE_TYPE, \
Reported by FlawFinder.
src/third_party/boost/boost/function/function_template.hpp
1 issues
Line: 910
Column: 16
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
// just to silence a warning: https://github.com/boostorg/function/issues/27
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
# endif
std::memcpy(this->functor.data, f.functor.data, sizeof(boost::detail::function::function_buffer));
# if defined(BOOST_GCC) && (BOOST_GCC >= 40700)
# pragma GCC diagnostic pop
# endif
} else
get_vtable()->base.manager(f.functor, this->functor,
Reported by FlawFinder.
src/third_party/boost/boost/function/function_base.hpp
1 issues
Line: 110
Column: 17
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
mutable function_buffer_members members;
// To relax aliasing constraints
mutable char data[sizeof(function_buffer_members)];
};
/**
* The unusable class is a placeholder for unused function arguments
* It is also completely unusable except that it constructable from
Reported by FlawFinder.
src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.cpp
1 issues
Line: 87
{
// Copy parameters out of argv and into the registers/stack-slots specified by
// the system ABI.
for (ABIArgValTypeIter iter(fe.sig().args()); !iter.done(); iter++) {
unsigned argOffset = iter.index() * sizeof(ExportArg);
Address src(argv, argOffset);
MIRType type = iter.mirType();
switch (iter->kind()) {
case ABIArg::GPR:
Reported by Cppcheck.
src/third_party/mozjs-60/extract/js/src/wasm/WasmValidate.cpp
1 issues
Line: 1052
Column: 5
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
if (!name)
return nullptr;
memcpy(name.get(), bytes, numBytes);
name[numBytes] = '\0';
return name;
}
Reported by FlawFinder.
src/third_party/mozjs-60/extract/mfbt/Alignment.h
1 issues
Line: 127
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
{
union U
{
char mBytes[sizeof(T)];
uint64_t mDummy;
} u;
const T* addr() const { return reinterpret_cast<const T*>(u.mBytes); }
T* addr() { return static_cast<T*>(static_cast<void*>(u.mBytes)); }
Reported by FlawFinder.
src/third_party/mozjs-60/extract/mfbt/Assertions.h
1 issues
Line: 113
Column: 15
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
* to avoid conflicts (see below).
*/
# define MOZ_STATIC_ASSERT(cond, reason) \
extern char MOZ_STATIC_ASSERT_GLUE(moz_static_assert, __LINE__)[(cond) ? 1 : -1]
# elif defined(__COUNTER__)
/*
* If there was no preferred alternative, use a compiler-agnostic version.
*
* Note that the non-__COUNTER__ version has a bug in C++: it can't be used
Reported by FlawFinder.