Bitcoin

Bitcoin Repository

Number of Lines of Code: 132491

Average Cyclomatic Complexity (Uncompiled): 3.1

Average Cyclomatic Complexity (Compiled): 3.1

Code Coverage Report

Time to Run Analysis: 00:18:52

Number of Errors in Code: 2

Number of Warnings in Code: 27

[src/test/allocator_tests.cpp:37]: (error) Memory pointed to by 'chunk' is freed twice.

[src/test/allocator_tests.cpp:225]: (error) Memory pointed to by 'a0' is freed twice.

[src/bench/block_assemble.cpp:91]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/util/cache.cc:200]: (warning) Member variable 'LRUCache::capacity_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::db_num_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/test/checkqueue_tests.cpp:130]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/test/blockencodings_tests.cpp:57]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:134]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:135]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::total' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_initialized' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_done' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::start' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:309]: (warning) Member variable 'ThreadState::shared' is not initialized in the constructor.

[src/txmempool.cpp:367]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/db/version_set.cc:165]: (warning) Member variable 'LevelFileNumIterator::value_buf_' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::batch' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::sync' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::done' is not initialized in the constructor.

[src/net_processing.cpp:3656]: (warning) Comparison of a boolean with an integer.

[src/util.cpp:1263]: (warning) Redundant code: Found a statement that begins with numeric constant.

Bitcoincash

Bitcoincash Repository

Number of Lines of Code: 131929

Average Cyclomatic Complexity (Uncompiled): 3.0

Average Cyclomatic Complexity (Compiled): 3.0

Code Coverage Report

Time to Run Analysis: 00:12:38

Number of Errors in Code: 5

Number of Warnings in Code: 55

[src/test/allocator_tests.cpp:37]: (error) Memory pointed to by 'chunk' is freed twice.

[src/test/allocator_tests.cpp:221]: (error) Memory pointed to by 'a0' is freed twice.

[src/txdb.cpp:345]: (error) Uninitialized variable: nVersionDummy

[src/net_processing.cpp:801]: (error) Same iterator is used with different containers 'mapOrphanTransactions' and 'second'.

[src/undo.h:61]: (error) Uninitialized variable: nVersionDummy

[src/bench/bench.h:53]: (warning) Member variable 'State::beginTime' is not initialized in the constructor.

[src/bench/bench.h:53]: (warning) Member variable 'State::lastTime' is not initialized in the constructor.

[src/test/sighash_tests.cpp:31]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.

[src/test/sighash_tests.cpp:61]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.

[src/qt/transactionrecord.h:101]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/leveldb/util/cache.cc:200]: (warning) Member variable 'LRUCache::capacity_' is not initialized in the constructor.

[src/qt/transactionrecord.h:105]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/qt/transactionrecord.h:109]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/qt/walletframe.cpp:15]: (warning) Member variable 'WalletFrame::clientModel' is not initialized in the constructor.

[src/qt/walletframe.cpp:15]: (warning) Member variable 'WalletFrame::bOutOfSync' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::db_num_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/qt/walletmodeltransaction.cpp:83]: (warning) Possible leak in public function. The pointer 'keyChange' is not deallocated before it is allocated.

[src/test/checkqueue_tests.cpp:111]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:115]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:116]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/scriptnum_tests.cpp:242]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/seeder/bitcoin.cpp:244]: (warning) Member variable 'CSeederNode::nStartingHeight' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::total' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_initialized' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_done' is not initialized in the constructor.

[src/rpc/blockchain.cpp:1271] -> [src/rpc/blockchain.cpp:1267]: (warning) Possible null pointer dereference: block - otherwise it is redundant to check it against null.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::start' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:309]: (warning) Member variable 'ThreadState::shared' is not initialized in the constructor.

[src/chainparamsbase.h:28]: (warning) Member variable 'CBaseChainParams::nRPCPort' is not initialized in the constructor.

[src/leveldb/db/version_set.cc:165]: (warning) Member variable 'LevelFileNumIterator::value_buf_' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::batch' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::sync' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::done' is not initialized in the constructor.

[src/qt/walletview.cpp:138] -> [src/qt/walletview.cpp:141]: (warning) Possible null pointer dereference: _walletModel - otherwise it is redundant to check it against null.

[src/qt/walletview.cpp:139] -> [src/qt/walletview.cpp:141]: (warning) Possible null pointer dereference: _walletModel - otherwise it is redundant to check it against null.

[src/test/monolith_opcodes.cpp:588]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/hash.h:144]: (warning) Member variable 'CHashWriter::ctx' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::consensus' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::nDefaultPort' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::fMiningRequiresPeers' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::fDefaultConsistencyChecks' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::fRequireStandard' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::fMineBlocksOnDemand' is not initialized in the constructor.

[src/chainparams.h:92]: (warning) Member variable 'CChainParams::chainTxData' is not initialized in the constructor.

[src/net.h:576]: (warning) Member variable 'CNetMessage::hasher' is not initialized in the constructor.

[src/net.cpp:2374]: (warning) Member variable 'CConnman::fMsgProcWake' is not initialized in the constructor.

[src/txmempool.cpp:25]: (warning) Member variable 'CTxMemPoolEntry::vTxHashesIdx' is not initialized in the constructor.

[src/miner.cpp:93]: (warning) Member variable 'BlockAssembler::pblock' is not initialized in the constructor.

[src/miner.cpp:93]: (warning) Member variable 'BlockAssembler::nHeight' is not initialized in the constructor.

[src/miner.cpp:93]: (warning) Member variable 'BlockAssembler::lastFewTxs' is not initialized in the constructor.

[src/net_processing.cpp:4071]: (warning) Comparison of a boolean with an integer.

[src/net_processing.cpp:384]: (warning) Possible null pointer dereference if the default parameter value is used: pit

Dash

Dash Repository

Number of Lines of Code: 146276

Average Cyclomatic Complexity (Uncompiled): 3.2

Average Cyclomatic Complexity (Compiled): 3.2

Code Coverage Report

Time to Run Analysis: 00:46:40

Number of Errors in Code: 7

Number of Warnings in Code: 89

[src/test/allocator_tests.cpp:35]: (error) Memory pointed to by 'chunk' is freed twice.

[src/test/allocator_tests.cpp:223]: (error) Memory pointed to by 'a0' is freed twice.

[src/crypto/cubehash.c:598]: (error) Analysis failed. If the code is valid then please report this failure.

[src/crypto/shavite.c:1021]: (error) Analysis failed. If the code is valid then please report this failure.

[src/txdb.cpp:413]: (error) Uninitialized variable: nVersionDummy

[src/net_processing.cpp:650]: (error) Same iterator is used with different containers 'mapOrphanTransactions' and 'second'.

[src/undo.h:55]: (error) Uninitialized variable: nVersionDummy

[src/bench/bench.h:51]: (warning) Member variable 'State::beginTime' is not initialized in the constructor.

[src/bench/bench.h:51]: (warning) Member variable 'State::lastTime' is not initialized in the constructor.

[src/bench/string_cast.cpp:33]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:40]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:47]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:54]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:61]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:70]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:83]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:92]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/bench/string_cast.cpp:101]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/util/cache.cc:200]: (warning) Member variable 'LRUCache::capacity_' is not initialized in the constructor.

[src/qt/transactionrecord.h:22]: (warning) Member variable 'TransactionStatus::cur_num_ix_locks' is not initialized in the constructor.

[src/qt/transactionrecord.h:95]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/qt/transactionrecord.h:100]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/qt/transactionrecord.h:106]: (warning) Member variable 'TransactionRecord::involvesWatchAddress' is not initialized in the constructor.

[src/qt/walletmodel.h:43]: (warning) Member variable 'SendCoinsRecipient::fUseInstantSend' is not initialized in the constructor.

[src/qt/walletmodel.h:44]: (warning) Member variable 'SendCoinsRecipient::fUseInstantSend' is not initialized in the constructor.

[src/qt/walletmodeltransaction.cpp:92]: (warning) Possible leak in public function. The pointer 'keyChange' is not deallocated before it is allocated.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::db_num_' is not initialized in the constructor.

[src/test/checkqueue_tests.cpp:130]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/test/checkqueue_tests.cpp:134]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:135]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/qt/walletframe.cpp:15]: (warning) Member variable 'WalletFrame::clientModel' is not initialized in the constructor.

[src/qt/walletframe.cpp:15]: (warning) Member variable 'WalletFrame::bOutOfSync' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:290]: (warning) Member variable 'SharedState::total' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:290]: (warning) Member variable 'SharedState::num_initialized' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:290]: (warning) Member variable 'SharedState::num_done' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:290]: (warning) Member variable 'SharedState::start' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:300]: (warning) Member variable 'ThreadState::shared' is not initialized in the constructor.

[src/rpc/blockchain.cpp:1287] -> [src/rpc/blockchain.cpp:1284]: (warning) Possible null pointer dereference: block - otherwise it is redundant to check it against null.

[src/rpc/governance.cpp:66]: (warning) Redundant code: Found a statement that begins with string constant.

[src/leveldb/db/version_set.cc:156]: (warning) Member variable 'LevelFileNumIterator::value_buf_' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::batch' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::sync' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::done' is not initialized in the constructor.

[src/qt/walletview.cpp:160] -> [src/qt/walletview.cpp:163]: (warning) Possible null pointer dereference: _walletModel - otherwise it is redundant to check it against null.

[src/qt/walletview.cpp:161] -> [src/qt/walletview.cpp:163]: (warning) Possible null pointer dereference: _walletModel - otherwise it is redundant to check it against null.

[src/chainparamsbase.h:28]: (warning) Member variable 'CBaseChainParams::nRPCPort' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::consensus' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::pchMessageStart' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::nDefaultPort' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::nExtCoinType' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fMiningRequiresPeers' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fDefaultConsistencyChecks' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fRequireStandard' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fMineBlocksOnDemand' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fAllowMultipleAddressesFromGroup' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::fAllowMultiplePorts' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::chainTxData' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::nPoolMaxTransactions' is not initialized in the constructor.

[src/chainparams.h:91]: (warning) Member variable 'CChainParams::nFulfilledRequestExpireTime' is not initialized in the constructor.

[src/hash.h:207]: (warning) Member variable 'CHashWriter::ctx' is not initialized in the constructor.

[src/hdchain.h:49]: (warning) Member variable 'CHDChain::cs_accounts' is not initialized in the constructor.

[src/hdchain.h:134]: (warning) Member variable 'CHDPubKey::extPubKey' is not initialized in the constructor.

[src/net.h:646]: (warning) Member variable 'CNetMessage::hasher' is not initialized in the constructor.

[src/test/sighash_tests.cpp:33]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.

[src/test/sighash_tests.cpp:64]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.

[src/txmempool.cpp:24]: (warning) Member variable 'CTxMemPoolEntry::vTxHashesIdx' is not initialized in the constructor.

[src/masternode.h:43]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/masternode.h:44]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/miner.cpp:77]: (warning) Member variable 'BlockAssembler::pblock' is not initialized in the constructor.

[src/miner.cpp:77]: (warning) Member variable 'BlockAssembler::nBlockSigOps' is not initialized in the constructor.

[src/miner.cpp:77]: (warning) Member variable 'BlockAssembler::nHeight' is not initialized in the constructor.

[src/miner.cpp:77]: (warning) Member variable 'BlockAssembler::lastFewTxs' is not initialized in the constructor.

[src/miner.cpp:77]: (warning) Member variable 'BlockAssembler::blockFinished' is not initialized in the constructor.

[src/masternode-payments.h:195]: (warning) Member variable 'CMasternodePayments::nCachedBlockHeight' is not initialized in the constructor.

[src/masternode.cpp:66]: (warning) Assignment of function parameter has no effect outside the function.

[src/masternode.cpp:35]: (warning) Member variable 'CMasternode::cs' is not initialized in the constructor.

[src/governance-classes.cpp:757]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/masternodeman.cpp:58]: (warning) Member variable 'CMasternodeMan::nCachedBlockHeight' is not initialized in the constructor.

[src/masternodeman.cpp:1712]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/masternode-payments.cpp:830]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/net.cpp:2255]: (warning) Member variable 'CConnman::nMaxFeeler' is not initialized in the constructor.

[src/net.cpp:2255]: (warning) Member variable 'CConnman::fMsgProcWake' is not initialized in the constructor.

[src/governance.cpp:439]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/privatesend-client.cpp:264]: (warning) Comparison of modulo result is predetermined, because it is always less than 70.

[src/privatesend-client.cpp:280]: (warning) Comparison of modulo result is predetermined, because it is always less than 70.

[src/privatesend-client.cpp:287]: (warning) Comparison of modulo result is predetermined, because it is always less than 70.

[src/net_processing.cpp:3433]: (warning) Comparison of a boolean with an integer.

[src/net_processing.cpp:347]: (warning) Possible null pointer dereference if the default parameter value is used: pit

Monero

Monero Repository

Number of Lines of Code: 116596

Average Cyclomatic Complexity (Uncompiled): 3.5

Average Cyclomatic Complexity (Compiled): 3.5

Code Coverage Report

Time to Run Analysis: 00:01:01

Number of Errors in Code: 15

Number of Warnings in Code: 62

[monero/src/blockchain_utilities/blockchain_export.cpp:153]: (error) Null pointer dereference

[monero/src/common/download.cpp:73]: (error) Instance of 'stopped_setter' object is destroyed immediately.

[monero/src/crypto/crypto_ops_builder/ref10CommentedCombined/xmrSpecificOld.c:49]: (error) Uninitialized variable: Ai

[monero/src/crypto/crypto_ops_builder/ref10CommentedCombined/xmrSpecificOld.c:329]: (error) Uninitialized variable: Ai

[monero/src/crypto/groestl.c:134] -> [monero/src/crypto/groestl.c:109]: (error) Array 'y[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:136] -> [monero/src/crypto/groestl.c:109]: (error) Array 'y[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:138] -> [monero/src/crypto/groestl.c:109]: (error) Array 'y[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:140] -> [monero/src/crypto/groestl.c:109]: (error) Array 'y[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:142] -> [monero/src/crypto/groestl.c:109]: (error) Array 'y[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:133] -> [monero/src/crypto/groestl.c:109]: (error) Array 'z[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:135] -> [monero/src/crypto/groestl.c:109]: (error) Array 'z[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:137] -> [monero/src/crypto/groestl.c:109]: (error) Array 'z[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:139] -> [monero/src/crypto/groestl.c:109]: (error) Array 'z[16]' accessed at index 25, which is out of bounds.

[monero/src/crypto/groestl.c:141] -> [monero/src/crypto/groestl.c:109]: (error) Array 'z[16]' accessed at index 25, which is out of bounds.

[monero/src/rpc/core_rpc_server_commands_defs.h:2247]: (error) syntax error

[monero/src/common/expect.h:212]: (warning) Member variable 'expect::error_type' is not initialized in the constructor.

[monero/src/common/expect.h:221]: (warning) Member variable 'expect::error_type' is not initialized in the constructor.

[monero/src/common/expect.h:212]: (warning) Member variable 'expect::error_type' is not initialized in the constructor.

[monero/src/common/expect.h:212]: (warning) Member variable 'expect::error_type' is not initialized in the constructor.

[monero/src/daemon/daemon.cpp:137]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/daemon/daemon.cpp:221]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/daemon/daemon.cpp:235]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/daemonizer/windows_service.cpp:105]: (warning) Redundant code: Found a statement that begins with numeric constant.

[monero/src/device/device.hpp:89]: (warning) Member variable 'device::mode' is not initialized in the constructor.

[monero/src/blockchain_utilities/blockchain_ancestry.cpp:311]: (warning) Comparison of a boolean expression with an integer other than 0 or 1.

[monero/src/blockchain_utilities/blockchain_ancestry.cpp:311]: (warning) Comparison of a boolean with an integer.

[monero/src/cryptonote_basic/cryptonote_basic.h:178]: (warning) Member variable 'transaction_prefix::version' is not initialized in the constructor.

[monero/src/cryptonote_basic/cryptonote_basic.h:297]: (warning) Member variable 'transaction::blob_size' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:89]: (warning) Member variable 'Request::prune' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:163]: (warning) Member variable 'Request::relay' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:167]: (warning) Member variable 'Response::relayed' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:173]: (warning) Member variable 'Request::do_background_mining' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:173]: (warning) Member variable 'Request::ignore_battery' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:201]: (warning) Member variable 'Response::active' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:201]: (warning) Member variable 'Response::is_background_mining_enabled' is not initialized in the constructor.

[monero/src/rpc/daemon_messages.h:381]: (warning) Member variable 'Request::unlocked' is not initialized in the constructor.

[monero/src/p2p/net_node.h:81]: (warning) Member variable 'node_server::m_have_address' is not initialized in the constructor.

[monero/src/p2p/net_node.h:81]: (warning) Member variable 'node_server::m_first_connection_maker_call' is not initialized in the constructor.

[monero/src/p2p/net_node.h:81]: (warning) Member variable 'node_server::m_peerlist' is not initialized in the constructor.

[monero/src/p2p/net_node.h:81]: (warning) Member variable 'node_server::m_fallback_seed_nodes_added' is not initialized in the constructor.

[monero/src/cryptonote_basic/miner.cpp:98]: (warning) Member variable 'miner::m_ignore_battery' is not initialized in the constructor.

[monero/src/crypto/chacha.h:54]: (warning) Redundant code: Found a statement that begins with numeric constant.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_env' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_blocks' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_heights' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_hashes' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_timestamps' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_sizes' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_diffs' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_block_coins' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_txs' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_tx_unlocks' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_tx_heights' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_tx_outputs' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_output_txs' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_output_indices' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_output_amounts' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_output_keys' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_spent_keys' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_hf_starting_heights' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_hf_versions' is not initialized in the constructor.

[monero/src/blockchain_db/berkeleydb/db_bdb.cpp:772]: (warning) Member variable 'BlockchainBDB::m_properties' is not initialized in the constructor.

[monero/src/cryptonote_basic/cryptonote_format_utils.cpp:885]: (warning) Assignment of function parameter has no effect outside the function.

[monero/src/cryptonote_core/cryptonote_core.cpp:178]: (warning) Member variable 'core::block_sync_size' is not initialized in the constructor.

[monero/src/cryptonote_core/cryptonote_core.cpp:178]: (warning) Member variable 'core::check_updates_level' is not initialized in the constructor.

[monero/src/cryptonote_core/cryptonote_core.cpp:178]: (warning) Member variable 'core::m_last_update_length' is not initialized in the constructor.

[monero/src/cryptonote_core/cryptonote_core.cpp:178]: (warning) Member variable 'core::m_fluffy_blocks_enabled' is not initialized in the constructor.

[monero/src/cryptonote_core/cryptonote_core.cpp:178]: (warning) Member variable 'core::m_offline' is not initialized in the constructor.

[monero/src/serialization/json_object.cpp:64]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/serialization/json_object.cpp:68]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/serialization/json_object.cpp:78]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/serialization/json_object.cpp:87]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/serialization/json_object.cpp:97]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/serialization/json_object.cpp:106]: (warning) Redundant code: Found a statement that begins with string constant.

[monero/src/blockchain_db/lmdb/db_lmdb.cpp:303]: (warning) Redundant code: Found a statement that begins with numeric constant.

[monero/src/wallet/wallet2.cpp:8301]: (warning) Member variable 'TX::ptx' is not initialized in the constructor.

[monero/src/wallet/wallet2.cpp:8896]: (warning) Member variable 'TX::ptx' is not initialized in the constructor.

Litecoin

Litecoin Repository

Number of Lines of Code: 122635

Average Cyclomatic Complexity (Uncompiled): 3.1

Average Cyclomatic Complexity (Compiled): 3.1

Code Coverage Report

Time to Run Analysis: 00:18:11

Number of Errors in Code: 4

Number of Warnings in Code: 23

[src/test/allocator_tests.cpp:37]: (error) Memory pointed to by 'chunk' is freed twice.

[src/test/allocator_tests.cpp:225]: (error) Memory pointed to by 'a0' is freed twice.

[src/crypto/scrypt.cpp:91]: (error) Dangerous usage of 'pad' (not null-terminated).

[src/wallet/rpcwallet.cpp:2026]: (error) Possible null pointer dereference: pindex

[src/leveldb/util/cache.cc:200]: (warning) Member variable 'LRUCache::capacity_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::db_num_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/test/checkqueue_tests.cpp:130]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:134]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/test/checkqueue_tests.cpp:135]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::total' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_initialized' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::num_done' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:299]: (warning) Member variable 'SharedState::start' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:309]: (warning) Member variable 'ThreadState::shared' is not initialized in the constructor.

[src/leveldb/db/version_set.cc:165]: (warning) Member variable 'LevelFileNumIterator::value_buf_' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::batch' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::sync' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::done' is not initialized in the constructor.

[src/net_processing.cpp:3574]: (warning) Comparison of a boolean with an integer.

Zcash

Zcash Repository

Number of Lines of Code: 113743

Average Cyclomatic Complexity (Uncompiled): 2.9

Average Cyclomatic Complexity (Compiled): 1.7

Code Coverage Report

Time to Run Analysis: 00:52:45

Number of Errors in Code: 1

Number of Warnings in Code: 42

[src/crypto/equihash.cpp:234]: (error) syntax error

[src/leveldb/util/cache.cc:170]: (warning) Member variable 'LRUCache::capacity_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::db_num_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_tree_db.cc:291]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::start_' is not initialized in the constructor.

[src/rpc/blockchain.cpp:812] -> [src/rpc/blockchain.cpp:809]: (warning) Possible null pointer dereference: block - otherwise it is redundant to check it against null.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::last_op_finish_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::done_' is not initialized in the constructor.

[src/leveldb/doc/bench/db_bench_sqlite3.cc:315]: (warning) Member variable 'Benchmark::next_report_' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:284]: (warning) Member variable 'SharedState::total' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:284]: (warning) Member variable 'SharedState::num_initialized' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:284]: (warning) Member variable 'SharedState::num_done' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:284]: (warning) Member variable 'SharedState::start' is not initialized in the constructor.

[src/leveldb/db/db_bench.cc:294]: (warning) Member variable 'ThreadState::shared' is not initialized in the constructor.

[src/wallet/crypter.h:105]: (warning) Member variable 'CCrypter::chKey' is not initialized in the constructor.

[src/wallet/crypter.h:105]: (warning) Member variable 'CCrypter::chIV' is not initialized in the constructor.

[src/leveldb/db/version_set.cc:156]: (warning) Member variable 'LevelFileNumIterator::value_buf_' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::batch' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::sync' is not initialized in the constructor.

[src/leveldb/db/db_impl.cc:48]: (warning) Member variable 'Writer::done' is not initialized in the constructor.

[src/hash.h:141]: (warning) Member variable 'CHashWriter::ctx' is not initialized in the constructor.

[src/primitives/transaction.h:773]: (warning) Member variable 'CMutableTransaction::fOverwintered' is not initialized in the constructor.

[src/dbwrapper.cpp:33]: (warning) Member variable 'CDBWrapper::pdb' is not initialized in the constructor.

[src/chainparams.h:103]: (warning) Member variable 'CChainParams::consensus' is not initialized in the constructor.

[src/chainparams.h:103]: (warning) Member variable 'CChainParams::pchMessageStart' is not initialized in the constructor.

[src/chainparams.h:103]: (warning) Member variable 'CChainParams::checkpointData' is not initialized in the constructor.

[src/pow.cpp:43]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/main.h:413]: (warning) Member variable 'CScriptCheck::txdata' is not initialized in the constructor.

[src/metrics.cpp:318]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/metrics.cpp:319]: (warning) Redundant code: Found a statement that begins with numeric constant.

[src/txmempool.cpp:204]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:245]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:260]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:271]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:281]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:301]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:325]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/txmempool.cpp:351]: (warning) Return value of std::remove() ignored. Elements remain in container.

[src/test/sighash_tests.cpp:33]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.

[src/test/sighash_tests.cpp:60]: (warning) %d in format string (no. 1) requires a signed integer given in the argument list.


Last Updated: 11/02/18