mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-08 23:32:23 +03:00
Fix Klocwork scan issues.
This commit is contained in:
committed by
Hong, Yang A
parent
d1ea4c762a
commit
66dc649197
@@ -65,8 +65,8 @@ public:
|
||||
class EngineHSStream : public EngineStream {
|
||||
public:
|
||||
~EngineHSStream();
|
||||
hs_stream_t *id;
|
||||
EngineHSContext *ctx;
|
||||
hs_stream_t *id = nullptr;
|
||||
EngineHSContext *ctx = nullptr;
|
||||
};
|
||||
|
||||
/** Hyperscan Engine for scanning data. */
|
||||
|
@@ -62,7 +62,7 @@ public:
|
||||
struct PcreDB {
|
||||
bool highlander = false;
|
||||
bool utf8 = false;
|
||||
u32 id;
|
||||
u32 id = 0;
|
||||
pcre *db = nullptr;
|
||||
pcre_extra *extra = nullptr;
|
||||
};
|
||||
|
@@ -877,6 +877,7 @@ void displayCsvResults(const vector<unique_ptr<ThreadContext>> &threads,
|
||||
printf(",\"%0.3f\"", totalSecs);
|
||||
printf(",\"%0.2Lf\"", calc_mbps(totalSecs, totalBytes));
|
||||
|
||||
assert(bytesPerRun);
|
||||
double matchRate = ((double)matchesPerRun * 1024) / bytesPerRun;
|
||||
printf(",\"%llu\"", matchesPerRun);
|
||||
printf(",\"%0.3f\"", matchRate);
|
||||
|
Reference in New Issue
Block a user