mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 01:12:15 +03:00
klocwork: fix risk issues
This commit is contained in:
committed by
Konstantinos Margaritis
parent
88a1048ae7
commit
2d521d64a2
@@ -740,6 +740,11 @@ u64a byte_size(const vector<DataBlock> &corpus_blocks) {
|
||||
total += block.payload.size();
|
||||
}
|
||||
|
||||
if (total == 0) {
|
||||
assert(0);
|
||||
throw std::invalid_argument("Empty corpus.");
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user