-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random minor fixes #4459
Random minor fixes #4459
Conversation
Coverity 188406
Coverity 188436, 188433, 188428, 188415, 188416, 188410, 188400, 188298, 188299, 188321, 188342, 188343, 188355, 188357, 188361, 188366, 188374
Coverity 188426
Coverity 182572
delete m0; | ||
delete m1; | ||
delete m2; | ||
m0 = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe m0.reset(nullptr);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just how I'm used to seeing smart-pointers reset, think it has same effect.
src/blockchain_db/lmdb/db_lmdb.cpp
Outdated
mdb_stat(txn, m_block_info, &ms); | ||
result = mdb_stat(txn, m_block_info, &ms); | ||
if (result) | ||
throw0(DB_ERROR(lmdb_error("Failed to query hf_versions table: ", result).c_str())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
@@ -1977,9 +1977,9 @@ void VRegistry::setCategories(const char* categories, bool clear) { | |||
} | |||
if (!m_categoriesString.empty()) | |||
m_categoriesString += ","; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add the ,
only if categories isn't empty too? Otherwise it would add a useless ,
at the end of m_categoriesString.
Coverity 188349
Coverity 188305
Coverity 182569
This would call terminate. We ignore exceptions in pthread_join instead, as this is not a fatal problem here. Coverity 182568
Coverity 182560
Coverity 161868
Not much we can do here Coverity 161875
0b7781d
to
0749a8b
Compare
Coverity 161867
Coverity 161862
Coverity 161864
Coverity 136462
Plus a few more. |
Coverity 175293, 175312, 175266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
bcf3f6a fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d miner: restore stream flags after changing them (moneromooo-monero) a093092 levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82 net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a363 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139f epee: do not propagate exception through dtor (moneromooo-monero) 0749a8b db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afee wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a993 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f954 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e85542 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2de db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016d blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda5 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece155 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da3 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8 unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
bcf3f6a fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d miner: restore stream flags after changing them (moneromooo-monero) a093092 levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82 net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a363 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139f epee: do not propagate exception through dtor (moneromooo-monero) 0749a8b db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afee wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a993 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f954 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e85542 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2de db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016d blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda5 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece155 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da3 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8 unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
No description provided.