Closed
Bug 61544
Opened 25 years ago
Closed 25 years ago
Implement ZIP_TestArchive
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect, P1)
Core Graveyard
Installer: XPInstall Engine
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: samir_bugzilla, Assigned: samir_bugzilla)
Details
(Whiteboard: [xpiprd])
Attachments
(2 files)
The stub installers need a way to check the integrity of downloaded zippies.
The PKZIP format includes a CRC32 checksum for each item in the archive. We can
leverage this information by verifying the checksum of all items in an archive,
indicating a failed checksum when encountered. (The stubs can the proceed to
redownload the corrupt archives.)
The API required would need to be exposed in the standalone libjar as:
/**
* ZIP_TestArchive
*
* Tests the integrity of this open zip archive by extracting each
* item to memory and performing a CRC check.
*
* @param hZip handle obtained from ZIP_OpenArchive
* @return status code (success indicated by ZIP_OK)
*/
PRInt32 ZIP_TestArchive( void *hZip );
| Assignee | ||
Comment 1•25 years ago
|
||
| Assignee | ||
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
r=dveditz
Comment 5•25 years ago
|
||
looks ok to me... I can only assume the actual CRC testing is doing the right
thing :)
sr=alecf
I can confirm that this has been checked in. I'll mark it fixed on behalf of Samir.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 8•25 years ago
|
||
Oops, was off for vacation and forgot to makr it fixed. Thanks Sean!
Build: 2001-03-06-11-Mtrunk(WIN), 2001-03-06-10-trunk(MAC),
2001-03-06-08-Mtrunk(LINUX)
This is working as expected. Corrupted archives will report -207 (Unable to
read archive) from the install.log. Marking Verified!
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•