mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[libjar] Throw when we know a file was truncated.
This commit is contained in:
parent
c91765edda
commit
6f109c5fbc
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue