mirror of https://github.com/FreeRDP/FreeRDP
[coverity] 1543163 Unintentional integer overflow
This commit is contained in:
parent
a75ddcc091
commit
237dfcbd9f
|
@ -186,8 +186,8 @@ BOOL CommReadFile(HANDLE hDevice, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
|
|||
else
|
||||
{
|
||||
/* Tmax */
|
||||
Tmax = nNumberOfBytesToRead * pTimeouts->ReadTotalTimeoutMultiplier +
|
||||
pTimeouts->ReadTotalTimeoutConstant;
|
||||
Tmax = 1ull * nNumberOfBytesToRead * pTimeouts->ReadTotalTimeoutMultiplier +
|
||||
1ull * pTimeouts->ReadTotalTimeoutConstant;
|
||||
|
||||
/* INDEFinitely */
|
||||
if ((Tmax == 0) && (pTimeouts->ReadIntervalTimeout < MAXULONG) &&
|
||||
|
|
Loading…
Reference in New Issue