diff options
Diffstat (limited to 'CPP/7zip/Archive/FatHandler.cpp')
-rwxr-xr-x | CPP/7zip/Archive/FatHandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/FatHandler.cpp b/CPP/7zip/Archive/FatHandler.cpp index 6d7b249c..22a61f88 100755 --- a/CPP/7zip/Archive/FatHandler.cpp +++ b/CPP/7zip/Archive/FatHandler.cpp @@ -578,8 +578,12 @@ HRESULT CDatabase::Open() return S_FALSE; UInt64 fileSize; RINOK(InStream->Seek(0, STREAM_SEEK_END, &fileSize)); + + /* we comment that check to support truncated images */ + /* if (fileSize < Header.GetPhySize()) return S_FALSE; + */ if (Header.IsFat32()) { |