Cleared Coverity finding CID 12086 (Issue 299)
parent
17258a49d3
commit
d5aff4e4f8
5
test.cpp
5
test.cpp
|
|
@ -431,6 +431,11 @@ void FIPS140_GenerateRandomFiles()
|
|||
template <class T, bool NON_NEGATIVE>
|
||||
T StringToValue(const std::string& str) {
|
||||
std::istringstream iss(str);
|
||||
|
||||
// Arbitrary, but we need to clear a Coverity finding TAINTED_SCALAR
|
||||
if(iss.str().length() > 25)
|
||||
throw InvalidArgument("cryptest.exe: '" + str +"' is tool ong");
|
||||
|
||||
T value;
|
||||
iss >> std::noskipws >> value;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue