Closed Bug 352405 Opened 18 years ago Closed 16 years ago

empty zip cannot be opened (NS_ERROR_INVALID_POINTER) [nsIZipReader.open]

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: asqueella, Assigned: michal)

Details

(Keywords: testcase)

Attachments

(1 file)

const Cc = Components.classes;
const Ci = Components.interfaces;

var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); file.initWithPath("c:\\empty.zip");

var zipreader = Cc["@mozilla.org/libjar/zip-reader;1"]. createInstance(Ci.nsIZipReader);
zipreader.open(file); // <---
zipreader.close();
var entries = zipreader.findEntries('*');

Throws an exception:
NS_ERROR_INVALID_POINTER on line 7: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIZipReader.open]

On an empty ZIP file (to be attached).
Attached file empty.zip
Assignee: nobody → michal
It seems that this bug was already fixed by some other patch. I can reproduce it with 2.0.0.13 but not with latest TRUNK.
Same here. Looks like it was fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: