Closed Bug 61544 Opened 25 years ago Closed 25 years ago

Implement ZIP_TestArchive

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect, P1)

defect

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 );
Dan, Please review the attached patch.
Status: NEW → ASSIGNED
r=dveditz
looks ok to me... I can only assume the actual CRC testing is doing the right thing :) sr=alecf
Keywords: nsbeta1
Priority: P3 → P1
Hasn't this been checked-in?
Whiteboard: [xpiprd]
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
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
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: