mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
klocwork: fix risk issues
This commit is contained in:
committed by
Konstantinos Margaritis
parent
75dbedeebe
commit
978105a4c0
@@ -61,7 +61,7 @@ public:
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
if (failed) {
|
||||
// We have previously failed to compile this database.
|
||||
return nullptr;
|
||||
throw CompileFailed("Unable to compile db previously.");
|
||||
}
|
||||
if (db) {
|
||||
return db;
|
||||
|
@@ -101,7 +101,7 @@ void NfaGeneratedCorpora::generate(unsigned id, vector<Corpus> &data) {
|
||||
pl.logicalKeyRenumber();
|
||||
const auto &m_lkey = pl.getLkeyMap();
|
||||
assert(!m_lkey.empty());
|
||||
u32 a_subid; // arbitrary sub id
|
||||
u32 a_subid = 0; // arbitrary sub id
|
||||
unordered_map<u32, vector<Corpus>> m_data;
|
||||
for (const auto &it : m_lkey) {
|
||||
a_subid = it.first;
|
||||
|
@@ -98,6 +98,6 @@ void *Thread::runThread(void *thr) {
|
||||
}
|
||||
|
||||
|
||||
Thread::Thread(size_t num) : thread_id(num) {}
|
||||
Thread::Thread(size_t num) : thread_id(num), thread() {}
|
||||
|
||||
Thread::~Thread() {}
|
||||
|
Reference in New Issue
Block a user