[libjar] Throw when we know a file was truncated.

This commit is contained in:
Moonchild committed 2026-02-26 07:51:57 +01:00
1 parent 0fb9b4abbf
commit ff3db332fe
1 file changed
+2
+2
View File
@@ -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;