diff --git a/test.cpp b/test.cpp index a7cdfcd5..b8f69343 100644 --- a/test.cpp +++ b/test.cpp @@ -431,6 +431,11 @@ void FIPS140_GenerateRandomFiles() template 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;