mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Add various checks to address Coverity reported issues.
This commit is contained in:
@@ -442,6 +442,12 @@ int ExtendFileSystem (HWND hwndDlg , wchar_t *lpszVolume, Password *pVolumePassw
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((BytesPerSector == 0) || (BytesPerSector > (DWORD)INT_MAX))
|
||||
{
|
||||
nStatus = ERR_SECTOR_SIZE_INCOMPATIBLE;
|
||||
goto error;
|
||||
}
|
||||
|
||||
DebugAddProgressDlgStatus (hwndDlg, L"Extending file system ...\r\n");
|
||||
|
||||
// extend volume
|
||||
|
||||
Reference in New Issue
Block a user