Closed Bug 504414 Opened 15 years ago Closed 15 years ago

nsZipArchiveStandalone::BuildFileList leaks item when it reaches "truncated file"

Categories

(Core :: Networking: JAR, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Keywords: memory-leak)

Attachments

(1 obsolete file)

936     nsZipItem* item = CreateZipItem(namelen);
967     if (leftover < (namelen + extralen + commentlen + ZIPCENTRAL_SIZE)) {
974       if (byteCount < (namelen + extralen + commentlen + sizeof(sig))) {
975         // truncated file
976         return ZIP_ERR_CORRUPT;
... does not reach:
999     mFiles[hash] = item;
Attached patch patch (obsolete) — Splinter Review
Attachment #388784 - Flags: review?(dveditz)
Fixed by bug 504864: This leak is now no longer there.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #388784 - Attachment is obsolete: true
Attachment #388784 - Flags: review?(dveditz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: