astyle fix
This commit is contained in:
parent
c4d1d47f6b
commit
c28b365ea0
|
@ -618,7 +618,7 @@ void CheckBufferOverrun::checkScope(const Token *tok, const std::vector<std::str
|
|||
Token::Match(tok, "fread|fwrite ( %varid% , %num% , %num% , %any% )", varid) &&
|
||||
MathLib::isInt(tok->strAt(6)))
|
||||
{
|
||||
long len = MathLib::toLongNumber(tok->strAt(4))*MathLib::toLongNumber(tok->strAt(6));
|
||||
long len = MathLib::toLongNumber(tok->strAt(4)) * MathLib::toLongNumber(tok->strAt(6));
|
||||
if (len < 0 || len > total_size)
|
||||
{
|
||||
bufferOverrun(tok);
|
||||
|
|
Loading…
Reference in New Issue