boost-1.83.0-17.fc44

List of Findings

Error: COMPILER_WARNING (CWE-457): [#def1]
boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:103:30: warning[-Wuninitialized]: member ‘boost::archive::iterators::wchar_from_mb<boost::archive::iterators::xml_escape<const char*> >::sliding_buffer<char>::m_buffer’ is used uninitialized
#  103 |             m_next_available(m_buffer.begin()),
#      |                              ^~~~~~~~
boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp: scope_hint: In instantiation of ‘boost::archive::iterators::wchar_from_mb<Base>::sliding_buffer<T>::sliding_buffer() [with T = wchar_t; Base = boost::archive::iterators::xml_escape<const char*>]’
#/builddir/build/BUILD/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:131:31:   required from ‘boost::archive::iterators::wchar_from_mb<Base>::wchar_from_mb(T) [with T = const char*; Base = boost::archive::iterators::xml_escape<const char*>]’
#  131 |         m_mbs(std::mbstate_t())
#      |                               ^
#   59 |         xmbtows(begin),
#      |         ^~~~~~~~~~~~~~
#/builddir/build/BUILD/boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:100:17:   required from ‘void boost::archive::xml_woarchive_impl<Archive>::save(const char*) [with Archive = boost::archive::xml_woarchive]’
#  100 |    save_iterator(os, s, s + std::strlen(s));
#      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   35 | template class xml_woarchive_impl<xml_woarchive> ;
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  101|           // default ctor
#  102|           sliding_buffer() :
#  103|->             m_next_available(m_buffer.begin()),
#  104|               m_next(m_buffer.begin()),
#  105|               m_done(false)

Error: COMPILER_WARNING (CWE-457): [#def2]
boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:103:30: warning[-Wuninitialized]: member ‘boost::archive::iterators::wchar_from_mb<boost::archive::iterators::xml_escape<const char*> >::sliding_buffer<wchar_t>::m_buffer’ is used uninitialized
#  103 |             m_next_available(m_buffer.begin()),
#      |                              ^~~~~~~~
#  101|           // default ctor
#  102|           sliding_buffer() :
#  103|->             m_next_available(m_buffer.begin()),
#  104|               m_next(m_buffer.begin()),
#  105|               m_done(false)

Error: COMPILER_WARNING: [#def3]
boost_1_83_0/boost/context/fiber.hpp:12: included_from: Included from here.
boost_1_83_0/boost/fiber/context.hpp:28: included_from: Included from here.
boost_1_83_0/libs/fiber/src/waker.cpp:3: included_from: Included from here.
boost_1_83_0/boost/context/fiber_fcontext.hpp:52:11: warning: ‘__NR_map_shadow_stack’ redefined
#   52 | #  define __NR_map_shadow_stack 451
#      |           ^~~~~~~~~~~~~~~~~~~~~
/usr/include/asm/unistd.h:20: included_from: Included from here.
/usr/include/sys/syscall.h:24: included_from: Included from here.
boost_1_83_0/boost/fiber/detail/futex.hpp:22: included_from: Included from here.
boost_1_83_0/boost/fiber/detail/spinlock_ttas_adaptive_futex.hpp:18: included_from: Included from here.
boost_1_83_0/boost/fiber/detail/spinlock.hpp:19: included_from: Included from here.
boost_1_83_0/boost/fiber/waker.hpp:8: included_from: Included from here.
boost_1_83_0/libs/fiber/src/waker.cpp:2: included_from: Included from here.
/usr/include/asm/unistd_64.h:370:9: note: this is the location of the previous definition
#  370 | #define __NR_map_shadow_stack 453
#      |         ^~~~~~~~~~~~~~~~~~~~~
#   50|   #  define SHSTK_ENABLED (__CET__ & 0x2)
#   51|   #  define BOOST_CONTEXT_SHADOW_STACK (SHSTK_ENABLED && SHADOW_STACK_SYSCALL)
#   52|-> #  define __NR_map_shadow_stack 451
#   53|   #ifndef SHADOW_STACK_SET_TOKEN
#   54|   #  define SHADOW_STACK_SET_TOKEN 0x1

Error: COMPILER_WARNING (CWE-9001): [#def4]
boost_1_83_0/libs/mpi/src/offsets.cpp:8: included_from: Included from here.
boost_1_83_0/boost/mpi/detail/offsets.hpp:36:110: warning[-Wattributes]: ‘visibility’ attribute ignored on non-class types
#   36 | int* BOOST_MPI_DECL make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1);
#      |                                                                                                              ^
boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:42: included_from: Included from here.
boost_1_83_0/libs/serialization/src/xml_woarchive.cpp:28: included_from: Included from here.
boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp: scope_hint: In instantiation of ‘boost::archive::iterators::wchar_from_mb<Base>::sliding_buffer<T>::sliding_buffer() [with T = char; Base = boost::archive::iterators::xml_escape<const char*>]’
#/builddir/build/BUILD/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:131:31:   required from ‘boost::archive::iterators::wchar_from_mb<Base>::wchar_from_mb(T) [with T = const char*; Base = boost::archive::iterators::xml_escape<const char*>]’
#  131 |         m_mbs(std::mbstate_t())
#      |                               ^
#   59 |         xmbtows(begin),
#      |         ^~~~~~~~~~~~~~
#/builddir/build/BUILD/boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:100:17:   required from ‘void boost::archive::xml_woarchive_impl<Archive>::save(const char*) [with Archive = boost::archive::xml_woarchive]’
#  100 |    save_iterator(os, s, s + std::strlen(s));
#      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   35 | template class xml_woarchive_impl<xml_woarchive> ;
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   34|   // If memory was allocated, returns a pointer to it
#   35|   // otherwise null.
#   36|-> int* BOOST_MPI_DECL make_offsets(communicator const& comm, int const* sizes, int const* displs, int root = -1);
#   37|   
#   38|   // Reconstruct skip slots from sizes and offsets.

Error: COMPILER_WARNING (CWE-9001): [#def5]
boost_1_83_0/libs/mpi/src/python/serialize.cpp:13: included_from: Included from here.
boost_1_83_0/boost/mpi/python/serialize.hpp:122:31: warning[-Wattributes]: type attributes ignored after type is already defined
#  122 |   class BOOST_MPI_PYTHON_DECL direct_serialization_table< IArchiver , OArchiver >; \
#      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
boost_1_83_0/libs/mpi/src/python/serialize.cpp:51:1: note: in expansion of macro ‘BOOST_PYTHON_DIRECT_SERIALIZATION_ARCHIVE_IMPL’
#   51 | BOOST_PYTHON_DIRECT_SERIALIZATION_ARCHIVE_IMPL(
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  120|   namespace boost { namespace python { namespace detail {                 \
#  121|   template                                                                \
#  122|->   class BOOST_MPI_PYTHON_DECL direct_serialization_table< IArchiver , OArchiver >; \
#  123|                                                                           \
#  124|   template<>                                                              \

Error: COMPILER_WARNING (CWE-563): [#def6]
boost_1_83_0/libs/filesystem/config/has_stat_st_mtim.cpp: scope_hint: In function ‘int main()’
boost_1_83_0/libs/filesystem/config/has_stat_st_mtim.cpp:16:17: warning[-Wunused-but-set-variable]: variable ‘st’ set but not used
#   16 |     struct stat st;
#      |                 ^~
#   14|   int main()
#   15|   {
#   16|->     struct stat st;
#   17|       st.st_mtim.tv_nsec = 10;
#   18|   }

Error: COMPILER_WARNING (CWE-563): [#def7]
boost_1_83_0/libs/filesystem/config/has_statx.cpp: scope_hint: In function ‘int main()’
boost_1_83_0/libs/filesystem/config/has_statx.cpp:18:9: warning[-Wunused-variable]: unused variable ‘res’
#   18 |     int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st);
#      |         ^~~
#   16|   {
#   17|       struct statx st;
#   18|->     int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st);
#   19|       st.stx_btime.tv_sec = 1;
#   20|       st.stx_btime.tv_nsec = 10;

Error: COMPILER_WARNING (CWE-563): [#def8]
boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp: scope_hint: In member function ‘void boost::graph::distributed::mpi_process_group::impl::free_sent_batches()’
boost_1_83_0/libs/graph_parallel/src/mpi_process_group.cpp:1035:7: warning[-Wunused-but-set-variable]: variable ‘result’ set but not used
# 1035 |   int result;
#      |       ^~~~~~
# 1033|     iterator it = sent_batches.begin();
# 1034|     int flag;
# 1035|->   int result;
# 1036|     while(it != sent_batches.end()) {
# 1037|       result = MPI_Test(&it->request,&flag,MPI_STATUS_IGNORE);

Error: COMPILER_WARNING (CWE-563): [#def9]
boost_1_83_0/libs/locale/build/has_icu_test.cpp: scope_hint: In function ‘int main()’
boost_1_83_0/libs/locale/build/has_icu_test.cpp:16:13: warning[-Wunused-variable]: unused variable ‘c’
#   16 |     UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err);
#      |             ^
#   14|       icu::Locale loc;
#   15|       UErrorCode err = U_ZERO_ERROR;
#   16|->     UChar32 c = ::u_charFromName(U_UNICODE_CHAR_NAME, "GREEK SMALL LETTER ALPHA", &err);
#   17|       return err;
#   18|   }

Error: COMPILER_WARNING (CWE-252): [#def10]
boost_1_83_0/libs/log/config/x86-ext/avx2.cpp: scope_hint: In function ‘int main(int, char**)’
boost_1_83_0/libs/log/config/x86-ext/avx2.cpp:14:10: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
#   14 |     fread(&mm, 1u, sizeof(mm), stdin);
#      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   12|   {
#   13|       __m256i mm = _mm256_setzero_si256();
#   14|->     fread(&mm, 1u, sizeof(mm), stdin);
#   15|       mm = _mm256_shuffle_epi8(_mm256_alignr_epi8(mm, mm, 10), mm);
#   16|       fwrite(&mm, 1u, sizeof(mm), stdout);

Error: COMPILER_WARNING (CWE-252): [#def11]
boost_1_83_0/libs/log/config/x86-ext/ssse3.cpp: scope_hint: In function ‘int main(int, char**)’
boost_1_83_0/libs/log/config/x86-ext/ssse3.cpp:14:10: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
#   14 |     fread(&mm, 1u, sizeof(mm), stdin);
#      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   12|   {
#   13|       __m128i mm = _mm_setzero_si128();
#   14|->     fread(&mm, 1u, sizeof(mm), stdin);
#   15|       mm = _mm_shuffle_epi8(_mm_alignr_epi8(mm, mm, 10), mm);
#   16|       fwrite(&mm, 1u, sizeof(mm), stdout);

Error: COMPILER_WARNING (CWE-393): [#def12]
boost_1_83_0/libs/mpi/src/environment.cpp: scope_hint: In function ‘int boost::mpi::detail::level2int(boost::mpi::threading::level)’
boost_1_83_0/libs/mpi/src/environment.cpp:35:23: warning[-Wreturn-type]: control reaches end of non-void function
#   35 |     environment::abort(70); // EX_SOFTWARE
#      |     ~~~~~~~~~~~~~~~~~~^~~~
#   33|       return MPI_THREAD_MULTIPLE;
#   34|     default:
#   35|->     environment::abort(70); // EX_SOFTWARE
#   36|     }
#   37|   }

Error: COMPILER_WARNING (CWE-393): [#def13]
boost_1_83_0/libs/mpi/src/environment.cpp: scope_hint: In function ‘boost::mpi::threading::level boost::mpi::detail::int2level(int)’
boost_1_83_0/libs/mpi/src/environment.cpp:53:23: warning[-Wreturn-type]: control reaches end of non-void function
#   53 |     environment::abort(70); // EX_SOFTWARE
#      |     ~~~~~~~~~~~~~~~~~~^~~~
boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:42: included_from: Included from here.
boost_1_83_0/libs/serialization/src/xml_woarchive.cpp:28: included_from: Included from here.
boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp: scope_hint: In instantiation of ‘boost::archive::iterators::wchar_from_mb<Base>::sliding_buffer<T>::sliding_buffer() [with T = char; Base = boost::archive::iterators::xml_escape<const char*>]’
#/builddir/build/BUILD/boost_1_83_0/boost/archive/iterators/wchar_from_mb.hpp:131:31:   required from ‘boost::archive::iterators::wchar_from_mb<Base>::wchar_from_mb(T) [with T = const char*; Base = boost::archive::iterators::xml_escape<const char*>]’
#  131 |         m_mbs(std::mbstate_t())
#      |                               ^
#   59 |         xmbtows(begin),
#      |         ^~~~~~~~~~~~~~
#/builddir/build/BUILD/boost_1_83_0/boost/archive/impl/xml_woarchive_impl.ipp:100:17:   required from ‘void boost::archive::xml_woarchive_impl<Archive>::save(const char*) [with Archive = boost::archive::xml_woarchive]’
#  100 |    save_iterator(os, s, s + std::strlen(s));
#      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#   35 | template class xml_woarchive_impl<xml_woarchive> ;
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   51|       return multiple;
#   52|     default:
#   53|->     environment::abort(70); // EX_SOFTWARE
#   54|     }
#   55|   }

Error: CPPCHECK_WARNING (CWE-476): [#def14]
boost_1_83_0/tools/build/src/engine/builtins.cpp:1776: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
# 1774|           LIST * result;
# 1775|   
# 1776|->         strcpy( buffer, object_str( string ) );
# 1777|           for ( i = current; i < desired; ++i )
# 1778|               buffer[ i ] = ' ';

Error: CPPCHECK_WARNING (CWE-476): [#def15]
boost_1_83_0/tools/build/src/engine/builtins.cpp:1778: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
# 1776|           strcpy( buffer, object_str( string ) );
# 1777|           for ( i = current; i < desired; ++i )
# 1778|->             buffer[ i ] = ' ';
# 1779|           buffer[ desired ] = '\0';
# 1780|           result = list_new( object_new( buffer ) );

Error: CPPCHECK_WARNING (CWE-476): [#def16]
boost_1_83_0/tools/build/src/engine/builtins.cpp:1779: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
# 1777|           for ( i = current; i < desired; ++i )
# 1778|               buffer[ i ] = ' ';
# 1779|->         buffer[ desired ] = '\0';
# 1780|           result = list_new( object_new( buffer ) );
# 1781|           BJAM_FREE( buffer );

Error: CPPCHECK_WARNING (CWE-401): [#def17]
boost_1_83_0/tools/build/src/engine/check_clib.cpp:18: error[memleak]: Memory leak: _
#   16|   {
#   17|       { auto _ = strdup("-"); }
#   18|-> 	return 0;
#   19|   }

Error: CPPCHECK_WARNING (CWE-476): [#def18]
boost_1_83_0/tools/build/src/engine/command.cpp:33: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   31|   {
#   32|       CMDLIST * result = (CMDLIST *)BJAM_MALLOC( sizeof( CMDLIST ) );
#   33|->     result->iscmd = 1;
#   34|       result->next = l;
#   35|       result->impl.cmd = cmd;

Error: CPPCHECK_WARNING (CWE-476): [#def19]
boost_1_83_0/tools/build/src/engine/command.cpp:34: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   32|       CMDLIST * result = (CMDLIST *)BJAM_MALLOC( sizeof( CMDLIST ) );
#   33|       result->iscmd = 1;
#   34|->     result->next = l;
#   35|       result->impl.cmd = cmd;
#   36|       return result;

Error: CPPCHECK_WARNING (CWE-476): [#def20]
boost_1_83_0/tools/build/src/engine/command.cpp:35: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   33|       result->iscmd = 1;
#   34|       result->next = l;
#   35|->     result->impl.cmd = cmd;
#   36|       return result;
#   37|   }

Error: CPPCHECK_WARNING (CWE-476): [#def21]
boost_1_83_0/tools/build/src/engine/command.cpp:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   40|   {
#   41|       CMDLIST * result = (CMDLIST *)BJAM_MALLOC( sizeof( CMDLIST ) );
#   42|->     result->iscmd = 0;
#   43|       result->next = l;
#   44|       result->impl.t = t;

Error: CPPCHECK_WARNING (CWE-476): [#def22]
boost_1_83_0/tools/build/src/engine/command.cpp:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   41|       CMDLIST * result = (CMDLIST *)BJAM_MALLOC( sizeof( CMDLIST ) );
#   42|       result->iscmd = 0;
#   43|->     result->next = l;
#   44|       result->impl.t = t;
#   45|       return result;

Error: CPPCHECK_WARNING (CWE-476): [#def23]
boost_1_83_0/tools/build/src/engine/command.cpp:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   42|       result->iscmd = 0;
#   43|       result->next = l;
#   44|->     result->impl.t = t;
#   45|       return result;
#   46|   }

Error: CPPCHECK_WARNING (CWE-401): [#def24]
boost_1_83_0/tools/build/src/engine/debugger.cpp:276: error[memleakOnRealloc]: Common realloc mistake: 'breakpoints' nulled but not freed upon failure
#  274|           int new_capacity = breakpoints_capacity * 2;
#  275|           if ( new_capacity == 0 ) new_capacity = 1;
#  276|->         breakpoints = ( struct breakpoint * )realloc( breakpoints, new_capacity * sizeof( struct breakpoint ) );
#  277|           breakpoints_capacity = new_capacity;
#  278|       }

Error: CPPCHECK_WARNING (CWE-758): [#def25]
boost_1_83_0/tools/build/src/engine/function.cpp:265: error[ctuOneDefinitionRuleViolation]: The one definition rule is violated, different classes/structs have the same name '_stack'
#  263|   }
#  264|   
#  265|-> struct _stack
#  266|   {
#  267|       public:

Error: COMPILER_WARNING: [#def26]
boost_1_83_0/tools/build/src/engine/function.cpp:265:8: warning[-Wodr]: type ‘struct _stack’ violates the C++ One Definition Rule
#  265 | struct _stack
#      |        ^
boost_1_83_0/tools/build/src/engine/make1.cpp:106:16: note: a different type is defined in another translation unit
#  106 | typedef struct _stack
#      |                ^
boost_1_83_0/tools/build/src/engine/function.cpp:336:12: note: the first difference of corresponding definitions is field ‘start’
#  336 |     void * start = nullptr;
#      |            ^
boost_1_83_0/tools/build/src/engine/make1.cpp:108:13: note: a field with different name is defined in another translation unit
#  108 |     state * stack;
#      |             ^
#  263|   }
#  264|   
#  265|-> struct _stack
#  266|   {
#  267|       public:

Error: CPPCHECK_WARNING (CWE-682): [#def27]
boost_1_83_0/tools/build/src/engine/function.cpp:273: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  271|           int32_t const size = 1 << 21;
#  272|           start = BJAM_MALLOC( size );
#  273|->         end = (char *)start + size;
#  274|           data = end;
#  275|       }

Error: CPPCHECK_WARNING (CWE-476): [#def28]
boost_1_83_0/tools/build/src/engine/function.cpp:1543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_data
# 1541|           array->capacity *= 2;
# 1542|           new_data = BJAM_MALLOC( array->capacity * unit_size );
# 1543|->         memcpy( new_data, array->data, array->size * unit_size  );
# 1544|           BJAM_FREE( array->data );
# 1545|           array->data = new_data;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
boost_1_83_0/tools/build/src/engine/function.cpp:1788: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1786|       JAM_FUNCTION * const result = (JAM_FUNCTION*)BJAM_MALLOC( sizeof( JAM_FUNCTION ) );
# 1787|       int32_t i;
# 1788|->     result->base.type = FUNCTION_JAM;
# 1789|       result->base.reference_count = 1;
# 1790|       result->base.formal_arguments = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def30]
boost_1_83_0/tools/build/src/engine/function.cpp:1789: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1787|       int32_t i;
# 1788|       result->base.type = FUNCTION_JAM;
# 1789|->     result->base.reference_count = 1;
# 1790|       result->base.formal_arguments = 0;
# 1791|       result->base.num_formal_arguments = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def31]
boost_1_83_0/tools/build/src/engine/function.cpp:1790: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1788|       result->base.type = FUNCTION_JAM;
# 1789|       result->base.reference_count = 1;
# 1790|->     result->base.formal_arguments = 0;
# 1791|       result->base.num_formal_arguments = 0;
# 1792|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
boost_1_83_0/tools/build/src/engine/function.cpp:1791: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1789|       result->base.reference_count = 1;
# 1790|       result->base.formal_arguments = 0;
# 1791|->     result->base.num_formal_arguments = 0;
# 1792|   
# 1793|       result->base.rulename = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def33]
boost_1_83_0/tools/build/src/engine/function.cpp:1793: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1791|       result->base.num_formal_arguments = 0;
# 1792|   
# 1793|->     result->base.rulename = 0;
# 1794|   
# 1795|       result->code_size = c->code->size;

Error: CPPCHECK_WARNING (CWE-476): [#def34]
boost_1_83_0/tools/build/src/engine/function.cpp:1795: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1793|       result->base.rulename = 0;
# 1794|   
# 1795|->     result->code_size = c->code->size;
# 1796|       result->code = (instruction*)BJAM_MALLOC( c->code->size * sizeof( instruction ) );
# 1797|       memcpy( result->code, c->code->data, c->code->size * sizeof( instruction ) );

Error: CPPCHECK_WARNING (CWE-476): [#def35]
boost_1_83_0/tools/build/src/engine/function.cpp:1796: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1794|   
# 1795|       result->code_size = c->code->size;
# 1796|->     result->code = (instruction*)BJAM_MALLOC( c->code->size * sizeof( instruction ) );
# 1797|       memcpy( result->code, c->code->data, c->code->size * sizeof( instruction ) );
# 1798|   

Error: CPPCHECK_WARNING (CWE-476): [#def36]
boost_1_83_0/tools/build/src/engine/function.cpp:1797: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1795|       result->code_size = c->code->size;
# 1796|       result->code = (instruction*)BJAM_MALLOC( c->code->size * sizeof( instruction ) );
# 1797|->     memcpy( result->code, c->code->data, c->code->size * sizeof( instruction ) );
# 1798|   
# 1799|       result->constants = (OBJECT**)BJAM_MALLOC( c->constants->size * sizeof( OBJECT * ) );

Error: CPPCHECK_WARNING (CWE-476): [#def37]
boost_1_83_0/tools/build/src/engine/function.cpp:1799: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1797|       memcpy( result->code, c->code->data, c->code->size * sizeof( instruction ) );
# 1798|   
# 1799|->     result->constants = (OBJECT**)BJAM_MALLOC( c->constants->size * sizeof( OBJECT * ) );
# 1800|       if ( c->constants->size != 0 )
# 1801|           memcpy( result->constants, c->constants->data,

Error: CPPCHECK_WARNING (CWE-476): [#def38]
boost_1_83_0/tools/build/src/engine/function.cpp:1803: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1801|           memcpy( result->constants, c->constants->data,
# 1802|                   c->constants->size * sizeof( OBJECT * ) );
# 1803|->     result->num_constants = c->constants->size;
# 1804|   
# 1805|       result->num_subfunctions = c->rules->size;

Error: CPPCHECK_WARNING (CWE-476): [#def39]
boost_1_83_0/tools/build/src/engine/function.cpp:1805: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1803|       result->num_constants = c->constants->size;
# 1804|   
# 1805|->     result->num_subfunctions = c->rules->size;
# 1806|       result->functions = (SUBFUNCTION*)BJAM_MALLOC( c->rules->size * sizeof( SUBFUNCTION ) );
# 1807|       for ( i = 0; i < c->rules->size; ++i )

Error: CPPCHECK_WARNING (CWE-476): [#def40]
boost_1_83_0/tools/build/src/engine/function.cpp:1806: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1804|   
# 1805|       result->num_subfunctions = c->rules->size;
# 1806|->     result->functions = (SUBFUNCTION*)BJAM_MALLOC( c->rules->size * sizeof( SUBFUNCTION ) );
# 1807|       for ( i = 0; i < c->rules->size; ++i )
# 1808|       {

Error: CPPCHECK_WARNING (CWE-476): [#def41]
boost_1_83_0/tools/build/src/engine/function.cpp:1811: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1809|           struct stored_rule * const rule = &dynamic_array_at( struct stored_rule,
# 1810|               c->rules, i );
# 1811|->         result->functions[ i ].name = rule->name;
# 1812|           result->functions[ i ].code = function_compile( rule->parse );
# 1813|           result->functions[ i ].code->num_formal_arguments = rule->num_arguments;

Error: CPPCHECK_WARNING (CWE-476): [#def42]
boost_1_83_0/tools/build/src/engine/function.cpp:1812: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1810|               c->rules, i );
# 1811|           result->functions[ i ].name = rule->name;
# 1812|->         result->functions[ i ].code = function_compile( rule->parse );
# 1813|           result->functions[ i ].code->num_formal_arguments = rule->num_arguments;
# 1814|           result->functions[ i ].code->formal_arguments = rule->arguments;

Error: CPPCHECK_WARNING (CWE-476): [#def43]
boost_1_83_0/tools/build/src/engine/function.cpp:1813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1811|           result->functions[ i ].name = rule->name;
# 1812|           result->functions[ i ].code = function_compile( rule->parse );
# 1813|->         result->functions[ i ].code->num_formal_arguments = rule->num_arguments;
# 1814|           result->functions[ i ].code->formal_arguments = rule->arguments;
# 1815|           result->functions[ i ].local = rule->local;

Error: CPPCHECK_WARNING (CWE-476): [#def44]
boost_1_83_0/tools/build/src/engine/function.cpp:1814: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1812|           result->functions[ i ].code = function_compile( rule->parse );
# 1813|           result->functions[ i ].code->num_formal_arguments = rule->num_arguments;
# 1814|->         result->functions[ i ].code->formal_arguments = rule->arguments;
# 1815|           result->functions[ i ].local = rule->local;
# 1816|       }

Error: CPPCHECK_WARNING (CWE-476): [#def45]
boost_1_83_0/tools/build/src/engine/function.cpp:1815: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1813|           result->functions[ i ].code->num_formal_arguments = rule->num_arguments;
# 1814|           result->functions[ i ].code->formal_arguments = rule->arguments;
# 1815|->         result->functions[ i ].local = rule->local;
# 1816|       }
# 1817|   

Error: CPPCHECK_WARNING (CWE-476): [#def46]
boost_1_83_0/tools/build/src/engine/function.cpp:1818: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1816|       }
# 1817|   
# 1818|->     result->actions = (SUBACTION*)BJAM_MALLOC( c->actions->size * sizeof( SUBACTION ) );
# 1819|       if ( c->actions->size != 0 )
# 1820|           memcpy( result->actions, c->actions->data,

Error: CPPCHECK_WARNING (CWE-476): [#def47]
boost_1_83_0/tools/build/src/engine/function.cpp:1822: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1820|           memcpy( result->actions, c->actions->data,
# 1821|                   c->actions->size * sizeof( SUBACTION ) );
# 1822|->     result->num_subactions = c->actions->size;
# 1823|   
# 1824|       result->generic = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def48]
boost_1_83_0/tools/build/src/engine/function.cpp:1824: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1822|       result->num_subactions = c->actions->size;
# 1823|   
# 1824|->     result->generic = 0;
# 1825|   
# 1826|       result->file = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def49]
boost_1_83_0/tools/build/src/engine/function.cpp:1826: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1824|       result->generic = 0;
# 1825|   
# 1826|->     result->file = 0;
# 1827|       result->line = -1;
# 1828|   

Error: CPPCHECK_WARNING (CWE-476): [#def50]
boost_1_83_0/tools/build/src/engine/function.cpp:1827: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1825|   
# 1826|       result->file = 0;
# 1827|->     result->line = -1;
# 1828|   
# 1829|       return result;

Error: CPPCHECK_WARNING (CWE-476): [#def51]
boost_1_83_0/tools/build/src/engine/function.cpp:1927: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1925|   {
# 1926|       VAR_PARSE_GROUP * const result = (VAR_PARSE_GROUP*)BJAM_MALLOC( sizeof( VAR_PARSE_GROUP ) );
# 1927|->     dynamic_array_init( result->elems );
# 1928|       return result;
# 1929|   }

Error: CPPCHECK_WARNING (CWE-476): [#def52]
boost_1_83_0/tools/build/src/engine/function.cpp:1953: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: value
# 1951|           VAR_PARSE_STRING * const value = (VAR_PARSE_STRING *)BJAM_MALLOC(
# 1952|               sizeof(VAR_PARSE_STRING) );
# 1953|->         value->base.type = VAR_PARSE_TYPE_STRING;
# 1954|           string_new( buf );
# 1955|           string_append_range( buf, start, end );

Error: CPPCHECK_WARNING (CWE-476): [#def53]
boost_1_83_0/tools/build/src/engine/function.cpp:1956: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: value
# 1954|           string_new( buf );
# 1955|           string_append_range( buf, start, end );
# 1956|->         value->s = object_new( buf->value );
# 1957|           string_free( buf );
# 1958|           var_parse_group_add( group, (VAR_PARSE *)value );

Error: CPPCHECK_WARNING (CWE-476): [#def54]
boost_1_83_0/tools/build/src/engine/function.cpp:1982: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1980|       VAR_PARSE_ACTIONS * const result = (VAR_PARSE_ACTIONS *)BJAM_MALLOC(
# 1981|           sizeof(VAR_PARSE_ACTIONS) );
# 1982|->     dynamic_array_init( result->elems );
# 1983|       return result;
# 1984|   }

Error: CPPCHECK_WARNING (CWE-476): [#def55]
boost_1_83_0/tools/build/src/engine/function.cpp:2004: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 2002|   {
# 2003|       VAR_PARSE_VAR * result = (VAR_PARSE_VAR*)BJAM_MALLOC( sizeof( VAR_PARSE_VAR ) );
# 2004|->     result->base.type = VAR_PARSE_TYPE_VAR;
# 2005|       result->name = var_parse_group_new();
# 2006|       result->subscript = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def56]
boost_1_83_0/tools/build/src/engine/function.cpp:2005: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 2003|       VAR_PARSE_VAR * result = (VAR_PARSE_VAR*)BJAM_MALLOC( sizeof( VAR_PARSE_VAR ) );
# 2004|       result->base.type = VAR_PARSE_TYPE_VAR;
# 2005|->     result->name = var_parse_group_new();
# 2006|       result->subscript = 0;
# 2007|       dynamic_array_init( result->modifiers );

Error: CPPCHECK_WARNING (CWE-476): [#def57]
boost_1_83_0/tools/build/src/engine/function.cpp:2006: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 2004|       result->base.type = VAR_PARSE_TYPE_VAR;
# 2005|       result->name = var_parse_group_new();
# 2006|->     result->subscript = 0;
# 2007|       dynamic_array_init( result->modifiers );
# 2008|       return result;

Error: CPPCHECK_WARNING (CWE-476): [#def58]
boost_1_83_0/tools/build/src/engine/function.cpp:2007: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 2005|       result->name = var_parse_group_new();
# 2006|       result->subscript = 0;
# 2007|->     dynamic_array_init( result->modifiers );
# 2008|       return result;
# 2009|   }

Error: CPPCHECK_WARNING (CWE-476): [#def59]
boost_1_83_0/tools/build/src/engine/function.cpp:3267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3265|   {
# 3266|       BUILTIN_FUNCTION * result = (BUILTIN_FUNCTION*)BJAM_MALLOC( sizeof( BUILTIN_FUNCTION ) );
# 3267|->     result->base.type = FUNCTION_BUILTIN;
# 3268|       result->base.reference_count = 1;
# 3269|       result->base.rulename = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def60]
boost_1_83_0/tools/build/src/engine/function.cpp:3268: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3266|       BUILTIN_FUNCTION * result = (BUILTIN_FUNCTION*)BJAM_MALLOC( sizeof( BUILTIN_FUNCTION ) );
# 3267|       result->base.type = FUNCTION_BUILTIN;
# 3268|->     result->base.reference_count = 1;
# 3269|       result->base.rulename = 0;
# 3270|       result->base.formal_arguments = arg_list_compile_builtin( args,

Error: CPPCHECK_WARNING (CWE-476): [#def61]
boost_1_83_0/tools/build/src/engine/function.cpp:3269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3267|       result->base.type = FUNCTION_BUILTIN;
# 3268|       result->base.reference_count = 1;
# 3269|->     result->base.rulename = 0;
# 3270|       result->base.formal_arguments = arg_list_compile_builtin( args,
# 3271|           &result->base.num_formal_arguments );

Error: CPPCHECK_WARNING (CWE-476): [#def62]
boost_1_83_0/tools/build/src/engine/function.cpp:3270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3268|       result->base.reference_count = 1;
# 3269|       result->base.rulename = 0;
# 3270|->     result->base.formal_arguments = arg_list_compile_builtin( args,
# 3271|           &result->base.num_formal_arguments );
# 3272|       result->func = func;

Error: CPPCHECK_WARNING (CWE-476): [#def63]
boost_1_83_0/tools/build/src/engine/function.cpp:3272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3270|       result->base.formal_arguments = arg_list_compile_builtin( args,
# 3271|           &result->base.num_formal_arguments );
# 3272|->     result->func = func;
# 3273|       result->flags = flags;
# 3274|       return (FUNCTION *)result;

Error: CPPCHECK_WARNING (CWE-476): [#def64]
boost_1_83_0/tools/build/src/engine/function.cpp:3273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3271|           &result->base.num_formal_arguments );
# 3272|       result->func = func;
# 3273|->     result->flags = flags;
# 3274|       return (FUNCTION *)result;
# 3275|   }

Error: CPPCHECK_WARNING (CWE-476): [#def65]
boost_1_83_0/tools/build/src/engine/function.cpp:3750: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3748|           *num_arguments = c->args->size;
# 3749|           result = (struct arg_list*)BJAM_MALLOC( c->args->size * sizeof( struct arg_list ) );
# 3750|->         memcpy( result, c->args->data, c->args->size * sizeof( struct arg_list )
# 3751|               );
# 3752|           argument_list_compiler_free( c );

Error: CPPCHECK_WARNING (CWE-476): [#def66]
boost_1_83_0/tools/build/src/engine/function.cpp:3844: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
# 3842|               for ( j = 0; j < formal[ i ].size; ++j )
# 3843|               {
# 3844|->                 args[ j ] = formal[ i ].args[ j ];
# 3845|                   if ( args[ j ].type_name )
# 3846|                       args[ j ].type_name = object_copy( args[ j ].type_name );

Error: CPPCHECK_WARNING (CWE-476): [#def67]
boost_1_83_0/tools/build/src/engine/function.cpp:3845: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
# 3843|               {
# 3844|                   args[ j ] = formal[ i ].args[ j ];
# 3845|->                 if ( args[ j ].type_name )
# 3846|                       args[ j ].type_name = object_copy( args[ j ].type_name );
# 3847|                   args[ j ].arg_name = object_copy( args[ j ].arg_name );

Error: CPPCHECK_WARNING (CWE-476): [#def68]
boost_1_83_0/tools/build/src/engine/function.cpp:3847: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
# 3845|                   if ( args[ j ].type_name )
# 3846|                       args[ j ].type_name = object_copy( args[ j ].type_name );
# 3847|->                 args[ j ].arg_name = object_copy( args[ j ].arg_name );
# 3848|                   if ( args[ j ].flags != ARG_VARIADIC )
# 3849|                       args[ j ].index = module_add_fixed_var( module,

Error: CPPCHECK_WARNING (CWE-476): [#def69]
boost_1_83_0/tools/build/src/engine/function.cpp:3848: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
# 3846|                       args[ j ].type_name = object_copy( args[ j ].type_name );
# 3847|                   args[ j ].arg_name = object_copy( args[ j ].arg_name );
# 3848|->                 if ( args[ j ].flags != ARG_VARIADIC )
# 3849|                       args[ j ].index = module_add_fixed_var( module,
# 3850|                           args[ j ].arg_name, counter );

Error: CPPCHECK_WARNING (CWE-476): [#def70]
boost_1_83_0/tools/build/src/engine/function.cpp:3852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3850|                           args[ j ].arg_name, counter );
# 3851|               }
# 3852|->             result[ i ].args = args;
# 3853|               result[ i ].size = formal[ i ].size;
# 3854|           }

Error: CPPCHECK_WARNING (CWE-476): [#def71]
boost_1_83_0/tools/build/src/engine/function.cpp:3853: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 3851|               }
# 3852|               result[ i ].args = args;
# 3853|->             result[ i ].size = formal[ i ].size;
# 3854|           }
# 3855|   

Error: CPPCHECK_WARNING (CWE-476): [#def72]
boost_1_83_0/tools/build/src/engine/function.cpp:3902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3900|           int32_t i;
# 3901|           assert( f->type == FUNCTION_JAM );
# 3902|->         memcpy( new_func, func, sizeof( JAM_FUNCTION ) );
# 3903|           new_func->base.reference_count = 1;
# 3904|           new_func->base.formal_arguments = argument_list_bind_variables(

Error: CPPCHECK_WARNING (CWE-476): [#def73]
boost_1_83_0/tools/build/src/engine/function.cpp:3903: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3901|           assert( f->type == FUNCTION_JAM );
# 3902|           memcpy( new_func, func, sizeof( JAM_FUNCTION ) );
# 3903|->         new_func->base.reference_count = 1;
# 3904|           new_func->base.formal_arguments = argument_list_bind_variables(
# 3905|               f->formal_arguments, f->num_formal_arguments, module, counter );

Error: CPPCHECK_WARNING (CWE-476): [#def74]
boost_1_83_0/tools/build/src/engine/function.cpp:3904: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3902|           memcpy( new_func, func, sizeof( JAM_FUNCTION ) );
# 3903|           new_func->base.reference_count = 1;
# 3904|->         new_func->base.formal_arguments = argument_list_bind_variables(
# 3905|               f->formal_arguments, f->num_formal_arguments, module, counter );
# 3906|           new_func->code = (instruction *)BJAM_MALLOC( func->code_size * sizeof( instruction ) );

Error: CPPCHECK_WARNING (CWE-476): [#def75]
boost_1_83_0/tools/build/src/engine/function.cpp:3906: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3904|           new_func->base.formal_arguments = argument_list_bind_variables(
# 3905|               f->formal_arguments, f->num_formal_arguments, module, counter );
# 3906|->         new_func->code = (instruction *)BJAM_MALLOC( func->code_size * sizeof( instruction ) );
# 3907|           memcpy( new_func->code, func->code, func->code_size * sizeof(
# 3908|               instruction ) );

Error: CPPCHECK_WARNING (CWE-476): [#def76]
boost_1_83_0/tools/build/src/engine/function.cpp:3907: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3905|               f->formal_arguments, f->num_formal_arguments, module, counter );
# 3906|           new_func->code = (instruction *)BJAM_MALLOC( func->code_size * sizeof( instruction ) );
# 3907|->         memcpy( new_func->code, func->code, func->code_size * sizeof(
# 3908|               instruction ) );
# 3909|           new_func->generic = (FUNCTION *)func;

Error: CPPCHECK_WARNING (CWE-476): [#def77]
boost_1_83_0/tools/build/src/engine/function.cpp:3909: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_func
# 3907|           memcpy( new_func->code, func->code, func->code_size * sizeof(
# 3908|               instruction ) );
# 3909|->         new_func->generic = (FUNCTION *)func;
# 3910|           func = new_func;
# 3911|           for ( i = 0; ; ++i )

Error: CPPCHECK_WARNING (CWE-476): [#def78]
boost_1_83_0/tools/build/src/engine/function.cpp:3915: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: func
# 3913|               OBJECT * key;
# 3914|               int32_t op_code;
# 3915|->             code = func->code + i;
# 3916|               switch ( code->op_code )
# 3917|               {

Error: CPPCHECK_WARNING (CWE-476): [#def79]
boost_1_83_0/tools/build/src/engine/hash.cpp:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  101|       struct hash * hp = (struct hash *)BJAM_MALLOC( sizeof( *hp ) );
#  102|   
#  103|->     hp->bloat = 3;
#  104|       hp->tab.nel = 0;
#  105|       hp->tab.base = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def80]
boost_1_83_0/tools/build/src/engine/hash.cpp:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  102|   
#  103|       hp->bloat = 3;
#  104|->     hp->tab.nel = 0;
#  105|       hp->tab.base = 0;
#  106|       hp->items.more = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def81]
boost_1_83_0/tools/build/src/engine/hash.cpp:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  103|       hp->bloat = 3;
#  104|       hp->tab.nel = 0;
#  105|->     hp->tab.base = 0;
#  106|       hp->items.more = 0;
#  107|       hp->items.free = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def82]
boost_1_83_0/tools/build/src/engine/hash.cpp:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  104|       hp->tab.nel = 0;
#  105|       hp->tab.base = 0;
#  106|->     hp->items.more = 0;
#  107|       hp->items.free = 0;
#  108|       hp->items.size = sizeof( ITEM ) + ALIGNED( datalen );

Error: CPPCHECK_WARNING (CWE-476): [#def83]
boost_1_83_0/tools/build/src/engine/hash.cpp:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  105|       hp->tab.base = 0;
#  106|       hp->items.more = 0;
#  107|->     hp->items.free = 0;
#  108|       hp->items.size = sizeof( ITEM ) + ALIGNED( datalen );
#  109|       hp->items.list = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def84]
boost_1_83_0/tools/build/src/engine/hash.cpp:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  106|       hp->items.more = 0;
#  107|       hp->items.free = 0;
#  108|->     hp->items.size = sizeof( ITEM ) + ALIGNED( datalen );
#  109|       hp->items.list = -1;
#  110|       hp->items.nel = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def85]
boost_1_83_0/tools/build/src/engine/hash.cpp:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  107|       hp->items.free = 0;
#  108|       hp->items.size = sizeof( ITEM ) + ALIGNED( datalen );
#  109|->     hp->items.list = -1;
#  110|       hp->items.nel = 0;
#  111|       hp->inel = 11;  /* 47 */

Error: CPPCHECK_WARNING (CWE-476): [#def86]
boost_1_83_0/tools/build/src/engine/hash.cpp:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  108|       hp->items.size = sizeof( ITEM ) + ALIGNED( datalen );
#  109|       hp->items.list = -1;
#  110|->     hp->items.nel = 0;
#  111|       hp->inel = 11;  /* 47 */
#  112|       hp->name = name;

Error: CPPCHECK_WARNING (CWE-476): [#def87]
boost_1_83_0/tools/build/src/engine/hash.cpp:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  109|       hp->items.list = -1;
#  110|       hp->items.nel = 0;
#  111|->     hp->inel = 11;  /* 47 */
#  112|       hp->name = name;
#  113|   

Error: CPPCHECK_WARNING (CWE-476): [#def88]
boost_1_83_0/tools/build/src/engine/hash.cpp:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
#  110|       hp->items.nel = 0;
#  111|       hp->inel = 11;  /* 47 */
#  112|->     hp->name = name;
#  113|   
#  114|       return hp;

Error: CPPCHECK_WARNING (CWE-664): [#def89]
boost_1_83_0/tools/build/src/engine/make.cpp:892: error[mismatchingContainers]: Iterators of different containers 'chain' and 'front->next' are used together.
#  890|   
#  891|       // The current tail we put the next newest item.
#  892|->     for ( targets_ptr front = chain.get(); front ; front = front->next.get() )
#  893|       {
#  894|           // Find the maximum time, i.e. most recent in the rest of the chain.

Error: CPPCHECK_WARNING (CWE-476): [#def90]
boost_1_83_0/tools/build/src/engine/modules/order.cpp:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: colors
#   76|       int32_t * colors = ( int32_t * )BJAM_CALLOC( num_vertices, sizeof( int32_t ) );
#   77|       for ( i = 0; i < num_vertices; ++i )
#   78|->         colors[ i ] = white;
#   79|   
#   80|       for ( i = num_vertices - 1; i >= 0; --i )

Error: CPPCHECK_WARNING (CWE-476): [#def91]
boost_1_83_0/tools/build/src/engine/modules/order.cpp:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: colors
#   79|   
#   80|       for ( i = num_vertices - 1; i >= 0; --i )
#   81|->         if ( colors[ i ] == white )
#   82|               do_ts( graph, i, colors, &result );
#   83|   

Error: CPPCHECK_WARNING (CWE-476): [#def92]
boost_1_83_0/tools/build/src/engine/modules/order.cpp:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: graph
#  109|           LISTITER const dep_end = list_end( dependencies );
#  110|   
#  111|->         graph[ src ] = ( int32_t * )BJAM_CALLOC( list_length( dependencies ) + 1,
#  112|               sizeof( int32_t ) );
#  113|           for ( ; dep_iter != dep_end; dep_iter = list_next( dep_iter ) )

Error: CPPCHECK_WARNING (CWE-476): [#def93]
boost_1_83_0/tools/build/src/engine/modules/order.cpp:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: graph
#  117|                   graph[ src ][ index++ ] = dst;
#  118|           }
#  119|->         graph[ src ][ index ] = -1;
#  120|       }
#  121|   

Error: CPPCHECK_WARNING (CWE-476): [#def94]
boost_1_83_0/tools/build/src/engine/modules/property-set.cpp:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pos
#  136|       }
#  137|       pos = (struct ps_map_entry *)BJAM_MALLOC( sizeof( struct ps_map_entry ) );
#  138|->     pos->next = map->table[bucket];
#  139|       pos->key = key;
#  140|       pos->value = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def95]
boost_1_83_0/tools/build/src/engine/modules/property-set.cpp:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pos
#  137|       pos = (struct ps_map_entry *)BJAM_MALLOC( sizeof( struct ps_map_entry ) );
#  138|       pos->next = map->table[bucket];
#  139|->     pos->key = key;
#  140|       pos->value = 0;
#  141|       map->table[bucket] = pos;

Error: CPPCHECK_WARNING (CWE-476): [#def96]
boost_1_83_0/tools/build/src/engine/modules/property-set.cpp:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pos
#  138|       pos->next = map->table[bucket];
#  139|       pos->key = key;
#  140|->     pos->value = 0;
#  141|       map->table[bucket] = pos;
#  142|       ++map->num_elems;

Error: CPPCHECK_WARNING (CWE-476): [#def97]
boost_1_83_0/tools/build/src/engine/modules/regex.cpp:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: indices
#  173|           size = 1;
#  174|           indices = (int *)BJAM_MALLOC( sizeof( int ) );
#  175|->         *indices = 1;
#  176|       }
#  177|   

Error: CPPCHECK_WARNING (CWE-476): [#def98]
boost_1_83_0/tools/build/src/engine/parse.cpp:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  110|       PARSE * p = (PARSE *)BJAM_MALLOC( sizeof( PARSE ) );
#  111|   
#  112|->     p->type = type;
#  113|       p->left = left; left = nullptr;
#  114|       p->right = right; right = nullptr;

Error: CPPCHECK_WARNING (CWE-476): [#def99]
boost_1_83_0/tools/build/src/engine/parse.cpp:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  111|   
#  112|       p->type = type;
#  113|->     p->left = left; left = nullptr;
#  114|       p->right = right; right = nullptr;
#  115|       p->third = third; third = nullptr;

Error: CPPCHECK_WARNING (CWE-476): [#def100]
boost_1_83_0/tools/build/src/engine/parse.cpp:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  112|       p->type = type;
#  113|       p->left = left; left = nullptr;
#  114|->     p->right = right; right = nullptr;
#  115|       p->third = third; third = nullptr;
#  116|       p->string = string;

Error: CPPCHECK_WARNING (CWE-476): [#def101]
boost_1_83_0/tools/build/src/engine/parse.cpp:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  113|       p->left = left; left = nullptr;
#  114|       p->right = right; right = nullptr;
#  115|->     p->third = third; third = nullptr;
#  116|       p->string = string;
#  117|       p->string1 = string1;

Error: CPPCHECK_WARNING (CWE-476): [#def102]
boost_1_83_0/tools/build/src/engine/parse.cpp:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  114|       p->right = right; right = nullptr;
#  115|       p->third = third; third = nullptr;
#  116|->     p->string = string;
#  117|       p->string1 = string1;
#  118|       p->num = num;

Error: CPPCHECK_WARNING (CWE-476): [#def103]
boost_1_83_0/tools/build/src/engine/parse.cpp:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  115|       p->third = third; third = nullptr;
#  116|       p->string = string;
#  117|->     p->string1 = string1;
#  118|       p->num = num;
#  119|       p->rulename = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def104]
boost_1_83_0/tools/build/src/engine/parse.cpp:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  116|       p->string = string;
#  117|       p->string1 = string1;
#  118|->     p->num = num;
#  119|       p->rulename = 0;
#  120|   

Error: CPPCHECK_WARNING (CWE-476): [#def105]
boost_1_83_0/tools/build/src/engine/parse.cpp:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  117|       p->string1 = string1;
#  118|       p->num = num;
#  119|->     p->rulename = 0;
#  120|   
#  121|       if ( p->left )

Error: CPPCHECK_WARNING (CWE-476): [#def106]
boost_1_83_0/tools/build/src/engine/parse.cpp:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  119|       p->rulename = 0;
#  120|   
#  121|->     if ( p->left )
#  122|       {
#  123|           p->file = object_copy( p->left->file );

Error: CPPCHECK_WARNING (CWE-476): [#def107]
boost_1_83_0/tools/build/src/engine/parse.cpp:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  127|       {
#  128|           yyinput_last_read_token( &p->file, &p->line );
#  129|->         p->file = object_copy( p->file );
#  130|       }
#  131|   

Error: CPPCHECK_WARNING (CWE-476): [#def108]
boost_1_83_0/tools/build/src/engine/rules.cpp:323: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: actions
#  321|   {
#  322|       actions_ptr const actions = (actions_ptr)BJAM_MALLOC( sizeof( ACTIONS ) );
#  323|->     actions->action = action;
#  324|       ++action->refs;
#  325|       if ( !chain ) chain = actions;

Error: CPPCHECK_WARNING (CWE-476): [#def109]
boost_1_83_0/tools/build/src/engine/rules.cpp:365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: v
#  363|               v = (settings_ptr)BJAM_MALLOC( sizeof( *v ) );
#  364|   
#  365|->         v->symbol = object_copy( symbol );
#  366|           v->value = value;
#  367|           v->next = head;

Error: CPPCHECK_WARNING (CWE-476): [#def110]
boost_1_83_0/tools/build/src/engine/rules.cpp:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: v
#  364|   
#  365|           v->symbol = object_copy( symbol );
#  366|->         v->value = value;
#  367|           v->next = head;
#  368|           head = v;

Error: CPPCHECK_WARNING (CWE-476): [#def111]
boost_1_83_0/tools/build/src/engine/rules.cpp:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: v
#  365|           v->symbol = object_copy( symbol );
#  366|           v->value = value;
#  367|->         v->next = head;
#  368|           head = v;
#  369|       }

Error: CPPCHECK_WARNING (CWE-476): [#def112]
boost_1_83_0/tools/build/src/engine/rules.cpp:616: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  614|           rule_actions ) );
#  615|       function_refer( command );
#  616|->     result->command = command;
#  617|       result->bindlist = bindlist;
#  618|       result->flags = flags;

Error: CPPCHECK_WARNING (CWE-476): [#def113]
boost_1_83_0/tools/build/src/engine/rules.cpp:617: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  615|       function_refer( command );
#  616|       result->command = command;
#  617|->     result->bindlist = bindlist;
#  618|       result->flags = flags;
#  619|       result->reference_count = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def114]
boost_1_83_0/tools/build/src/engine/rules.cpp:618: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  616|       result->command = command;
#  617|       result->bindlist = bindlist;
#  618|->     result->flags = flags;
#  619|       result->reference_count = 0;
#  620|       return result;

Error: CPPCHECK_WARNING (CWE-476): [#def115]
boost_1_83_0/tools/build/src/engine/rules.cpp:619: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  617|       result->bindlist = bindlist;
#  618|       result->flags = flags;
#  619|->     result->reference_count = 0;
#  620|       return result;
#  621|   }

Error: CPPCHECK_WARNING (CWE-476): [#def116]
boost_1_83_0/tools/build/src/engine/scan.cpp:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   94|   
#   95|       /* Push this onto the incp chain. */
#   96|->     i->string = (char*)"";
#   97|       i->strings = 0;
#   98|       i->file = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def117]
boost_1_83_0/tools/build/src/engine/scan.cpp:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   95|       /* Push this onto the incp chain. */
#   96|       i->string = (char*)"";
#   97|->     i->strings = 0;
#   98|       i->file = 0;
#   99|       i->fname = object_copy( s );

Error: CPPCHECK_WARNING (CWE-476): [#def118]
boost_1_83_0/tools/build/src/engine/scan.cpp:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   96|       i->string = (char*)"";
#   97|       i->strings = 0;
#   98|->     i->file = 0;
#   99|       i->fname = object_copy( s );
#  100|       i->line = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def119]
boost_1_83_0/tools/build/src/engine/scan.cpp:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   97|       i->strings = 0;
#   98|       i->file = 0;
#   99|->     i->fname = object_copy( s );
#  100|       i->line = 0;
#  101|       i->next = incp;

Error: CPPCHECK_WARNING (CWE-476): [#def120]
boost_1_83_0/tools/build/src/engine/scan.cpp:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   98|       i->file = 0;
#   99|       i->fname = object_copy( s );
#  100|->     i->line = 0;
#  101|       i->next = incp;
#  102|       incp = i;

Error: CPPCHECK_WARNING (CWE-476): [#def121]
boost_1_83_0/tools/build/src/engine/scan.cpp:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: i
#   99|       i->fname = object_copy( s );
#  100|       i->line = 0;
#  101|->     i->next = incp;
#  102|       incp = i;
#  103|   }

Error: CPPCHECK_WARNING (CWE-758): [#def122]
boost_1_83_0/tools/build/src/engine/search.cpp:31: error[ctuOneDefinitionRuleViolation]: The one definition rule is violated, different classes/structs have the same name '_binding'
#   29|   
#   30|   
#   31|-> typedef struct _binding
#   32|   {
#   33|       OBJECT * binding;

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-96.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameboost-1.83.0-17.fc44
store-results-to/tmp/tmp_zsiqpsw/boost-1.83.0-17.fc44.tar.xz
time-created2025-10-28 18:02:39
time-finished2025-10-28 18:37:04
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp_zsiqpsw/boost-1.83.0-17.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_zsiqpsw/boost-1.83.0-17.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9