mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 05:38:39 +00:00
[libjar] Throw when we know a file was truncated.
This commit is contained in:
@@ -310,6 +310,8 @@ MOZ_WIN_MEM_TRY_BEGIN
|
||||
mFileData = mFileStart + headerSize;
|
||||
return NS_OK;
|
||||
}
|
||||
// If we get here, the file was truncated.
|
||||
return NS_ERROR_FILE_CORRUPTED;
|
||||
}
|
||||
mLen = mTotalLen;
|
||||
mFileData = mFileStart;
|
||||
|
||||
Reference in New Issue
Block a user