Closed
Bug 352405
Opened 19 years ago
Closed 18 years ago
empty zip cannot be opened (NS_ERROR_INVALID_POINTER) [nsIZipReader.open]
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: asqueella, Assigned: michal)
Details
(Keywords: testcase)
Attachments
(1 file)
|
22 bytes,
application/zip
|
Details |
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).
| Reporter | ||
Comment 1•19 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → michal
| Assignee | ||
Comment 2•18 years ago
|
||
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.
| Reporter | ||
Comment 3•18 years ago
|
||
Same here. Looks like it was fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•